cancel
Showing results for 
Search instead for 
Did you mean: 

ITM, Debug window,CMISIS support

stanzanim
Associate III
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 ...
3 REPLIES 3
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
stanzanim
Associate III
Posted on August 04, 2015 at 18:39

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