Replies: 3 comments 4 replies
-
Thinking aloud... One way could be to use the
Perhaps make |
Beta Was this translation helpful? Give feedback.
-
Hi @terjeio Have tested locally on the H7 driver. Is working well over SWO/RTT, and when DEBUGOUT is defined to a spare serial port. However, I get a hardfault when console is on USB connection and DEBUG is defined without DEBUGOUT. It seems get_tx_buffer_count() is null for the USB stream? Line 764 in 8b9b785 |
Beta Was this translation helpful? Give feedback.
-
Thanks, I've pushed an update to the H7 driver. Should also work as-is for F3, F4, F7.. Defaults to SWO, but can be overriden to use Segger RTT with a |
Beta Was this translation helpful? Give feedback.
-
Thanks for adding the additional serial stream debug output options.
It would be useful to add support for debugger interfaces like SWO or Segger RTT. These would normally be written with printf(), with driver code to override the output - like this for SWO.
Would it be possible to add a similar debug_printf() implementation that targets printf() when enabled, and a NOP if DEBUG is not defined?
Beta Was this translation helpful? Give feedback.
All reactions