cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3-Discovery and ITM port printf

jtredez
Associate
Posted on December 21, 2013 at 22:28

Hello,

I try to use the ITM printf funtionality with my STM32F3-Discovery board. I follow the explanation of the STM youtube channel http://www.youtube.com/watch?v=lUPSqfO4ISk

but I can't get it to work. I use keil, the compilation is ok, the code is running but nothing is displayed to the ''Debug (printf) Viewer'' window.

Does someone succesfully do this?

One more question, on the schematic of the Discovery board I see the possibility to connect (thru SB13 and SB15) the STM32F3_UART1_TX and RX to the STLINK, how to use this functionnality?

Thank you

#stm32f3-itm-printf
2 REPLIES 2
Posted on December 21, 2013 at 22:42

It works in Keil, I used it in the example I posted at the end here the other day. [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/STM32F3%20new%20project&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=173]this thread

Critical take-aways : a) the Solder Bridge SB10 has to be made for SWO (PB3) to connect to the ST-LINK, b) the Trace must be enabled correctly, especially the Frequency of the core, which MUST match reality (nominally 72 MHz, but depends on how you've set things up).

The USART pins you are talking about aren't much use in the ST-LINK context. You can connect USART pins to a USB-to-CMOS Serial type adapter, or MAX3232 converter to get 3V siginals converted to RS232 levels.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jtredez
Associate
Posted on December 22, 2013 at 15:18

Thank you for your fast answer clive1, I just miss the SB10 solder bridge.