Tests with the nrf52_dk board (nRF52832 Microcontroller)
- Microcontroller: nRF52832
- arm-none-eabi-objcopy: Required to transform the
ELF
file toHEX
- nrfjprog: Required to install the
HEX
in the DK board.
- openocb compiled with jlink support.
- gdb
./debugger.sh
cargo run --example <example_name>
cargo build
arm-none-eabi-objcopy \
-O ihex \
target/thumbv7em-none-eabihf/debug/watch \
target/thumbv7em-none-eabihf/debug/watch.hex
nrfjprog --family nRF52 --eraseall && \
nrfjprog --family nRF52 --program target/thumbv7em-none-eabihf/debug/watch.hex && \
nrfjprog --family nRF52 -r