I have confused myself surrounding debug. Reading the Docs here:
Debugging | Arduino-FOC I set up a .PIO flag for:
SIMPLEFOC_DISABLE_DEBUG
-D SIMPLEFOC_DISABLE_DEBUG
My goal is to disable serial prints such that I can use the serial port for a CRC + COBS protocol. I of course wish to re-enable for troubleshooting.
I am using an STM32F401 and I think… I am running into serial prints specific to the STM32. Basically my flag is still allowing serial prints form the SimpleFOC library during the motor alignment and current reading startup.
I think the feedback I am looking for is:
- Yes, there are two different build flags between SimpleFOC librarys and some of the STM32 specific librarys.
- Possible alternate to going through the library and creating If DEF cases around each STM32 print….
- Ask questions that will reveal the blinding obvious