Altera_Forum
Honored Contributor
21 years agoUart printf problems
Hi all,
I'm trying to run a simple "Hello Word" program in a Nios project on a Opus103 EVB. The device is EP1C6144, with an extrernal 2Mb 16-bit wide SDRAM connected to it. Using the standard "Hello Word" from NiosII IDE I see printed on both UART and JtagUART "HHllooffoo iissII!!" instead of "Hello from NiosII!" The project is compiled with all data (.text, .rodata, .rwdata) mapped in external SDRAM. Using variables for computational purposes, watching memory and variables inspection windows, everything looks well... but printf doesn't give the expected output. The only way to fix this problem is put at least .rwdata objects in internal RAM. Does anyone have an idea of what is wrong in my project? Than you, Paolo