[STM32L0] 调试期间出错Failure at line: 13 in 'Target Software Startup Scripsts'.

[复制链接]
 楼主| 柴库柴库 发表于 2025-7-14 22:58 | 显示全部楼层 |阅读模式
遇到了NUCLEO-L073RZ开发板的问题,
我使用Atollic Truestudio对NUCLEO开发板进行编程和调试。当我插入开发板并开始调试时,它返回以下错误:
Failure at line: 13 in 'Target Software Startup Scripsts'.
Please edit the debug configuration settings
Error finishing flash operation .
我使用ST-LINK Utility擦除闪存,但仍然出现相同的错误。我还卸载了Atollic Truestudio,同样无法解决这个问题。
调试设置
# Set flash parallelism mode to 32, 16, or 8 bit when using STM32 F2/F4 microcontrollers
# Uncomment next line, 2=32 bit, 1=16 bit and 0=8 bit parallelism mode
#monitor flash set_parallelism_mode 2
# Set character encoding
set host-charset CP1252
set target-charset CP1252
# Reset to known state
monitor reset
# Load the program executable
load
# Reset the chip to get to a known state. Remove "monitor reset" command
# if the code is not located at default address and does not run by reset.
monitor reset
# Enable Debug connection in low power modes (DBGMCU->CR)
set *0xE0042004 = (*0xE0042004) | 0x7
# Set a breakpoint at main().
tbreak main
# Run to the breakpoint.

小小蚂蚁举千斤 发表于 2025-7-28 23:29 | 显示全部楼层
程序内核导致的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

47

主题

67

帖子

0

粉丝
快速回复 在线客服 返回列表 返回顶部