我正在学习本教程。我已经成功编译了代码,但是当我尝试在终端上使用命令arm-none-eabi-gdb -q thumbv7em-none-eabihf/debug/led-roulette
运行时,它说:
C:Program Files (x86)GNU Tools ARM Embedded8 2018-q4-majorbinarm-none-eabi-gdb.exe: warning: Couldn't determine a path for the index cache directory.
thumbv7em-none-eabihf/debug/led-roulette: No such file or directory
虽然,我已经物理检查了路径,文件确实存在在那里。
我是stm32f3Discovery的初学者,并尝试使用文档设置设备
迄今采取的步骤:
已使用以下方法添加了目标:
rustup target add thumbv7em-none-eabihf
使用命令编译程序:
cargo build --target thumbv7em-none-eabihf
获取以下命令的正确输出:
cargo readobj --target thumbv7em-none-eabihf --bin led-roulette -- -file-headers
当我在Windows上时,我尝试了以下命令来启动openOCD:
openocd -s C:OpenOCDscripts -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
运行以下命令以连接到 gdb 服务器,但失败:
arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/led-roulette
上面的命令应该可以工作并连接GDB服务器,但它没有。
谢谢嘿嘿。您的"三重检查"声明对我有用。是的,这是我在调试时必须更改的路径问题。它正在摇摆..