Skip to content

MatrixPortal S3: Crash into Safemode after initalizing RGB matrix #9891

@RetiredWizard

Description

@RetiredWizard

CircuitPython version

S3 Bucket: 2024-12-06T15:01:20.000Z adafruit-circuitpython-adafruit_matrixportal_s3-en_US-20241206-main-PR9873-c41d452.uf2:
Adafruit CircuitPython 9.2.1-26-gc41d4527b1 on 2024-12-06; Adafruit MatrixPortal S3 with ESP32S3

Artifact from #9889:
Adafruit CircuitPython 9.2.1-33-gbb49f770a1 on 2024-12-15; Adafruit MatrixPortal S3 with ESP32S3

Code/REPL

import board, displayio, framebufferio, rgbmatrix

displayio.release_displays()

addrPins = [
        board.MTX_ADDRA,
        board.MTX_ADDRB,
        board.MTX_ADDRC,
        board.MTX_ADDRD
]

matrix = rgbmatrix.RGBMatrix(
    width=64,height=32, bit_depth=2,
    rgb_pins=[
        board.MTX_R1,
        board.MTX_G1,
        board.MTX_B1,
        board.MTX_R2,
        board.MTX_G2,
        board.MTX_B2
    ],
    addr_pins=addrPins,
    clock_pin=board.MTX_CLK,
    latch_pin=board.MTX_LAT,
    output_enable_pin=board.MTX_OE,
    tile=1, serpentine=True,
)

Behavior

Adafruit CircuitPython 9.2.1-33-gbb49f770a1 on 2024-12-15; Adafruit MatrixPortal S3 with ESP32S3
>>> import qmatrix
>>> 
>>> a

[12:35:00.454] Disconnected
[12:35:01.455] Warning: Could not open tty device (No such file or directory)
[12:35:01.455] Waiting for tty device..
[12:35:06.462] Connected
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.

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

Description

I actually didn't run the above code in code.py/main.py but manually imported from the REPL. I haven't tested yet what happens if the code is run from the REPL Putting the above program segment in code.py and then typing a random character into the REPL results in the same crash.

After importing a file with the above code, if you type a random character into the REPL, which would normally give a NameError, the board crashes into safe mode.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions