Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

NIOS, 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

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Looks like I can answer my own question. My external clock is running at 25MHz. My PLL was initially set to create an internal system clock that equaled this 25MHz rate. I bumped that to 85MHz and that cured the problem.

    --tim