[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Memec P160 : Flash



Hi John,

I'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
 
 

begin:vcard 
n:DERRIEN;Fabrice
tel;work:+33 (0)1 30 96 88 06
x-mozilla-html:FALSE
org:THALES Optronique;GTO
version:2.1
email;internet:fabrice.derrien@fr.thalesgroup.com
adr;quoted-printable:;;Rue Guynemer - BP 55 =0D=0A=0D=0A=0D=0A;GUYANCOURT;;78283;FRANCE
fn:Fabrice Derrien
end:vcard