Hello Xiaofan,

>I have not tried to use flashing so far. So today I tried to learn how to
>flash the LPC2148 on board of the Olimex LPC-P2148.
>
>I tried to halt the target and then use
>"flash write_image isoc_io_sample.hex 0x0 ihex" but this does
>not seem to work. 

Here I have a Olimex LPC-P2148 board too, tested with a FT2232
device under windows, with the r1893.

For testing, I have a short hex file, called test_rom.hex

1) flash write_image test_rom.hex 0x0
2) dump_image dump.bin 0x0 364

After this I got a file dump.bin on my HD. Now I convert the hex
file to a bin file with:

arm-elf-objcopy -I ihex -O binary test_rom.hex test_rom.bin

After this I compare the test_rom.bin with the dump.bin file.
Both files are equal!

Attached are the file which I use for testing. If you like send
me your file that I can test it here too.

Best regards,

Michael

Attachment: test_rom.hex
Description: Binary data

Attachment: jtagkey.cfg
Description: Binary data

_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to