QUERY · ISSUE
ports/rp2: "Uncaught exception in IRQ callback handler" when retrieving PIO FIFO value with MSB set
bugport-rp2
Port, board and/or hardware
Official Pico w/rp2040
MicroPython version
MicroPython v1.24.0 on 2024-10-25; Raspberry Pi Pico with RP2040
Reproduction
uncaught_exception_test.py.txt
Expected behaviour
MPY: soft reboot
0x12345678
0x12345678
Observed behaviour
MPY: soft reboot
Uncaught exception in IRQ callback handler
Traceback (most recent call last):
File "<stdin>", line 33, in irq_handler
MemoryError: memory allocation failed, heap is locked
0x00000000
0x00000000
Additional Information
Some discussion/commentary here:
https://github.com/micropython/micropython/blob/master/ports/rp2/rp2_pio.c#L820
Code of Conduct
Yes, I agree
CANDIDATE · PULL REQUEST
rp2: Fix crash in a pin.irq handler.
port-rp2
When accessing the argument of the irq function. Fixes issue #10547.