Altera_Forum
Honored Contributor
14 years agoNios debugger and DDR2 problem
Hi everybody,
The problem is downloading the nios software into the ddr2 memory. I use Quartus 11.sp1 with Qsys to build a system with internal RAM and a DDR2 Uniphy controller. The nios cpu has cache memory for data and instruction. The DDR2 Memory on my custom board has a 16bits width data bus and it's data mask bits (DM 0 and 1) and tied to ground and not connected to the FPGA. Running a ddr2 memory test program from the internal memory is successful, as long as the memory is accessed in burst mode. But if the cache is bypassed (write commands IOWR_32DIRECT, ..), then the data in DDR2 is corrupted. The Controller makes always 4 burst accesses and so the word before or after the addressed memory word is corrupted. It is the same behavior when I try to download the software directly to DDR2 via debugger. Here is every other word corrupted too. The question is: Are the DM bits tied to ground the cause of this problem? And if yes, is there any working configuration for Nios, DDR2 Uniphy ... ? Thank you for any hints