Altera_Forum
Honored Contributor
15 years agoNIOS, jtag & printf
I've got Altera 10.0sp1 installed and am running into a problem using printf with the JTAG uart configuration in my BSP. The net result is that printf either truncates some of the data that I'm printing out or prints duplicated characters. For example:
a)) Test Ram
b) Test Flash
c) Flash Erase
d) Test LED
ee Test GPS State Machine
f) Test SPI
q)Quuit
I'm printing this using one printf for each line. I've got "jtag_uart" setup for the stderr / stdout / stdin in the BSP. I've tried this both through Eclipse and "nios2-terminal" and see similar results. Any ideas what could cause this behavior? I was thinking it might be a buffering problem, but I'm not sure how to track it down. Trying to step into printf statement is a dead-end into a precompiled library. Thanks, --tim