On Mon, May 25, 2009 at 9:56 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: > On Mon, May 25, 2009 at 9:46 PM, Xiaofan Chen <xiaof...@gmail.com> wrote: >>>> But it still does not work with the lpcusb isoc hex file. >> >> According to vbindiff report of the dump file, the first 0x160 >> portion of the dump is not correct. Other than that, it seems >> to be ok. >> >> dump_isoc.bin is from OpenOCD. >> isoc_io_sample.bin is from arm-elf-objcopy. >> > > Problem solved. I need to erase the first bank! > # erase first bank only: > flash erase_sector 0 0 26 > > Now it works! Thanks for the help.
It seems that I am a lousy programmer but not too bad at debugging issues. ;-) Thanks a lot for the help from Michael Fisher! mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3/flash$ openocd -f myopenocd.cfg Open On-Chip Debugger 0.2.0-in-development (2009-05-25-21:15) svn:1910 BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS $URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $ RCLK - adaptive Info : J-Link compiled Feb 20 2006 18:20:20 -- Update -- Info : JLink caps 0x3 Info : JLink hw version 30000 Info : Vref = 3.268 TCK = 1 TDI = 0 TDO = 0 TMS = 0 SRST = 1 TRST = 255 Info : J-Link JTAG Interface ready Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : JTAG Tap/device matched Info : accepting 'telnet' connection from 0 target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x2000005f pc: 0x00000868 target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x2000005f pc: 0x00000868 flash 'lpc2000' found at 0x00000000 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 erased sectors 0 through 26 on flash bank 0 in 0.255993s 0x00000000: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 0x00000020: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff Warn : Verification will fail since checksum in image(0xe1a00000) written to flash was different from calculated vector checksum(0xb9205f84). Warn : To remove this warning modify build tools on developer PC to inject correct LPC vector checksum. wrote 8036 byte from file isoc_io_sample.hex in 1.627033s (4.823293 kb/s) 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 0000 0000 0x00000040: 0078 e59f f0db e321 d000 e1a0 0040 e240 f0d7 e321 d000 e1a0 0040 e240 f0d1 e321 0x00000060: d000 e1a0 0040 e240 f0d2 e321 d000 e1a0 0c01 e240 f0d3 e321 d000 e1a0 0b01 e240 0x00000080: f0df e321 d000 e1a0 1034 e59f 2034 e59f 3034 e59f 0003 e152 0004 3491 0004 3482 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 0000 0000 0x00000040: 0078 e59f f0db e321 d000 e1a0 0040 e240 f0d7 e321 d000 e1a0 0040 e240 f0d1 e321 0x00000060: d000 e1a0 0040 e240 f0d2 e321 d000 e1a0 0c01 e240 f0d3 e321 d000 e1a0 0b01 e240 0x00000080: f0df e321 d000 e1a0 1034 e59f 2034 e59f 3034 e59f 0003 e152 0004 3491 0004 3482 0x000000a0: fffb 3aff 0000 e3a0 1020 e59f 2020 e59f 0002 e151 0004 3481 fffc 3aff 01b7 ea00 0x000000c0: 7edc 4000 1f64 0000 0200 4000 0200 4000 0200 4000 06a8 4000 fffe eaff fffe eaff 0x000000e0: fffe eaff fffe eaff 00ff e200 4030 e92d 3010 e240 5040 e59f 000f e350 30ff e203 0x00000100: e083 e1a0 3000 9595 3004 8595 c080 e1a0 2003 93a0 2003 83a0 3c12 91c3 3e12 81c3 0x00000120: 10ff e201 3c11 9183 3e11 8183 4005 e1a0 3000 9585 3004 8585 8030 e8bd c000 e002 Info : JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) Info : JTAG Tap/device matched mc...@ubuntu904:~/Desktop/build/openocd/jlinkv3/flash$ telnet localhost 4444 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Open On-Chip Debugger > halt target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x2000005f pc: 0x00000868 > poll target state: halted target halted in ARM state due to debug-request, current mode: System cpsr: 0x2000005f pc: 0x00000868 > flash probe 0 flash 'lpc2000' found at 0x00000000 > mdh 0x0 30 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 > flash erase_sector 0 0 26 erased sectors 0 through 26 on flash bank 0 in 0.255993s > mdh 0x0 30 0x00000000: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff 0x00000020: ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff > flash write_image isoc_io_sample.hex 0x0 Verification will fail since checksum in image(0xe1a00000) written to flash was different from calculated vector checksum(0xb9205f84). To remove this warning modify build tools on developer PC to inject correct LPC vector checksum. wrote 8036 byte from file isoc_io_sample.hex in 1.627033s (4.823293 kb/s) > mdh 0x0 30 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 > mdh 0x0 80 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 0000 0000 0x00000040: 0078 e59f f0db e321 d000 e1a0 0040 e240 f0d7 e321 d000 e1a0 0040 e240 f0d1 e321 0x00000060: d000 e1a0 0040 e240 f0d2 e321 d000 e1a0 0c01 e240 f0d3 e321 d000 e1a0 0b01 e240 0x00000080: f0df e321 d000 e1a0 1034 e59f 2034 e59f 3034 e59f 0003 e152 0004 3491 0004 3482 > mdh 0x0 160 0x00000000: f018 e59f f018 e59f f018 e59f f018 e59f f018 e59f 5f84 b920 fff0 e51f f014 e59f 0x00000020: 0040 0000 00e4 0000 00e0 0000 00e4 0000 00e4 0000 00d8 0000 00dc 0000 0000 0000 0x00000040: 0078 e59f f0db e321 d000 e1a0 0040 e240 f0d7 e321 d000 e1a0 0040 e240 f0d1 e321 0x00000060: d000 e1a0 0040 e240 f0d2 e321 d000 e1a0 0c01 e240 f0d3 e321 d000 e1a0 0b01 e240 0x00000080: f0df e321 d000 e1a0 1034 e59f 2034 e59f 3034 e59f 0003 e152 0004 3491 0004 3482 0x000000a0: fffb 3aff 0000 e3a0 1020 e59f 2020 e59f 0002 e151 0004 3481 fffc 3aff 01b7 ea00 0x000000c0: 7edc 4000 1f64 0000 0200 4000 0200 4000 0200 4000 06a8 4000 fffe eaff fffe eaff 0x000000e0: fffe eaff fffe eaff 00ff e200 4030 e92d 3010 e240 5040 e59f 000f e350 30ff e203 0x00000100: e083 e1a0 3000 9595 3004 8595 c080 e1a0 2003 93a0 2003 83a0 3c12 91c3 3e12 81c3 0x00000120: 10ff e201 3c11 9183 3e11 8183 4005 e1a0 3000 9585 3004 8585 8030 e8bd c000 e002 > reset JTAG tap: lpc2148.cpu tap/device found: 0x4f1f0f0f (Manufacturer: 0x787, Part: 0xf1f0, Version: 0x4) JTAG Tap/device matched -- Xiaofan http://mcuee.blogspot.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development