cancel
Showing results for 
Search instead for 
Did you mean: 

printf swo on stm32l0x1 m0+

Stm32User
Associate II
Posted on July 06, 2017 at 15:00

Designing own board based on stm32L0x1 and looking at debug provision.

Am I right in thinking that printf style output is not available via the debugger ( ST-LINK/V2) on the stm32L0 (m0+) parts as:-

1) They only have SWDIO and SWCLK pins and don't have SWO pin.

2) They don't have ITM in debug unit.

I can track out usart lines and gnd to some pads and connect a usb to ttl cable for use with hyperterminal but was wondering are there any other options via the debugger ?

3 REPLIES 3
Posted on July 06, 2017 at 16:18

Bob Boys from Keil has posted an example using the Event Viewer, this uses a RAM allocation to store trace data

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 06, 2017 at 16:19

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on July 06, 2017 at 16:22

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

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