Altera_Forum
Honored Contributor
14 years agoProblems with 16-bit DDR2-SDRAM connected to Nios
Hi,
I am trying to implement a nios system(cyclone III) with 16-bit DDR2 SDRAM and 16-bit Flash device. While try to erase the flash device using the routine listed belowunsigned int32 flashoffset;
unsigned int16 noofblockstoerase;
unsigned int16 erasesize;
flashutils_eraseflash(flashoffset,noofblockstoerase*erasesize); it could only erase 64K locations. I assumed that the argument passed was only the lower 16 bits of the noofblockstoerase*erasesize value, as only a 16-bit RAM is connected. Please let me know if there is a solution where, even if i dont explicitly declare a variable it would still work as normally as 32-bit RAM.