Hi, I was trying to debug the particle photon system firmware but could not get the system firmware to print into the USB serial output port. I wanted print to serial (connected to my terminal as USB device) from the spark_protocol.cpp code on message receipt from cloud. I tried to do it through 2 calls,
and DEBUG(“MY MSG 2”);
But both did not print anything to serial form the system firmware. I am reading serial inputs from the USB using a Linux terminal.
PS, messages from my applications through serial are captured well, but I dunno how to print and read messages from the system firmware using serial.
Hey there! @mdma and @BDub will be able to give you feedback on serial debugging the system firmware, and I know that the upcoming release of firmware (v060) will have a significantly revamped system debugging system. Do you think you’ve successfully opened a serial connection with the device and the messages are simply not passing through from the system thread?
Hi, can you tell me how to rebuild system modules with the DEBUG_BUILD=y flag? I am building by running “make DEBUG_BUILD=y” command in firmware/modules folder after a clean. This, however, does not make the system-part1.bin nor system-part2.bin, as per expected without the flag. Is there a makefile that does not build system modules when the flag is set?