Flash problem

Hi,

I'm trying to do reads/writes to a flash device on our board using the Microblaze processor. The part itself is the same as featured on the Insight board for the XC2V1000 eval board.

When I simply try and read back the manufacturer and id codes, I get the value 0x00AA00AA instead - incorrect value. Any erase or write operations also fail.

I'm using EDK 6.3 and an opb_emc peripheral - I used to use an opb_memcon (I think) on previous versions of the EDK and this worked ok with the same board.

It's a combined SRAM/Flash device and the SRAM works ok. I've no clue why it now fails.

Cheers,

Pete.

Reply to
PH
Loading thread data ...

The opb_emc controller can not handle any Flash devices correctly if the total width of flash is not 32 bits

so if you have a 16 bit flash connected and bus widht matching enabled you need small glued logic to FIX the opb_emc

this may or may not be your problem

antti

"PH" schrieb im Newsbeitrag news: snipped-for-privacy@c13g2000cwb.googlegroups.com...

Reply to
Antti Lukats

Pete,

I used opb_emc EDK6_2i with a PPC. I also used the P160 Insight board for the XC2V1000. I got it to work . Watch out to get the sram_ben paired up correctly with the data. If you get the order messed up with sram, you can write it "wrong" and read it back "wrong", and it will look correct. The read only flash ID is another story. I set PARAMETER C_NUM_BANKS_MEM = 2

Added another address range for the additional (flash) bank.

This resulted in sram_cen to be a vector. one for the sram and one for the flash.

Lastly, I had to increase the amount of time required to access the flash. It was slower than the sram portion. It was nice to watch the transactions using chipscope.

Good luck,

- Newman

Reply to
newman5382

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.