cancel
Showing results for 
Search instead for 
Did you mean: 

Printf SWO debugging in Cortex M0+

Ash G
Associate II
Posted on June 20, 2018 at 01:45

I'm trying to use printf to SWO viewer on ST-LINK utility for debugging purposes. I'm using a STM32L062K8, which has a Cortex M0+processor. After much research on the internet, found out that ITM trace is not available on M0+ processors. Which means I can't use any ITM functions as explained

http://www.openstm32.org/forumthread2893

. I can't find any solution or tutorial on this problem. Is there any work around for this situation?

Thank you! 

1 ACCEPTED SOLUTION

Accepted Solutions
Posted on June 20, 2018 at 02:55

 ,

 ,

https://community.st.com/0D70X000006SlaWSAS

 ,
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

5 REPLIES 5
Posted on June 20, 2018 at 01:54

Bob Boys published an article on using the EVT event recorder method. I'll try to dig up the posts when I get back to a computer. 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 20, 2018 at 02:55

 ,

 ,

https://community.st.com/0D70X000006SlaWSAS

 ,
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 20, 2018 at 03:34

Thank you! Appreciate your help. But unfortunately, I'm using STM32 Workbench. I have come a long way with this project to change IDE now. Is there any other solution available that will work with STM32 Workbench?  

Posted on June 20, 2018 at 03:55

Well the only other real alternative is to use an USART TX pin. The newer NUCLEO/DISCO implementation typically provide a VCP connection.

Keil has a free license for the ST CM0(+) parts, and can compile with GNU/GCC if that is important.

http://www2.keil.com/stmicroelectronics-stm32/mdk

 
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 21, 2018 at 06:18

Thank you! I'll try using Keil IDE