Open arr-ee opened 1 year ago
I’m happy to dig further, but so far I was unable to understand where that message is even coming from — most of my experience with GDB came from couple of hours of reading while debugging this and #515 :)
https://github.com/probe-rs/probe-rs/issues/1235 points out that microbit v2.20/v2.21 use different interface chip, and it seems like it might behave slightly differently from v2.0. I have not looked into validating this hunch but leaving the link here just in case.
Also running into this on M1 mac. Seems like it's behaving fine other than the message printing out in gdb.
Running into this same issue.
I had this issue too. The folks in the Rust Embedded Matrix room took a look, and could not see why it happens. However, you can just type continue
in GDB, when you get the SIGINT, and carry on with the chapter. They suggested using defmt with probe-rs for debugging embedded Rust code.
I am not sure if this causes any actual issues as of right now, so this might be mostly to get pointers for further digging.
When going through the
Debug it
section, I'm seeinga) unexpected
SIGINT
right afterbreak main
b)SIGINT
when reaching line 16 (==loop {}
)I also noticed that if I start
stepi
after breaking onbreak main
, I getSIGINT
after every command.Full GDB session:
Environment:
❯ sw_vers -productVersion
:13.2.1
❯ rustc -V
:rustc 1.68.0 (2c8cc3432 2023-03-06)
❯ cargo embed --version
:cargo embed 0.16.0
(also tried with https://github.com/probe-rs/probe-rs/pull/1565 based off currentmaster
)❯ arm-none-eabi-gdb --version
:GNU gdb (Arm GNU Toolchain 12.2 (Build arm-12.24)) 12.1.90.20221210-git
cargo embed --target thumbv7em-none-eabihf --features v2