Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNios and tcl script writing to RAM
Hi, I have an image loaded with a Nios , Jtag master and jtag UART. I have wrote C code to write to the on-chip RAM. I have also a tcl script that can read and write to the RAM. When ...
Altera_Forum
Honored Contributor
11 years agoActually, I am still reading the wrong values, even with using the Nios II / e without a data cache.
The thing I don't understand is that why sometimes I am reading the expected values back and other times not. I was convinced that it was the cache issue at first but it is still not behaving like I expect. If I write to memory with the ram_write tcl command and read it back with a ram_read command, it is reading the correct value back. Likewise with C, when writing to memory and read it back with printf(), I am reading the same value. Does this mean that my DDR3 controller is working? If so, why am I not reading the same values from tcl as in C (only sometimes). I am reading from the same memory locations. Maybe I am missing something else ?