SW-DP interface for debugging?

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

Moderators: RoccoMarco, barthess

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

SW-DP interface for debugging?

Postby nullbert » Sat Sep 30, 2017 3:53 am

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?

Postby nullbert » Sat Sep 30, 2017 4:22 am

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?

Postby nullbert » Mon Oct 09, 2017 6:43 am

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

Thanks!

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: SW-DP interface for debugging?

Postby Giovanni » Mon Oct 09, 2017 7:29 am

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

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 28 guests