Using ESP32-C3FN4 / ESP32-C3FN4 VDD_SPI pin as GPIO11

sadteeto
Posts: 2
Joined: Tue Feb 01, 2022 6:29 pm

Using ESP32-C3FN4 / ESP32-C3FN4 VDD_SPI pin as GPIO11

Postby sadteeto » Tue Feb 01, 2022 7:07 pm

I have recently come across an issue where I ran out of GPIO pins on an ESP32-C3FN4, as per the datasheet says, VDD_SPI pin can be used as GPIO11, However I am unsure If it would effect the power supply for the built-in flash, as there is no diagram on how the internal 4Mb of flash is being powered.

My question is:
How is the built-in flash powered on ESP32-C3FN4? Is it powered by VDD_SPI or VDD3P3_CPU?
Would It be safe to use VDD_SPI as GPIO11 on ESP32-C3FN4/ ESP32-C3FN4 and not having power issue when interfacing with built-in flash?

ESP_Sprite
Posts: 9591
Joined: Thu Nov 26, 2015 4:08 am

Re: Using ESP32-C3FN4 / ESP32-C3FN4 VDD_SPI pin as GPIO11

Postby ESP_Sprite » Wed Feb 02, 2022 2:52 am

That is a good question. I'll ask the docs team to look into this and add it to the datasheet. If you can't wait for this, you could test this simply by taking an example program that is moderately complex (more complex than 'hello world') and adding a line that makes GPIO11 a low output at the beginning of app_main. If the program crashes, you can't use that GPIO.

sadteeto
Posts: 2
Joined: Tue Feb 01, 2022 6:29 pm

Re: Using ESP32-C3FN4 / ESP32-C3FN4 VDD_SPI pin as GPIO11

Postby sadteeto » Wed Feb 02, 2022 1:40 pm

Thanks for the reply! I would like to wait for an response from the docs team, as configuring VDD_SPI into GPIO11 involves changing an efuse bit, and once it's changed it cannot be reverted.

ESP_Sprite
Posts: 9591
Joined: Thu Nov 26, 2015 4:08 am

Re: Using ESP32-C3FN4 / ESP32-C3FN4 VDD_SPI pin as GPIO11

Postby ESP_Sprite » Fri Feb 04, 2022 5:17 am

Good point; cheap as they are, throwing away a C3 over this is a shame. Note that as it's the Chinese new year week, you probably won't get an answer for one or two weeks, though.

ESP_wangning
Posts: 15
Joined: Wed Jan 06, 2021 8:21 am

Re: Using ESP32-C3FN4 / ESP32-C3FN4 VDD_SPI pin as GPIO11

Postby ESP_wangning » Wed Apr 06, 2022 10:11 am

Hi,

Really sorry for the late reply. By default VDD_SPI is the power supply pin for in-package flash or external flash. It can only be used as
GPIO11 when the chip is connected to an external flash, and this flash is powered by an external power supply. So in your case, please do not use VDD_SPI as GPIO11.

I will add this explanation to ESP32-C3 chip datasheet. Sorry for the inconvenience brought!

Who is online

Users browsing this forum: No registered users and 74 guests