Am 02.07.2012 16:39, schrieb Ken Smith:
> define flash
>    #monitor soft_reset_halt
>    monitor reset halt
>    #monitor flash write_image app.elf
>    monitor flash write_image app.bin 0x0 bin
>    monitor verify_image app.bin 0x0 bin
>    symbol-file app.elf
>    monitor reset init
>end

You want a "reset init" before flashing. Otherwise the bootloader is
still mapped at the low addresses - interrupt vector table. That is why
the verify step fails.

Verify will also fail when OpenOCD corrects the vector checksum - but it
tells you so in the log message.

-- J. Fischer



------------------------------------------------------------------------------
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
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to