Altera_Forum
Honored Contributor
19 years agoParallel Flash Problems
I have searched tediously through the forums for any help on this, and have tried a lot of different things.
I am using the same Flash chip as on the NIOS II Cyclone II Eval board on a custom design; the AM29LV128REI (16-bit design in 8-bit mode). When I run nios2-flash-programmer --debug, it reads the CFI table, however, only a few bytes are a wrong, and it always seems to be the same bytes. I tried extending the timings to make them longer, and this changes the results, but it's still not correct. Sometimes, when it reads it correct, I can't program it, I get verify errors. I have used SignalTap to try and see what's going on, and it hasn't helped narrow down the problem. For example, when reading one of hte bytes from the CFI table, the address gets setup correctly, CEn goes low, then OEn a few cycles later. Sometimes, this doesn't produce the proper value; instead, the value shows up on the next cycle (address+1). On a 16-bit device in x8 mode, the reading of address and address+1 should be the same value. Since the software probably latches data in on the first reading, it is sometimes wrong. Anyway, it's hard to picture this being a signal-integrity problem since it's such low speed, and it's not even that far away. Any hints on debugging this?