I have enabled exitonerror option, but with verifybin it doesn't work. Why ?
Here is my script:
and logs:
Here is my script:
exitonerror 1
device STM32F405RG
if SWD
speed 400k
connect
r
h
loadfile ch.bin,0x8000000
w1 0x8000005,0x55
verifybin ch.bin,0x8000000
r
go
exit
and logs:
Downloading file [ch.bin]...
Comparing flash [100%] Done.
Erasing flash [100%] Done.
Programming flash [100%] Done.
Verifying flash [100%] Done.
J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (16384 bytes)
J-Link: Flash download: Total time needed: 1.030s (Prepare: 0.114s, Compare: 0.074s, Erase: 0.341s, Program: 0.473s, Verify: 0.001s, Restore: 0.024s)
O.K.
Writing 55 -> 08000005
Loading binary file ch.bin
Reading 81272 bytes data from target memory @ 0x08000000.
Verify failed @ address 0x08000005.
Expected 02 read 55
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Comparing flash [100%] Done.
Erasing flash [100%] Done.
Programming flash [100%] Done.
Verifying flash [100%] Done.
J-Link: Flash download: Bank 0 @ 0x08000000: 1 range affected (16384 bytes)
J-Link: Flash download: Total time needed: 1.272s (Prepare: 0.196s, Compare: 0.009s, Erase: 0.341s, Program: 0.610s, Verify: 0.001s, Restore: 0.112s)
Reset: Halt core after reset via DEMCR.VC_CORERESET.
Reset: Reset device via AIRCR.SYSRESETREQ.