-1

I am following the official documentation of Discover Rust. I am trying to flash the program into STM32F3. The Flash chapter asks to execute this command

<gdb> -q target/thumbv7em-none-eabihf/debug/led-roulette

but it returns

bash: gdb: No such file or directory

As advised, my location is

naufil@Naufil:~/Desktop/discovery/src/05-led-roulette

and there is indeed led-roulette file inside debug folder. I have also made user if gdb is installed by executing

$ which -a gdb
/usr/bin/gdb
Muhammad Naufil
  • 2,420
  • 2
  • 17
  • 48

2 Answers2

2

From immediately below that command in the documentation you linked:

NOTE: <gdb> represents a GDB program capable of debugging ARM binaries. This could be arm-none-eabi-gdb, gdb-multiarch or gdb depending on your system -- you may have to try all three.

Sean Bright
  • 118,630
  • 17
  • 138
  • 146
2

All I had to do was remove the greater and less than characters:

gdb -q target/thumbv7em-none-eabihf/debug/led-roulette
Muhammad Naufil
  • 2,420
  • 2
  • 17
  • 48