Skip to main content
hospodar
Associate III
January 2, 2013
Question

Printf to debug viewer(in Keil) on Cortex M0

  • January 2, 2013
  • 5 replies
  • 2389 views
Posted on January 02, 2013 at 23:20

Hello,

do STM32F0 support function, where printf output is forwarded to ''Debug (printf) Viewer'' in Keil not to UART?

Thanks

    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    January 3, 2013
    Posted on January 03, 2013 at 02:32

    Trace (ETM, ITM, DWT) not available on Cortex-M0

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Bob Boys
    Visitor II
    June 30, 2017
    Posted on June 30, 2017 at 18:13

    This is possible using uVision Event Recorder:

    See

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

     

    Bob Boys

    ARM

    Bogdan Golab
    Lead
    June 30, 2017
    Posted on June 30, 2017 at 18:46

    The IDE can do it for you - go to 'Manage Run-Time Environment' and select the right option for STDOUT. In this case ITM.

    0690X00000607ZhQAI.png
    Bogdan Golab
    Lead
    June 30, 2017
    Posted on June 30, 2017 at 18:47

    For sure for non M0 devices  - in this case not available on F0.

    Bob Boys
    Visitor II
    July 1, 2017
    Posted on July 01, 2017 at 04:17

    Hello

    The 'USER' selection is normally used to redirect to hardware such as a UART.

    Using ITM or EVR does not require a UART or other user hardware.

    Attached is an updated version of the Keil ST-Link appnote. I will put this on Keil.com early next week:

    See page 15 for the method to provide printf for STM32F0 Coretx-M0 processors. This will also work for other Cortex-M devices.

    Bob Boys

    ________________

    Attachments :

    StLink_3.pdf : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyV0&d=%2Fa%2F0X0000000b9l%2FCZUhXcxo1Z.qMFD1lt5rT1NXY4zT1WG81B3GSWYdXcU&asPdf=false