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++
12605 Discussions

###STRANGE BEHAVIOR WITH "\n" ###

Altera_Forum
Honored Contributor II
956 Views

Hi Everyone, 

I am posting an observation of mine.  

using the statement 

printf("\n"); 

 

causes the NIOS system to crash. Anyone faced the same problem? 

Besides avoiding to use it, any pointers to what might be happenning?
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
275 Views

I had such a problem with printf too,  

it seems to be a problem with printf, but printf uses a  

lot of resources (about 1700 byte of stack) and  

simply produced another error earlier. 

 

the stack was sometimes destroyed, i searched one week, 

it was a problem with 16 bit SRAM timing. I had to setup  

one setup cycle for sram, otherwise sometimes the sram was writing  

to illegal address location too. 

(address signals not stable at write pulse). 

I ran into this error because on the cyclone dev. board the sram uses  

zero setup time.
0 Kudos
Altera_Forum
Honored Contributor II
275 Views

How many wait states did you end up programming?

0 Kudos
Altera_Forum
Honored Contributor II
275 Views

SRAM: (ISSI) IS61LV25616AL-10T 

 

we use  

setup: 1 cycle 

wait: 1 cycle 

hold: 1 cycle 

 

in interface to user logic, the writeform is shown wrong , 

shows only 1 write cycle, but should be 2 cycles (one normal and 1 wait)
0 Kudos
Reply