Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RP2040 - Core gets stuck after reflashing #2376

Open
brt-adam-snaider opened this issue Apr 16, 2024 · 2 comments
Open

RP2040 - Core gets stuck after reflashing #2376

brt-adam-snaider opened this issue Apr 16, 2024 · 2 comments
Labels
bug Something isn't working chip:rp2040

Comments

@brt-adam-snaider
Copy link

Describe the bug

Occasionally (~10% of the time) when I use probe-rs to reflash my chip with new software, the new software is reprogrammed but the chip appears to be stuck. The only way to get out of this state is to physically reset the chip.

probe-rs 0.23.0
git commit: 426750d

To Reproduce
Use probe-rs to reflash an RP2040 chip. This issue doesn't always manifest. I've noticed that it mostly happens with larger payloads

Expected behavior
Chip is reflashed and begins running the new software

Desktop (please complete the following information):

Ubuntu 22.04

Additional context

I'm using a CMSIS-DAP probe.

This is what I see after reflashing (again it's almost like the chip is running no software after reflashing since neither my old software nor the new one appears to be executing)

      Erasing ✔ [00:00:00] [###########################################################################################################################################################################################################################################################################################################] 56.00 KiB/56.00 KiB @ 71.87 KiB/s (eta 0s )
  Programming ✔ [00:00:01] [###########################################################################################################################################################################################################################################################################################################] 56.00 KiB/56.00 KiB @ 36.67 KiB/s (eta 0s )
    Finished in 2.337s
        Done processing config default
 WARN probe_rs::architecture::arm::core::armv6m: Core is running, but we expected it to be halted
@brt-adam-snaider brt-adam-snaider added the bug Something isn't working label Apr 16, 2024
@xingrz
Copy link

xingrz commented Apr 18, 2024

Same on STM32F030CC. It seems that the chip is not reset automatically by probe-rs after flash done, unless manually run probe-rs reset. I don't know if it's a expected behavior.

@brt-adam-snaider
Copy link
Author

probe-rs reset doesn't seem to be working for me

$ probe-rs reset --chip RP2040
 WARN probe_rs::architecture::arm::core::armv6m: The core is in locked up status as a result of an unrecoverable exception

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working chip:rp2040
Projects
None yet
Development

No branches or pull requests

3 participants