-----Ursprüngliche Nachricht-----Hi John,
Von: fabrice derrien [mailto:fabrice.derrien@fr.thalesgroup.com]
Gesendet: Montag, 28. April 2003 18:00
An: microblaze-uclinux@itee.uq.edu.au
Betreff: [microblaze-uclinux] Memec P160 : FlashI'm trying to get the Flash on the Memec/Insight boards working with the external controller peripheral. I follow your advice, on the Xilinx's Forum and it seems to work (CFI query command : OK). However, I did manage to write bytes in the Flash and after read them back.
flash_location = 0xFF001000;
flash_data_read = *flash_location; -------> it contains 0x00FF00FF
*flash_location = 0x5555; // write
flash_location++;
flash_data_read = *flash_location; -------> it contains 0x00FF00FF
flash_location = 0x4444; // write
flash_location--;
flash_data_read = *flash_location;
putnum(flash_data_read); // read -------> return 0x00FF00FF (not 0x5555 !)
flash_location++;
putnum(flash_data_read); // read -------> return 0x00FF00FF (not 0x4444 !)
So, I didn't manage to write anynthing.
Where I'm wrong? Is there others thing to do (erase the flash ?) ?
If you have any working example, I am strongly interested in.Thanks in advance for any help.
Fabrice
Attachment:
xmdflash.tcl
Description: xmdflash.tcl