Skip to content

[Bug] Crash when using GP26-29 as keyboard matrix pins on RP2040 #25930

@pagpiii

Description

@pagpiii

Describe the Bug

I built keyboards using several development boards with the RP2040 as the main controller. When I enable any one of GP26-GP29 as a matrix pin, the compilation completes successfully, but after flashing the firmware to the board, the program crashes immediately and the board reboots into the bootloader.
The strangest part is that this issue does not occur on all of my boards—even with two identical RP2040-based boards, one crashes every time I flash the firmware, while the other works perfectly without any issues.
Since the crash only happens when GP26 to GP29 are enabled, I suspect there is a conflict between the ADC and GPIO during the initialization phase. I have no idea how to troubleshoot or resolve this problem, so I would greatly appreciate any help or guidance you can provide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions