Hallo, I have just played a little bit with a LPC2378 on an Olimex LPC-2378-STK board using OpenOCD from SVN 971 (built with mingw/msys, running on WinXP with JTAGkey). The calc_checksum option is given in the flash bank definition and 'flash write_image erase project.elf elf' is used to flash the target followed by 'verify_image project.elf elf' to see if the flashing has been successful. OpenOCD has calculated the checksum correctly and the application works as expected but verify fails since the "on-the-fly" modification is not taken into account:
> verify_image project.elf elf checksum mismatch - attempting binary compare Verify operation failed address 0x00000014. Was 0x58 instead of 0x00 It would be nice the rest of the flash-content could be verified even if the checksum at 0x14 does not match the content of the load-image. As a quick workaround maybe like this - check if an LPC2k "bank" is used - check if the calc_checksum option is given If both "true": on mismatch at 0x14 just print "Warning: LPC2000 check_sum at 0x14 mismatch ignored" and just continue verifying the rest of the sections As far as I can see gdb's compare-sections also alerts the mismatch. Martin Thomas _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
