「已注销」 2021-06-16 13:00 采纳率: 0%
浏览 931

clion 使用openocd烧写程序报错

C:\Users\azjho\openocd\openocd-20200729\OpenOCD-20200729-0.10.0\bin\openocd.exe -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -s C:\Users\azjho\openocd\openocd-20200729\OpenOCD-20200729-0.10.0\share\openocd\scripts -f C:\Users\azjho\Desktop\stm32\te\stm320518_eval_stlink.cfg -c "program C:/Users/azjho/Desktop/stm32/te/cmake-build-debug/te.elf" -c "init;reset init;" -c "echo (((READY)))"
Open On-Chip Debugger 0.10.0 (2020-07-29) [https://github.com/sysprogs/openocd]
Licensed under GNU GPL v2
libusb1 09e75e98b4d9ea7909e8837b7a3f00dda4589dc3
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version = 0254
Info : CMSIS-DAP: Serial# = 110136025233312036373237313033323230303297969903
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 300 kHz
Info : SWD DPIDR 0x0bc11477
Info : STM32L053C8T6.cpu: hardware has 4 breakpoints, 2 watchpoints
Info : starting gdb server for STM32L053C8T6.cpu on 3333
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0xf0000000 pc: 00000000 msp: 00000000
STM32L0: Enabling HSI16
** Programming Started **
Info : Device: STM32L0xx (Cat. 3)
Info : STM32L flash size is 64kb, base address is 0x8000000
Info : SWD DPIDR 0x0bc11477
Error: Failed to write memory at 0x20002000
Error: error writing to flash at address 0x08000000 at offset 0x00000000
embedded:startup.tcl:500: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 565
at file "embedded:startup.tcl", line 500
GDB Server stopped, exit code 1

  • 写回答

2条回答 默认 最新

  • 翻斗恶霸 2022-07-10 23:43
    关注

    要不尝试点击烧写之后立刻点击复位

    评论

报告相同问题?