Forum Discussion

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

printf Output Corruption

Greetings, everyone. I am having a strange problem with the simple, bog-standard Hello World program running on a NIOS II processor. I have a system with on-chip memory and off-chip SDRAM, and want to have .rodata and .rwdata off-chip, with all other regions on-chip. I use the NIOS II IDE to specify that the project's .rodata and .rwdata should be stored in SDRAM. When I run the program, the output from Hello World shown in the terminal is garbled. When I set .rodata and .rwdata back to onchip memory, the output is fine.

Has anyone observed this phenomenon, and are there any ideas as to how I might solve this?

Thanks in advance.

Regards,

Austin Rogers
No RepliesBe the first to reply