I am trying to flash an elf file using openocd flash command. I am using the same pic32mx.cfg and microchip_explorer16.cfg provided by the openocd package.
Here are the commands: > flash write_image erase "UartBasicLab.elf" 0x0 elf auto erase enabled target state: halted target halted in MIPS32 mode due to target-not-halted, pc: 0xa000088c target state: halted target halted in MIPS32 mode due to target-not-halted, pc: 0xa000088c Padding image section 2 with 2832 bytes Adding extra erase range, 00000000 to 0x0000048f target state: halted target halted in MIPS32 mode due to target-not-halted, pc: 0xa000088c Padding image section 4 with 11364 bytes target state: halted target halted in MIPS32 mode due to target-not-halted, pc: 0xa000088c wrote 43888 bytes from file UartBasicLab.elf in 11.722136s (3.656 KiB/s) > sleep 100 > verify_image "UartBasicLab.elf" target state: halted target halted in MIPS32 mode due to target-not-halted, pc: 0xa00049b0 target state: halted target halted in MIPS32 mode due to target-not-halted, pc: 0xa00049b0 checksum mismatch - attempting binary compare diff 0 address 0x9fc00490. Was 0xff instead of 0x00 diff 1 address 0x9fc00491. Was 0xff instead of 0x60 diff 2 address 0x9fc00492. Was 0xff instead of 0x1a diff 3 address 0x9fc00493. Was 0xff instead of 0x40 . . . diff 125 address 0x9fc0050d. Was 0xff instead of 0x00 diff 126 address 0x9fc0050e. Was 0xff instead of 0x00 diff 127 address 0x9fc0050f. Was 0xff instead of 0xad More than 128 errors, the rest are not printed. in procedure 'verify_image' Somehow the memory content in locations 0x9fc0xxxx (as per the elf file) are not updated. All are 'ff's. Is there anything I am missing? ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
