cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to print logs using printf on STM32F303

AGupt.12
Associate II

Hi,

I am using STM32F303 micro controller for my development on IAR 8.40.1 IDE running at 72MHz.

I am facing a problem where logs are not getting printed on SWO ( using IAR Terminal IO ) using printf. Its printing few characters from the log for example

printf("Hellow World ") is printing "Hello w" only on terminal IO.

I am using STLink debugger for debugging and flashing purpose and have also checked STLINK frequency in Project ->Options->STLINK on IAR.

Another strange observation is if i use I-Jet debugger in place of STLINK, logs print works correctly.

Is there some setting we need to do in IAR or any other configuration required to do in microcontroller registers ??

1 REPLY 1
Ozone
Lead II

Sounds to me like concurrency issues within the debug pod (ST-Link) firmware, at least in relation to IAR.

I wouldn't bother and use the I-Jet.

Or perhaps you could try the J-Link firmware for the ST-Link, provided by Segger.