Problem verifing and downloading code
Hello.
I have used system workbench with eclipse for years now, but couple of days ago something weird started that I haven’t figured out. If I try to load code onto my STM microcontroller, I get a checksum mismatch error.
It all looks like this in console:
Open On-Chip Debugger 0.10.0-dev-00019-g5352c55 (2019-02-14-15:45)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 4000 kHz
adapter_nsrst_delay: 100
Info : clock speed 4000 kHz
Info : STLINK v2 JTAG v27 API v2 SWIM v0 VID 0x0483 PID 0x3748
Info : vid/pid are not identical: 0x0483/0x374B 0x0483/0x3748
Info : using stlink api v2
Info : Target voltage: 2.899586
Info : Stlink adapter speed set to 4000 kHz
Info : STM32F407VGTx.cpu: hardware has 6 breakpoints, 4 watchpoints
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08003018 msp: 0x20020000
configuring PLL
- Programming Started **
auto erase enabled
Info : device id = 0x10076413
Info : flash size = 1024kbytes
Warn : no flash bank found for address 0
wrote 0 bytes from file Debug/hcsr04.elf in 0.000000s (nan KiB/s)
- Programming Finished **
- Verify Started **
Error: checksum mismatch - attempting binary compare
diff 0 address 0x00000000. Was 0x00 instead of 0xf8
diff 1 address 0x00000001. Was 0x00 instead of 0xb5
diff 2 address 0x00000002. Was 0x02 instead of 0x00
diff 3 address 0x00000003. Was 0x20 instead of 0xbf
diff 4 address 0x00000004. Was 0x19 instead of 0xf8
diff 5 address 0x00000005. Was 0x30 instead of 0xb5
diff 6 address 0x00000007. Was 0x08 instead of 0xbf
No more differences found.
- Verify Failed **
shutdown command invoked
I have always kept my software up-to-date and if I am not wrong, there were some updates lately. May it have something to do with it?
I would be grateful for any kind of help.
Elvar