Skip to content

Writing to the NVM on the RP2350 crashes to Safe Mode, CP-9.2.0 #9773

Closed
@b-blake

Description

@b-blake

CircuitPython version

Adafruit CircuitPython 9.2.0 on 2024-10-28; Adafruit Feather RP2350 with rp2350a
Board ID:adafruit_feather_rp2350
UID:A4E22C9B6217AF8D

Code/REPL

# in boot.py
go_dev_mode = 0xff # change to crash

if go_dev_mode:
    if microcontroller.nvm[0:1] == b"\x00":
        microcontroller.nvm[0:1] = b"\xff"
else:
    if microcontroller.nvm[0:1] == b"\xff":
        microcontroller.nvm[0:1] = b"\x00"

Behavior

In boot.py...

If you change go_dev_mode to 0xff from 0x00 or 0x00 from 0xff the RP2350 MCU crashes to Safe Mode when the RESET button is pushed. Also if you remove and restore power.

Description

The crash happens the first time RESET is pushed after value is changed. The second time RESET is pushed the NVM byte has been changed and no crash happens. When changed back, crash happens on the first RESET, good on the second.

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions