Page 1 of 1

WT32-SC01 Plus and I2S pins

Posted: Mon Nov 11, 2024 6:32 pm
by iwanttolearn
Hi! I have a WT32-SC01 Plus module which according to the datasheet has an ESP32-S3-N16R2 on it. The board uses GPIO number 35, 36, and 37 for I2S. When I use a simple Arduino sketch, I can hear the sound from the speaker I connect to it. The problem is when I want to do the same thing with ESP-IDF (5.3.1), I get warnings on all 3 pins saying they can't be used and are reserved.

Code: Select all

W (298) i2s_common: GPIO 37 is not usable, maybe conflict with others
W (308) i2s_common: GPIO 35 is not usable, maybe conflict with others
W (308) i2s_common: GPIO 36 is not usable, maybe conflict with others
I tracked the pin reservation down to

Code: Select all

esp_mspi_pin_reserve
function inside flash_ops.c file. It uses

Code: Select all

SOC_SPI_MEM_SUPPORT_OPI_MODE
directive and reserves those 3 pins, as well as GPIO 33 and 34 that in fact are unusable. The definition is inside soc_caps.h and part of the IDF. Is there a way to use GPIO 35, 36, and 37? Seems like a problem since the pins are available and usable otherwise.

Re: WT32-SC01 Plus and I2S pins

Posted: Tue Nov 12, 2024 1:57 am
by ESP_Sprite
Do you have octal PSRAM enabled in menuconfig?

Re: WT32-SC01 Plus and I2S pins

Posted: Tue Nov 12, 2024 8:00 pm
by iwanttolearn
I have quad PSRAM enabled, but these GPIOs are reserved at startup regardless of the PSRAM selection, and based on the definitions inside soc_caps.h file for ESP32-S3 chips.