Altera_Forum
Honored Contributor
17 years agoBehavior of printf through jtag_uart directed to stdout
Dear all,
My design uses a NIOS II on ARIA-GX. Briefly it is an AMC (µTCA) board with a Gigabit port (Gigabit MAC and alt2gxb). The board is able to receive some simple commands and returns data using UDP frames. I've some printf messages in my code (a message when a command is received) and I've noticed a strange behavior with printf. The jtag uart output is mapped to stdout. If I test my board without connecting the USB Blaster and without running the nios2-terminal on the remote PC, the board accepts about 35 commands and then stop accepting new commands. Then, If I connect the USB-Blaster and run the nios2-terminal, all the buffered messages are displayed and the board accepts commands again. It seems that the program is blocked when a number of printf are reached. Some of you have an explaination ? Thanks for your help. Claude