Skip to content

fix: modify esp32c5 devkit max gpio#759

Merged
espzav merged 3 commits intoespressif:masterfrom
Miaojianyu:fix/modify_esp32c5_devkit_gpio
Apr 13, 2026
Merged

fix: modify esp32c5 devkit max gpio#759
espzav merged 3 commits intoespressif:masterfrom
Miaojianyu:fix/modify_esp32c5_devkit_gpio

Conversation

@Miaojianyu
Copy link
Copy Markdown
Contributor

@Miaojianyu Miaojianyu commented Apr 13, 2026

ESP-BSP Pull Request checklist

  • Version of modified component bumped
  • CI passing

Change description

Increase the ESP32-C5 GPIO range limit in esp_bsp_devkit Kconfig from 0..25 to 0..28.

The previous configuration incorrectly excluded valid ESP32-C5 GPIOs from menuconfig, which prevented selecting GPIO26, GPIO27, and GPIO28 for generic BSP button and LED settings. This does not match the actual ESP32-C5 GPIO numbering, which spans GPIO0..GPIO28.

This update aligns the generic BSP GPIO selection range with the chip's valid GPIO index range, allowing current ESP32-C5 DevKit board configurations to be represented correctly, including setups using GPIO27 for LED and GPIO28 for boot button related functions.


Note

Low Risk
Low risk: this only widens the ESP32-C5 menuconfig GPIO range used for BSP pin selection and bumps the component version, with no runtime logic changes.

Overview
Fixes ESP32-C5 DevKit BSP menuconfig GPIO selection by increasing ENV_GPIO_RANGE_MAX from 25 to 28, allowing GPIO26GPIO28 to be chosen for generic button/LED settings.

Bumps esp_bsp_devkit component version from 3.0.1 to 3.0.2 to reflect the configuration change.

Reviewed by Cursor Bugbot for commit 52d7e39. Bugbot is set up for automated code reviews on this repo. Configure here.

@Miaojianyu
Copy link
Copy Markdown
Contributor Author

Miaojianyu commented Apr 13, 2026

@tore-espressif Please review this MR

Comment thread bsp/esp_bsp_devkit/idf_component.yml Outdated
@Miaojianyu Miaojianyu force-pushed the fix/modify_esp32c5_devkit_gpio branch from cc30d8f to e0a0c20 Compare April 13, 2026 08:09
Copy link
Copy Markdown
Collaborator

@espzav espzav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Miaojianyu Thank you for this fix. LGTM

@espzav espzav merged commit 091d60a into espressif:master Apr 13, 2026
97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants