I'm trying to get things working with my cheap-oh JTAG and hitting some
snags with the flash erase behavior.

First what is the flash block size for the flash on the 2148?  the spec
sheet
http://www.nxp.com/acrobat_download/datasheets/LPC2141_42_44_46_48_3.pdf 
doesn't seem to call it out.

I can look at memory and explore the 2148 memory map (which looks
correct)
but trying to erase the flash is being a problem.  What flash
technology is used in the 2148?  for intel strata flash I sued to poke
flash addresses and implement block operations by hand.  I would like to
see if I can do that with this part.

FWIW the following shows my problem I read 0 to 128, erase the first
blocks then read 0 to 128 to find the data still there.  Is there a
protect flag set on the flash?

> mdh 0x0 128
0x00000000: 4034 e59f 5002 e3a0 5000 e584 5003 e3a0 5004 e584 201c e59f 3000 
e3a0 0093 e102 
0x00000020: 2028 e282 1093 e102 3007 e3c0 3028 e502 f004 e51f d1c4 7fff c014 
e002 c000 e01f 
0x00000040: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x00000060: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x00000080: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x000000a0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x000000c0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x000000e0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
> flash erase 0 0 2
erased sectors 0 through 2 on flash bank 0 in 0s 101437us
> mdh 0x0 128      
0x00000000: 4034 e59f 5002 e3a0 5000 e584 5003 e3a0 5004 e584 201c e59f 3000 
e3a0 0093 e102 
0x00000020: 2028 e282 1093 e102 3007 e3c0 3028 e502 f004 e51f d1c4 7fff c014 
e002 c000 e01f 
0x00000040: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x00000060: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x00000080: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x000000a0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x000000c0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
0x000000e0: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 
ffff ffff ffff 
> 

Any guesses or insights welcome.

Thanks,

ss

Attachment: signature.asc
Description: Digital signature

_______________________________________________
psas-avionics mailing list
psas-avionics@lists.psas.pdx.edu
http://lists.psas.pdx.edu/mailman/listinfo/psas-avionics

Reply via email to