forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
micro:bit v2 does not run CircuitPython code #10798
Copy link
Copy link
Closed
Description
CircuitPython version and board name
Adafruit CircuitPython 10.0.3; micro:bit v2 with nRF52833Code/REPL
import time
import digitalio
import board
led = digitalio.DigitalInOut(board.LED)
led.direction = digitalio.Direction.OUTPUT
while True:
led.value = True
time.sleep(0.1)
led.value = False
time.sleep(0.1)Behavior
Serial console setup
Auto-reload is off.
Running in safe mode! Not running saved code.
You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
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.
Adafruit CircuitPython 10.0.3 on 2025-10-17; micro:bit v2 with nRF52833
>>>
Description
micro:bit v2 crashes due to out of bounds memory access
Additional information
When clicking 'run current script' in Thonny it causes the memory error
Reactions are currently unavailable