cancel
Showing results for 
Search instead for 
Did you mean: 

printf() in IAR 9.20.2 doesn't work

CKang.3
Associate

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

1 REPLY 1

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 Venmo
Up vote any posts that you find helpful, it shows what's working..