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:
parent
09f0930f59
commit
60aac4a75b
2
dist/tools/openocd/openocd.sh
vendored
2
dist/tools/openocd/openocd.sh
vendored
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user