Skip to main content
CKang.3
Visitor II
February 18, 2022
Question

printf() in IAR 9.20.2 doesn't work

  • February 18, 2022
  • 1 reply
  • 2630 views

I have been using prinf() function in IAR 9.10.1 without any issue.

0693W00000KZjbbQAD.png0693W00000KZjbgQAD.png 

0693W00000KZjbqQAD.png 

Recently I upgraded to IAR 9.20.2 but the printf() didn't work any more.

I also contacted IAR and they said fputc() based printf is not supported by IAR 9.20 any more and recommended using __write() instead of fpuct().

I am looking for some example codes with __write() for printf in STM32L476 processor.

Can anyone help me out?

Thanks,

Chris

This topic has been closed for replies.

1 reply

Tesla DeLorean
Guru
February 18, 2022

The function just writes a block of data to the UART, can't be that complicated to code. Look at how the GNU examples are architected. Or fish on Google

https://www.iar.com/knowledge/learn/programming/overriding-and-redirecting-library-modules-without-rebuilding-the-entire-library/

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..