ESP

genericusername
Posts: 2
Joined: Tue Dec 06, 2022 6:34 am

ESP

Postby genericusername » Tue Dec 06, 2022 7:00 am

Hello everybody!

I am currently facing an issue with ESP32 GPIOs.

I have made a custom desigin using ESP32-C3FH4.
In this design I want to use SPID/GPIO16 and SPIQ/GPIO17 as a normal GPIO in Output mode.

Unfortunately there seems to be an issue connecting these pins, as I get a lot of
"invalid header: 0x00000000"
-messages on serial output.
I have a devkit where I connect SPIQ to GND and get same behaviour.

Having both of these pins not connected to something, the ESP32-C3 seems to work as expected.

I already tried to reconfigure GPIOs with
gpioconfig()
function, but that did not work out.

So what do I have to do, to use those pins as simple GPIOs and avoid the "invalid header"-message?

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

Re: ESP

Postby ESP_Sprite » Tue Dec 06, 2022 9:50 am

Check the datasheet, specifically 'pin definition' GPIO16/17 are SPID/SPIQ, and the section under the table clarifies that these pins are connected to the internal flash and as such shouldn't be used for GPIO. In other words: I'm afraid you'll need to rework your design to steer clear of the pins occupied by flash.

genericusername
Posts: 2
Joined: Tue Dec 06, 2022 6:34 am

Re: ESP

Postby genericusername » Wed Dec 07, 2022 7:52 am

Thank you very much for pointing that out!

Who is online

Users browsing this forum: zelenecul and 138 guests