Reassign SPI CS1 Pin?
Posted: Tue May 25, 2021 2:26 am
Hi - We made the mistake in our PCB design of using GPIO-26 on an ESP32-S2-Wrover-1 module to drive a motor controller input and only realized too late that GPIO-26 is a reserved pin on the ESP32-S2.
The ESP32-S2 datasheet (p. 11)
https://www.espressif.com/sites/default ... eet_en.pdf
clearly says that GPIO-26 is reserved for SPI CS1 and not to use GPIO-26: "By default, IO26 is connected to the CS pin of the PSRAM and cannot be used for other functions."
Sure enough, every time we try to set GPIO-26 to HIGH to enable the motor driver, the ESP32 stops executing and crashes.
Is there a way to reassign the SPICS1 pin to some other pin so we can use GPIO26 as currently wired?
I took a look at the SPI Flash reference
https://docs.espressif.com/projects/esp ... e_config_t
but it's unclear whether this can be used for SPI1 bus or not.
Welcome any guidance/help here. Thanks! Dan.
The ESP32-S2 datasheet (p. 11)
https://www.espressif.com/sites/default ... eet_en.pdf
clearly says that GPIO-26 is reserved for SPI CS1 and not to use GPIO-26: "By default, IO26 is connected to the CS pin of the PSRAM and cannot be used for other functions."
Sure enough, every time we try to set GPIO-26 to HIGH to enable the motor driver, the ESP32 stops executing and crashes.
Is there a way to reassign the SPICS1 pin to some other pin so we can use GPIO26 as currently wired?
I took a look at the SPI Flash reference
https://docs.espressif.com/projects/esp ... e_config_t
but it's unclear whether this can be used for SPI1 bus or not.
Welcome any guidance/help here. Thanks! Dan.