Skip to content

Fix ESP32-S3 GPIO_PIN_COUNT compatibility#224

Open
fresh3nough wants to merge 1 commit intoHelTecAutomation:masterfrom
fresh3nough:fix/issue-211-gpio-pin-count
Open

Fix ESP32-S3 GPIO_PIN_COUNT compatibility#224
fresh3nough wants to merge 1 commit intoHelTecAutomation:masterfrom
fresh3nough:fix/issue-211-gpio-pin-count

Conversation

@fresh3nough
Copy link

Summary

  • define GPIO_PIN_COUNT when building against newer ESP32-S3 SDKs that only provide SOC_GPIO_PIN_COUNT, before including rtc_io.h.

Reproduction

  1. Use PlatformIO with an ESP32-S3 board (e.g., heltec_wifi_kit_32_V3).
  2. Build a sketch that compiles Heltec SX1262 radio sources (RADIO_CHIP_SX1262) which include driver/rtc_io.h.
  3. On modern Arduino-ESP32/ESP-IDF, the build fails with 'GPIO_PIN_COUNT' undeclared in rtc_io.h.

Tests

  • Attempted: python3 -m platformio run -d /tmp/heltec_pio_211
    • Blocked by existing src/driver/sx126x.h parse error (stray */ after LORA_MAC_PUBLIC_SYNCWORD).

Co-Authored-By: Warp agent@warp.dev

Co-Authored-By: Warp <agent@warp.dev>
@caveman99
Copy link

a note to maintainers - do NOT merge this. Agentic Bot that doesn't take NO for an answer.

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