SW-DP interface for debugging?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
nullbert
Posts: 19
Joined: Tue Aug 30, 2016 7:12 pm
Been thanked: 1 time

SW-DP interface for debugging?

Post 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!
nullbert
Posts: 19
Joined: Tue Aug 30, 2016 7:12 pm
Been thanked: 1 time

Re: SW-DP interface for debugging?

Post 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
nullbert
Posts: 19
Joined: Tue Aug 30, 2016 7:12 pm
Been thanked: 1 time

Re: SW-DP interface for debugging?

Post by nullbert »

Any recommendations? Should the example code in the link simply do the job?

Thanks!
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: SW-DP interface for debugging?

Post by Giovanni »

ChibiOS does not have such a functionality, I have not tried that code.

Giovanni
Post Reply