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
  • The point is that both Baud Rates need to be the same.

    I don't quite follow your description of the "solution" but, evidently, one side of the link or the other was not working at the clock speed that you thought it was, so your baud rate calculation was giving the wrong answer - because the baud rate is derived from the clock.

Reply
  • The point is that both Baud Rates need to be the same.

    I don't quite follow your description of the "solution" but, evidently, one side of the link or the other was not working at the clock speed that you thought it was, so your baud rate calculation was giving the wrong answer - because the baud rate is derived from the clock.

Children