oresat / oresat-firmware

OreSat firmware based on ChibiOS for M0 and M4 microcontrollers
GNU General Public License v3.0
36 stars 13 forks source link

Detangle serial shell debug output from bootloader implementation #48

Closed heliochronix closed 3 months ago

heliochronix commented 3 years ago

Serial debug output is currently baked into bootloader code. This should be detangled from it either via preprocessor switches or completely via a test library for serial shell.

ThirteenFish commented 3 months ago

This is done via defining DEBUG_PRINT at compile time, typically by passing -DDEBUG_PRINT to gcc. The ChibiOS makefile template lets the user put this in UDEFS.

Note that this does not disable all serial output because Andrew "likes it when something is on the screen". It'll output a minimal amount of messages at startup and CAN TX/RX.