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

AW: [microblaze-uclinux] Memec P160 : Flash



Title: Nachricht
Hello Fabrice,
 
this is Jan from Germany. I could provide you a tcl-script you can use in xmd to write to your flash. I have used it on the P160 Module. The code is quite simple and it should be easy to transfer it to C.
I have attached this script. you can use it in xmd with the following command:
 
source path_to_script/xmdflash.tcl
 
Hope that will be a little help. Any information about bugs are welcome.
 
Regards
Jan
 
 
-----Ursprüngliche Nachricht-----
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 : 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
 
 

Attachment: xmdflash.tcl
Description: xmdflash.tcl