Skip to content

Hard fault: memory access or instruction error on Cytron Maker Nano RP2040 running 10.2.1 #11197

Description

@kevinjwalters

CircuitPython version and board name

Adafruit CircuitPython 10.2.1 on 2026-05-13; Cytron Maker Nano RP2040 with rp2040

Code/REPL

Code is large!

Behavior

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

You are in safe mode because:
CircuitPython core code crashed hard. Crikey!
Hard fault: memory access or instruction error.
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.

Description

I've got some large code which is doing lots of i2c comms, some UART, low frequency PWM to make LEDs flash on GPIO, very occasional neopixel use and using a fair bit of memory including some use of large array.array.

I have the RP2040 running at 200Mhz rather than 125MHz. I looked at https://learn.adafruit.com/circuitpython-safe-mode/overview and it doesn't include over-clocking as a potential cause. About a minute after that hard crash the microcontroller.cpu.temperature was 37 degrees celsius FWIW. The temperature is now printed from the program and it's peaking at 43 (ambient is 30, it's hot over here). Can over-clocking cause that type of hard fault?

I'd had the program running okay for 2 hours yesterday and today it died after about 10 minutes of use today.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrashrp2Both RP2 microcontrollers

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions