esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 36 forks source link

ESP32-Pico-V3-02 GPIO7/8 to be used for RX/TX #6022

Open robotechnology1977 opened 3 months ago

robotechnology1977 commented 3 months ago

The problem

The ESP32-Pico-V3-02 SoM indicates that:

As such, the Pins IO7 and IO8 can be used and they are routed-out at the ESP32 Module's interface.

However, the _ESP_SDIO_PINS list from /esphome/esphome/tree/2024.6.6/esphome/components/esp32/gpio_esp32.py is still listing the IO7 and IO8 as used for Flash interface, preventing their usage in SW Applications. I encountered this problem while using this ESP32-Pico V3-02 on the Adafruit ESP32 Feather V2 board.

I recommend adapting this _ESP_SDIO_PINS list by removing the IO7, IO8 and adding the IO9, IO10 - preferably in another list, with another error check and message, since those last 2 pins are for PSRAM and not Flash. To maintain compatibility with previous ESP32 Modules(boards), might be needed to create a new gpio_esp32_XX.py file ?

Which version of ESPHome has the issue?

2024.6.6

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP32

Board

adafruit_feather_esp32_v2

Component causing the issue

platform: gpio

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

Might relate partially to the https://github.com/esphome/issues/issues/3538

edave commented 2 months ago

I can confirm this is also an issue that prevents Adafruit ESP32 Feather V2 boards from being used (or updated once ESPHome has been installed on them). They also have GPIO 7/8 setup for RX/TX. See this pinout for more details.