Debugging

Embed.toml:

  1. [default.general]
  2. chip = "nrf52833_xxAA"
  3. [debug.gdb]
  4. enabled = true

In one terminal under src/bare-metal/microcontrollers/examples/:

  1. cargo embed --bin board_support debug

In another terminal in the same directory:

On gLinux or Debian:

  1. gdb-multiarch target/thumbv7em-none-eabihf/debug/board_support --eval-command="target remote :1337"

On MacOS:

  1. arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/board_support --eval-command="target remote :1337"

In GDB, try running:

  1. b src/bin/board_support.rs:29
  2. b src/bin/board_support.rs:30
  3. b src/bin/board_support.rs:32
  4. c
  5. c
  6. c