Skip to main content
Visitor II
January 28, 2020
Question

Unable to print logs using printf on STM32F303

  • January 28, 2020
  • 1 reply
  • 830 views

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 ??

    This topic has been closed for replies.

    1 reply

    Explorer
    January 28, 2020

    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.