Altera_Forum
Honored Contributor
13 years agouncontrolled SDRAM content change
Hi,
I use a code which checks external SDRAM () by writing 0xAAAA and 0x5555 patterns. But the code always return an error code! When I check step by step SDRAM content with NIOSII IDE I can see (with the memory monitor) that data cell changes well at desired address but a lot of other cells change at same time around the desired address. The other cells have arbitrary value but all change with the same value. I don't understand why because I just do a simple loop with an IOWR and an offset increment of 1 (for 32bit cell increment) - All the code resides inside the onchip memory (.text + .data + heap + stack) so nothing should access to SDRAM - reset and exception vectors point to onchip memory - PLL is well configured for SDRAM - No compilation error or warning I'm sure the hardware is OK because when running with the "normal" firmware and .sof (in this case code resides inside SDRAM) and everything is OK. I use an EP3C40F484I7 cyclone III FPGA with a Micron MT48LC4M32B2 SDRAM, Quartus and NIOS II 9.0SP2