Skip to content

RP2040: board.UART() giving "Attempted heap allocation when VM not running." on reload #6213

Closed
@dhalbert

Description

@dhalbert

CircuitPython version

7.2.1 and later

Code/REPL

import board
uart = board.UART()

Behavior

on reload:

>>>
soft reboot

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

You are in safe mode because:
CircuitPython core code crashed hard. Whoops!
Attempted heap allocation when VM not running.
Please file an issue with the contents of your CIRCUITPY drive at 
https://github.com/adafruit/circuitpython/issues

Description

OK in 7.1.0. busio.UART() does not fail. Does not fail on Metro M4, so seems RP2040-specific.board.I2C() and board.SPI() are OK.

Additional information

Bisected to b6858e4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions