Page 1 of 1

SW-DP interface for debugging?

Posted: Sat Sep 30, 2017 3:53 am
by nullbert
Hi,

Does ChibiOS have any functions for using the SW-DP for outputting debuging messages over SWD? I'm using openocd as well.

Having this would free up a USART we're currently using for debugging output.

Barring that, can anyone recommend a software UART implementation for STM32 that could be used for debugging output? I would only need TX, no receive needed.

Thanks!

Re: SW-DP interface for debugging?

Posted: Sat Sep 30, 2017 4:22 am
by nullbert
Hm, it might be as simple as some inline assembly. Here's a hint of how it might work:

https://electronics.stackexchange.com/q ... d-using-gd

Re: SW-DP interface for debugging?

Posted: Mon Oct 09, 2017 6:43 am
by nullbert
Any recommendations? Should the example code in the link simply do the job?

Thanks!

Re: SW-DP interface for debugging?

Posted: Mon Oct 09, 2017 7:29 am
by Giovanni
ChibiOS does not have such a functionality, I have not tried that code.

Giovanni