discovery icon indicating copy to clipboard operation
discovery copied to clipboard

How should I run it? My microbit v2 device has no led light

Open Jzow opened this issue 3 years ago • 2 comments

log:

➜  discovery git:(gh-pages) ✗ cd microbit/05-led-roulette 
➜  05-led-roulette git:(gh-pages) ✗ cargo embed --features v2 --target thumbv7em-none-eabihf
    Finished dev [unoptimized + debuginfo] target(s) in 0.31s
      Config default
      Target /Users/jameszow/Documents/RustWorkSpace/discovery/microbit/05-led-roulette/target/thumbv7em-none-eabihf/debug/led-roulette
     Erasing sectors ✔ [00:00:00] [#######################################################################################]  4.00KiB/ 4.00KiB @ 26.19KiB/s (eta 0s )
 Programming pages   ✔ [00:00:00] [#######################################################################################]  4.00KiB/ 4.00KiB @ 11.60KiB/s (eta 0s )
    Finished flashing in 0.419s

I didn't see the effect

Jzow avatar Sep 26 '22 01:09 Jzow

By the way, what is the command to enter gdb? I used this command, but it is obviously incorrect

arm-none-eabi-gdb -q -ex "target remote :1337" target/thumbv7em-none-eabihf/debug/led-roulette

Jzow avatar Sep 26 '22 01:09 Jzow

did you uncomment the line in Embed.toml like we had to do in 03-setup?

As for gdb, from the discovery/microbit directory, I used gdb-multiarch target/thumbv7em-none-eabihf/debug/led-roulette followed by (gdb) target remote :1337

Edit: I confirmed it also works for me by using arm-none-eabi-gdb instead of gdb-multiarch.

mattjperez avatar Sep 30 '22 20:09 mattjperez