Skip to main content
stanzanim
Associate III
August 4, 2015
Question

ITM, Debug window,CMISIS support

  • August 4, 2015
  • 3 replies
  • 760 views
Posted on August 04, 2015 at 17:46

Hello

I am using NUCLEO L053R8 (STM32L0) and Keil uVision 5.15 and ST-Link (embedded in the nucleus board). I buid a FW program using CubeFx 

I am setting up the stdoutput with no semihosting using the ITM.

First I cannot find the Debug printf window in the uVision GUI claimed by the Keil documentation at http://www.keil.com/support/man/docs/ulink2/ulink2_trace_itm_viewer.htm

I understand this is for keil U-LINK2 though. Does ST link support ITM debug?

I would use CMSIS ITM functions I cannot find the functions ITM_SendChar etc. as documented by https://www.keil.com/pack/doc/CMSIS/Core/html/group___i_t_m___debug__gr.html#gaaa7c716331f74d644bf6bf25cd3392d1 (I see CMISIS stff in the CubeFx generated program

)

I am afraid I am doing something undamentally wrong ...
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    August 4, 2015
    Posted on August 04, 2015 at 18:14

    I am afraid I am doing something fundamentally wrong ...

    The Cortex-M0 doesn't support the ITM/SWV mechanism. For the Nucleo use the USART2 connectivity via the ST-LINK's VCP, and then use a terminal program to connect to that COM port.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    August 4, 2015
    Posted on August 04, 2015 at 18:16

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/virtual%20com%20port%20using%20stm32l053r8%20cube%20libaries%20in%20keil%20%28via%20USB%20to%20virtual%20com%20port%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=14]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fvirtual%20com%20port%20using%20stm32l053r8%20cube%20libaries%20in%20keil%20%28via%20USB%20to%20virtual%20com%20port%29&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https%3A%2F%2Fmy.st.com%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Java%2FAllItems.aspx¤tviews=14

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    stanzanim
    stanzanimAuthor
    Associate III
    August 4, 2015
    Posted on August 04, 2015 at 18:39

    thanks much clive! I was doing something obviously wrong ;)