This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Printf weird behavior

Hi guys,
So I'm facing an annoying issue using printf in keil. The IDE does not show what I print, furthermore it just keeps printing continuously random characters like these : ™™™™úú±úy±q±ù±± ± ± ™ú± ± ± ‘±± ™üý™±±ú±úú %±üú©ú±™þ
All I did was declare a variable, and then print it :
printf(" %d \n", testVariable);

- I included stdio.h
- I created a file with the fputc function
But still nothing works. Does anyone have any idea?..
Thank you very much !

keil : 5.23
StM32373C eval board.

Parents
  • I'm using a host application which communicates with my MCU. The BR of both is set to the same value.

    However I found my problem , I'm writing the solution here in case it can help someone in the future :
    I had the change the core Clock in the debug options.
    Go to project otpions -> debug -> settings ( ST-Link debugger)-> trace-> Core clock
    This value needs to be the same as your MCU clock !
    Hope this helps.

Reply
  • I'm using a host application which communicates with my MCU. The BR of both is set to the same value.

    However I found my problem , I'm writing the solution here in case it can help someone in the future :
    I had the change the core Clock in the debug options.
    Go to project otpions -> debug -> settings ( ST-Link debugger)-> trace-> Core clock
    This value needs to be the same as your MCU clock !
    Hope this helps.

Children