Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

NIOS, jtag & printf

Altera_Forum
Honored Contributor II
1,291 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
564 Views

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
0 Kudos
Reply