C:\Soft\OpenOCD-20180728\bin\openocd.exe -c "tcl_port disabled" -s C:\Soft\OpenOCD-20180728\share\openocd\scripts -f board/stm32f103c8_blue_pill(stlink).cfg -c "program \"D:/temp/oiler_01/cmake-build-debug/oiler_01.elf\"" -c reset -c shutdown
Open On-Chip Debugger 0.10.0 (2018-07-28) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results mi
ght differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v33 API v2 SWIM v7 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.223715
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
Programming Started
auto erase enabled
Info : device id = 0x20036410
Info : flash size = 64kbytes
Warn : no flash bank found for address 0x00000000
wrote 0 bytes from file D:/temp/oiler_01/cmake-build-debug/oiler_01.elf in 0.011
002s (0.000 KiB/s) Programming Finished
shutdown command invoked
stm32f1x.cfg on target in OpenOCD
...
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32f1x 0x08000000 $_FLASH_SIZE 0 0 $_TARGETNAME
...
ST-LINK
12:11:14 : ST-LINK SN : 48FF6E064883535349370787
12:11:14 : ST-LINK FW : V2J33S7
12:11:14 : Voltage : 3.23V
12:11:14 : SWD freq : 4000 KHz
12:11:14 : Connect mode: Normal
12:11:14 : Reset mode : Software reset
12:11:14 : Device ID : 0x410
12:11:14 : UPLOADING OPTION BYTES DATA ...
12:11:14 : Bank : 0x00
12:11:14 : Address : 0x4002201c
12:11:14 : Size : 8 Bytes
12:11:14 : Bank : 0x01
12:11:14 : Address : 0x1ffff800
12:11:14 : Size : 16 Bytes
12:11:14 : UPLOADING ...
12:11:14 : Size : 1024 Bytes
12:11:14 : Address : 0x8000000
12:11:14 : Read progress:
12:11:14 : Data read successfully
12:11:14 : Time elapsed during the read operation is: 00:00:00.018
Expected Behavior
Building project should succeed.
Actual Behavior
Error wrote elf to board on OpenOCD
Steps to Reproduce the Problem
Specifications
Comments
C:\Soft\OpenOCD-20180728\bin\openocd.exe -c "tcl_port disabled" -s C:\Soft\OpenOCD-20180728\share\openocd\scripts -f board/stm32f103c8_blue_pill(stlink).cfg -c "program \"D:/temp/oiler_01/cmake-build-debug/oiler_01.elf\"" -c reset -c shutdown Open On-Chip Debugger 0.10.0 (2018-07-28) [https://github.com/sysprogs/openocd] Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : The selected transport took over low-level target control. The results mi ght differ compared to plain JTAG/SWD adapter speed: 1000 kHz adapter_nsrst_delay: 100 none separate Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : Unable to match requested speed 1000 kHz, using 950 kHz Info : clock speed 950 kHz Info : STLINK v2 JTAG v33 API v2 SWIM v7 VID 0x0483 PID 0x3748 Info : using stlink api v2 Info : Target voltage: 3.223715 Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints Info : Listening on port 3333 for gdb connections target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc Programming Started auto erase enabled Info : device id = 0x20036410 Info : flash size = 64kbytes Warn : no flash bank found for address 0x00000000 wrote 0 bytes from file D:/temp/oiler_01/cmake-build-debug/oiler_01.elf in 0.011 002s (0.000 KiB/s) Programming Finished shutdown command invoked
stm32f1x.cfg on target in OpenOCD
... set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME stm32f1x 0x08000000 $_FLASH_SIZE 0 0 $_TARGETNAME ...
ST-LINK
12:11:14 : ST-LINK SN : 48FF6E064883535349370787 12:11:14 : ST-LINK FW : V2J33S7 12:11:14 : Voltage : 3.23V 12:11:14 : SWD freq : 4000 KHz 12:11:14 : Connect mode: Normal 12:11:14 : Reset mode : Software reset 12:11:14 : Device ID : 0x410 12:11:14 : UPLOADING OPTION BYTES DATA ... 12:11:14 : Bank : 0x00 12:11:14 : Address : 0x4002201c 12:11:14 : Size : 8 Bytes 12:11:14 : Bank : 0x01 12:11:14 : Address : 0x1ffff800 12:11:14 : Size : 16 Bytes 12:11:14 : UPLOADING ... 12:11:14 : Size : 1024 Bytes 12:11:14 : Address : 0x8000000 12:11:14 : Read progress: 12:11:14 : Data read successfully 12:11:14 : Time elapsed during the read operation is: 00:00:00.018