ec icon indicating copy to clipboard operation
ec copied to clipboard

Reduce/remove debug logging in flash

Open crawfxrd opened this issue 4 weeks ago • 0 comments

Firmware is currently set to build with logging at DEBUG level. Compared to disabling logging (NONE), this takes up ~8 KiB of flash space. We don't utilize banking, so this represents ~12% of the available 64 KiB space being used for logging.

Preferably, we could get some logging mechanism that doesn't depend on printf and formatting on the EC, and instead sends some kind of event index and the raw bytes to the host for it to format and display.

Ref: https://defmt.ferrous-systems.com/#operating-principle

crawfxrd avatar Dec 12 '25 16:12 crawfxrd