USB debugging for non-PX4 supported FC

Hi,

I am new to the drone project and PX4. I am trying to modify the PX4 firmware for a non-PX4-supported commercial FC. I am using the “syslog” function to print stuff out and verify the calls in “board_app_initialize” function are working, at least that’s what being used by default. But I am unable to get any of that to print in the MAVLink Console in QGroundControl using “dmesg” comment. The debug messages at the beginning will cut off because the QGroundControl will hang for a few seconds as it’s prompting the user to configure the FC, in my case it hangs with a bunch of error windows because it is trying to find an SDcard, which this non-PX4-supported FC does not have. And I also don’t know what “syslog” actually does, does it log boot information to an SDcard or does it print messages to the console?

This link provides a way to set up a serial debugger - PX4 System Console | PX4 Guide (main) . But unfortunately, the MCU on this non-PX4-supported FC comes in BGA package, so there’s no way to access the pins for UART Tx and Rx. And I don’t know how to configure to use the UART for debugging in NuttX and PX4.

So my question is how do I set up for real-time debugging using the default USB configuration? For example, every message in the source code will print on the console after a power cycle.

Thanks.