Skip to content

Metro RP2350 stuck in safe mode after resets, reinstalling CP and nuke flash #10207

@BlitzCityDIY

Description

@BlitzCityDIY

CircuitPython version and board name

Adafruit CircuitPython 9.2.6 on 2025-03-23; Adafruit Metro RP2350 with rp2350b

Code/REPL

import audiobusio
import audiocore
import board
import adafruit_tlv320

i2c = board.I2C()
dac = adafruit_tlv320.TLV320DAC3100(i2c)
dac.configure_clocks(sample_rate=44100, bit_depth=16)
dac.speaker_output = True
dac.speaker_volume = -10 # dB
audio = audiobusio.I2SOut(board.D9, board.D10, board.D11)
with open("StreetChicken.wav", "rb") as wave_file:
    wav = audiocore.WaveFile(wave_file)
    print("Playing wav file!")
    audio.play(wav)
    while audio.playing:
        pass
print("Done!")

Behavior

i was trying to double check the street chicken wav playback example with a metro rp2350 and the tlv320dac3100 breakout. initially, it wasn't recognizing the breakout over i2c which was strange because i had just used it in arduino and had not touched the wiring. after a few power cycles and reloads, i hit this safe mode message:

Auto-reload is off.
Running in safe mode! Not running saved code.

You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Heap allocation when VM not running.
Please file an issue with your program at github.com/adafruit/circuitpython/issues.
Press reset to exit safe mode.

Press any key to enter the REPL. Use CTRL-D to reload.

resetting/power cycling did not fix. i went into bootloader mode and reloaded circuitpython. after booting, it was still in safe mode with the same message. i ran the nuke flash uf2 and then reloaded the circuitpython uf2 and it is still in safe mode.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions