qmk/qmk_firmware

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

Open

#25930 opened on Jan 4, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C (20,368 stars) (43,867 forks)batch import
bughelp wanted

Description

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.

Contributor guide