Forum Discussion

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

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

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?

3 Replies

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

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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)