无法通过arm-none-eabi-gdb命令连接到GDB服务器
Unable to connect to the GDB server through arm-none-eabi-gdb command
我正在关注这个 tutorial。我已经成功编译了代码,但是当我尝试在终端上使用命令 arm-none-eabi-gdb -q thumbv7em-none-eabihf/debug/led-roulette
运行 时,它说:
C:\Program Files (x86)\GNU Tools ARM Embedded 2018-q4-major\bin\arm-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 的初学者,正在尝试使用 documentation
设置设备
到目前为止采取的步骤:
已添加目标使用:
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:\OpenOCD\scripts -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
运行这个命令连接到gdb服务器,但是失败了:
arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/led-roulette
上面的命令应该可以工作并连接 GDB 服务器,但它没有。
谢谢你...你的 'Triple check' 声明对我有用。是的,这是我在调试时必须更改的路径问题。摇摇欲坠..
我正在关注这个 tutorial。我已经成功编译了代码,但是当我尝试在终端上使用命令 arm-none-eabi-gdb -q thumbv7em-none-eabihf/debug/led-roulette
运行 时,它说:
C:\Program Files (x86)\GNU Tools ARM Embedded 2018-q4-major\bin\arm-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 的初学者,正在尝试使用 documentation
设置设备到目前为止采取的步骤:
已添加目标使用:
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:\OpenOCD\scripts -f interface/stlink-v2-1.cfg -f target/stm32f3x.cfg
运行这个命令连接到gdb服务器,但是失败了:
arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/led-roulette
上面的命令应该可以工作并连接 GDB 服务器,但它没有。
谢谢你...你的 'Triple check' 声明对我有用。是的,这是我在调试时必须更改的路径问题。摇摇欲坠..