2015-08-04 08:46 AM
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.htmI 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 ...2015-08-04 09:14 AM
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.2015-08-04 09:16 AM
[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¤tviews=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
2015-08-04 09:39 AM
thanks much clive! I was doing something obviously wrong ;)