Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

NiosII printf() not printing correctly

$
0
0
Hi all,

I have a problem with the printf() commands not printing. If I un-tick the "small C library" option in the HAL, I don't receive any output to the NiosII console, but the program is working correctly when I check it in the debugger. However, if I use the "small C library" option I do receive the output, but the numbers (integers) are printed incorrectly (i.e. 128 is printed as 111, 1024 is printed as 1111, and so on). I have two NiosII processors and each of them has a separate JTAG UART in the Qsys system.

Has anyone encountered such a problem? Any idea how to resolve this?

Cheers,
Isuru

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>