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

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
    关注

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

    评论

报告相同问题?

悬赏问题

  • ¥20 Ros2 moveit2 Windows环境配置,有偿,价格可商议。
  • ¥15 有关“完美的代价”问题的代码漏洞
  • ¥15 请帮我看一下这个简易化学配平器的逻辑有什么问题吗?
  • ¥15 暴力法无法解出,可能要使用dp和数学知识
  • ¥15 wpf通过绑定控件自身的值,来实现背景颜色的切换
  • ¥15 CDH6.3 运行hive -e hive -e "show databases;"报错:hive-env.sh:行24: hbase-common.jar: 权限不够
  • ¥15 SSRS制作的报表打开报错,无法正常显示网页
  • ¥15 乌班图ip地址配置及远程SSH
  • ¥15 怎么让点阵屏显示静态爱心,用keiluVision5写出让点阵屏显示静态爱心的代码,越快越好
  • ¥15 javaweb项目无法正常跳转