Pin issues with ESP32-S3 and IDF 5.1

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Pin issues with ESP32-S3 and IDF 5.1

Postby orbitcoms » Wed Oct 04, 2023 3:16 am

Hi,
I am migrating from ESP32 to ESP32-S3 (ESP32-S3-Wroom-1 module) and having issues with GPIO. (Using Espressif extension in VScode)
Old code running on idf 4.4 works fine on the S3 but when I run the same code with IDF 5.1 (with select pad commands removed in GPIO config) some of the pins appear not to work as output any more. In this case IO39 is not operating as Output with IDF 5.1 but is ok using 4.4.

On a second point. The version of module I am using has PSRAM and I see I lose access to IO35-IO37. If I change to a non-PSRAM version will I be able to use ALL pins as Digital IN or OUT except the strapping pins? (And the fact I am not using JTAG or D+,D-) because I am using ESP-PROG via TXD and RXD uart pins?

I find the data sheet a bit confusing because it is showing a wjole lot of pins as SPIO/1 for serial flash and the JTAG pins seem to look like they are enabled by default - I assume when you set up VSCODE for Serial uart flash programmin that these become general GPIO?

orbitcoms
Posts: 149
Joined: Fri Aug 03, 2018 10:08 pm
Location: Sydney, Australia

Re: Pin issues with ESP32-S3 and IDF 5.1

Postby orbitcoms » Mon Oct 09, 2023 9:51 pm

Solved the issue myself after fiddling around.
Resetting the gpio before setting direction allowed use of IO19, IO20 and IO39-IO42.

Who is online

Users browsing this forum: Baidu [Spider], rsimpsonbusa and 66 guests