Skip to main content
Stm32User
Associate III
July 6, 2017
Question

printf swo on stm32l0x1 m0+

  • July 6, 2017
  • 3 replies
  • 1021 views
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 ?

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    July 6, 2017
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    July 6, 2017
    Posted on July 06, 2017 at 16:19

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

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