1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

openocd.sh: fix verify_image with IMAGE_OFFSET

When flashing with an IMAGE_OFFSET, it should also be passed to
verify_image. It is handling the base address in the image too.

This works with both elf files and binaries with the base address added.
This commit is contained in:
cladmi 2018-08-16 15:42:03 +02:00
parent 09f0930f59
commit 60aac4a75b
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -178,7 +178,7 @@ do_flash() {
${OPENOCD_PRE_FLASH_CMDS} \
-c 'flash write_image erase \"${IMAGE_FILE}\" ${IMAGE_OFFSET} ${IMAGE_TYPE}' \
${OPENOCD_PRE_VERIFY_CMDS} \
-c 'verify_image \"${IMAGE_FILE}\"' \
-c 'verify_image \"${IMAGE_FILE}\" ${IMAGE_OFFSET}' \
-c 'reset run' \
-c 'shutdown'" &&
echo 'Done flashing'