Open sigmaris opened 1 year ago
Hi @sigmaris, interesting problem. From your logs it seems that the issue occurs somewhere here: https://github.com/knurling-rs/probe-run/blob/80ab01860a509b077ec9024efd57569560d776dd/src/main.rs#L62-L86
The last log statement ((HOST) DEBUG opened probe
) is emitted at the end of probe::open
and the log statement which would be shown next ((HOST) DEBUG opened probe
) is not being shown as the stack overflow happens before.
As you don't use the --connect-under-reset
option the most likely place the error can come from is the probe.attach(probe_target, Permissions::default())
.
Now the question is why this causes the stack overflow 🤔 I will try to reproduce.
Describe the bug I am trying to flash and run an ELF based on the RP2040 project template to an W5500-EVB-Pico board, using a J-Link EDU probe. The board is identical to the RP Pico board but additionally has a WizNet W5500 Ethernet chip on the RP2040's SPI interface, but that shouldn't affect debugging. Due to https://github.com/probe-rs/probe-rs/issues/1157 it isn't possible using the J-Link 'native' mode, but the probe can be reconfigured to support CMSIS-DAP mode, so I've done this and am attempting to use it with probe-run.
To Reproduce
probe-run --list-probes
:probe-run --chip RP2040 --probe 000261003501 --verbose target/thumbv6m-none-eabi/debug/rp2040-project-template
Expected and observed behavior I expected the ELF to be run on the RP2040, but probe-run itself crashes with the message
I've attached the full macOS problem report with stack trace: problemreport.txt
config.toml
Probe details
ELF file rp2040-project-template.zip
Operating System: macOS 12.6 x86_64