
On 8/30/07, Ben Warren bwarren@qstreams.com wrote:
robert lazarski wrote:
On 8/29/07, Ben Warren bwarren@qstreams.com wrote:
robert lazarski wrote:
atum8548>erase 0 Erasing flash at 0x00000000 # Erasing flash memory failed
Thanks Ben and all. I really do have 1Gb / 128MB of flash - here's some quick docs:
You're right. Sorry about that.
CHIPSIZE 0x128000 ;The size of one flash chip in bytes
CHIPSIZE 0x8000000
Did you mean to say I should have 'CHIPSIZE 0x8000000' ? Is 0x128000 for 1Gb (128MB) not correct? I tried that but still get the same error.
Whenever I use the erase command, I specify the sector size and the number of sectors to erase. Have you tried:
erase 0xf8000000 0x20000 1 (erase 1 sector sized 128kB)
Tried that:
atum8548>erase 0xf8000000 0x20000 1 # Erasing flash memory failed
I think my unlocking is incorrect...
Can you read from the chip using the mdh command? Everything should be
No, I get: atum8548>mdh # SAP: read access failed
0xFFFF. You can also try unlocking the chip manually. For my chip the sequence is:
; Enable flash programming WM16 0xfe000000 0x0060 ;clear flash lock-bits WM16 0xfe000000 0x00d0 DELAY 1000 WM16 0xfe000000 0xffff
I haven't looked at the memory map of your chip, but it may be different.
I tried that to no effect - will be looking at docs to confirm mine is the same later today.
Another fun thing to do is to try querying the chip's CFI registers to see if it responds. This is documented in section 12.2 of the Spansion spec.
I'll look at that too - thanks for the help! Robert