Forum Discussion
Altera_Forum
Honored Contributor
13 years agoNiosII printf() not printing correctly
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 work...
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- Maybe it is a source of incorrect "value" : memory of integer "K" could be overwritten. "Strings" are located inline or at the end of program section, whereas data are in other section. It is a clue, i am not expert in multi processor. Good luck --- Quote End --- Mmmm, that's an interesting thought. but I checked the values from the debugger and they are correct. Only printf() function outputs the messed up values. I also tried sprintf() to get the integer values converted into a string, and the converted string is still incorrect. Biggest problem is why nothing gets printed when the normal C library is used.