Page 1 of 1

Configure PSRAM CE Pin

Posted: Wed Apr 07, 2021 4:00 pm
by gamgee
Hello,
I want to use PIN 29 (SPICS1/GPIO26) as a digital input pin. The chip I'm using is a ESP32-S2 (WROOM Module).

According to the datasheet this pin is used as CE# for the internal PSRAM on the ESP32-S2FN4R2 variant and it is therefor not recommended for other uses. However, we are using the ESP32-S2FH4 which has no PSRAM.

The problem is that the pin is configured as a output by default and outputs 3.3 V after reset (I assume this is to disable the PSRAM). I can reconfigure the pin as an input in my app but it takes around 350ms for the bootloader to start and run my program.

Is there a way to change the configuration before my programm runs?