你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

Atollic TrueSTUDIO for STM32不能进入debug

[复制链接]
jzffzj-397106 提问时间:2019-3-21 16:23 /

使用Atollic TrueSTUDIO for STM32  build可以通过,也可以生成elf文件和hex文件,但是点击debug按钮后遇到上图错误,使用ST-Link调试。

错误内容
Error with command: D:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.3.0\ARMTools\bin\arm-atollic-eabi-gdb --version
Cannot run program "D:\Program": Launching failed





启动脚本:
# 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.
continue



收藏 评论3 发布时间:2019-3-21 16:23

举报

3个回答
edmundlee 回答时间:2019-3-21 20:17:43
之前也尝试过TrueSTUDIO, 老是出问题, 放弃了, 现在用VisualGDB,挺好用的, 最少没有那么多bug

评分

参与人数 1蝴蝶豆 +2 收起 理由
STMCU + 2

查看全部评分

imgroot 回答时间:2019-3-27 21:43:28
  1. D:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.3.0\ARMTools\bin\arm-atollic-eabi-gdb --version
复制代码
这个命令要用冒号包围起来,因为文件名里面有空格。

评分

参与人数 1蝴蝶豆 +1 收起 理由
STMCU + 1

查看全部评分

jacky副卡 回答时间:2019-9-27 16:13:07
Error with command: C:\Program Files (x86)\Atollic\TrueSTUDIO for STM32 9.0.1\ARMTools\bin\arm-atollic-eabi-gdb --version
Cannot run program "C:\Program": Launching failed

我也遇到了同样的问题,如何解决的。你当时,能否分享下?
谢谢。

所属标签

相似问题

关于
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
意法半导体官网
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
官方最新发布
STM32N6 AI生态系统
STM32MCU,MPU高性能GUI
ST ACEPACK电源模块
意法半导体生物传感器
STM32Cube扩展软件包
关注我们
st-img 微信公众号
st-img 手机版