|
From: Edgar G. <edg...@zy...> - 2008-04-29 09:49:28
|
Hi Jonathan, > Have a look at your LPC's datasheet, particularly the Memory Mapping > Control part of the System Control Block documentation. I bet if you switch > the MEMMAP register to 0x1 to view user flash, you would see what you expect. > I found the documentation bit describing the usage of the Memory Mapping Control, thanks for the tip. From my point of view, there should be a line in a reset event script to write 1 to this register. This way, the binary written to flash will also pass verify_image. mwb 0xE01FC040 0x01 On the other hand, there seems to be another problem: > mwb 0xE01FC040 0x01 > mdw 0 32 0x00000000: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 0x00000020: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 0x00000040: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff 0x00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff > flash fillw 0 0xaabbccdd 24 wrote 96 bytes to 0x00000000 in 0.625000s (1.750000 kb/s) > mdw 0 32 0x00000000: aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd 54dd65f5 aabbccdd aabbccdd 0x00000020: aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd 0x00000040: aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd aabbccdd 0x00000060: ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff and, even more into the "typical user operation" area: > flash erase_address 0 0x2000 erased address 0x00000000 length 8192 in 0.557000s > flash write_image C:\workspace\open_ocd\testing\examples\LPC2148Test\test_rom.elf wrote 364 byte from file C:\workspace\open_ocd\testing\examples\LPC2148Test\test_rom.elf in 0.153000s (2.323325 kb/s) > verify_image C:\workspace\open_ocd\testing\examples\LPC2148Test\test_rom.elf checksum mismatch - attempting binary compare Verify operation failed address 0x00000014. Was 0x58 instead of 0x60 Regards, Edgar |