Altera_Forum
Honored Contributor
20 years agoReading from AMD29LV128 flash
Okay scratch my previous post on this topic...
I have written a small Avalon Master peripheral to read addresses from the CFI flash controller. I used SOPC builder to place the CFI controller, a tristate bridge, and my peripheral and generated a system. I am NOT using a NIOS processor. My peripheral can successfully read every 4th byte from the flash (since it's a 32-bit flash device), but how do I access the data in between? The flash is in byte mode, and during simulation, I can see that the Avalon Switch Fabric does 4 independent reads to fill 'readdata' with 32-bits. However, the upper 3 bytes of 'readdata' always contain data from addresses 0x1-0x3 no matter what the upper address bits are set to. Please help! I've been struggling with this for days. I'm using the Cyclone II dev board. Thanks, Jon