You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After power-cycling the Raspberry Pi Pico 2, as instructed in #990 (comment), the boot.py still runs.
Description
I was expecting a REPL prompt similar to this, but more applicable to the actual situation:
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
The power dipped. Make sure you are providing enough power.
Press reset to exit safe mode.
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 8.1.0 on 2023-03-30; Adafruit Feather RP2040 with rp2040
I have reproduced this. I'm thinking that the magic word that detects repeated resets is not being saved for some reason (does reset on the RP2350 clear RAM)?
I have reproduced this. I'm thinking that the magic word that detects repeated resets is not being saved for some reason (does reset on the RP2350 clear RAM)?
If that's actually the situation, maybe Safe Mode could be changed to require pressing BOOTSEL during the initial 700ms timeframe? At least on the original Pico, the BOOTSEL button could be read, albeit slowly: https://arduino-pico.readthedocs.io/en/stable/bootsel.html
I looked for differences between our link files & the official one. There were differences, but trying to harmonize them (where it comes to the uninitialized data section) didn't solve anything
Under a picoprobe debugger, if I use the debugger to reset (ctrl-c break and then issue the gdb command "run") during the safe mode window, it works
In the repl, programmatically resetting to safe mode works, which also goes by the same "saved word" method
pressing the feather rp2350 reset button breaks the debugger connection so I can't see what happens in gdb
I noticed we have the rp2350 "pico bootsel via double reset" code linking in but eliminating it didn't do anything
I looked for any related issues reported against pico-sdk but came up empty.
CircuitPython version
Code/REPL
Behavior
After power-cycling the Raspberry Pi Pico 2, as instructed in #990 (comment), the
boot.py
still runs.Description
I was expecting a REPL prompt similar to this, but more applicable to the actual situation:
– https://learn.adafruit.com/circuitpython-safe-mode/overview
However, I was instead met with no REPL, as the
boot.py
disabled the REPL.Additional information
No response
The text was updated successfully, but these errors were encountered: