ESP32-S3 SPI CS
Posted: Wed May 04, 2022 8:22 am
Dear,
we have until now successfully used the esp spi flash library on the ESP32S3-WROOM. However, now we have made a hardware change which affected only the CS pin which has moved from GPIO10 to GPIO8, and suddenly the flash stopped working. The pin is constantly 0.
We have tested the board and there is now shortcut or something else. Also when we initialize the pin as a normal output and toggle it, everything works as expected.
Is there maybe some pin limitation which pins can/cant be used? Thank you
we have until now successfully used the esp spi flash library on the ESP32S3-WROOM. However, now we have made a hardware change which affected only the CS pin which has moved from GPIO10 to GPIO8, and suddenly the flash stopped working. The pin is constantly 0.
We have tested the board and there is now shortcut or something else. Also when we initialize the pin as a normal output and toggle it, everything works as expected.
Code: Select all
const spi_bus_config_t bus_spi_config = {
.mosi_io_num = CONFIG_SPI_PIN_MOSI, // GPIO11
.miso_io_num = CONFIG_SPI_PIN_MISO, // GPIO13
.sclk_io_num = CONFIG_SPI_PIN_CLK, // GPIO12
.quadhd_io_num = -1,
.quadwp_io_num = -1,
};
const esp_flash_spi_device_config_t device_config = {
.host_id = PICO_SPI_HOST,
.cs_id = 0, // we are not shure if this has to stay 0? tried also with 1 but no change
.cs_io_num = CONFIG_SPI_PIN_CS_FLASH, // before GPIO10, now GPIO8
.io_mode = SPI_FLASH_DIO,
.speed = ESP_FLASH_40MHZ,
};