Page 2 of 2

Re: Using arduino-esp32 as a component: 'SOC_GPIO_PIN_COUNT' was not declared in this scope

Posted: Fri Jan 22, 2021 10:54 pm
by bytemaniak
I have the same issue here. Just to add my two cents:

I manually edited all references to SOC_GPIO_PIN_COUNT to GPIO_PIN_COUNT. If I then try to compile the project, I get a different error:

[Codebox]'MHZ' was not declared in this scope[/Codebox]

Both SOC_GPIO_PIN_COUNT and MHZ are defined under [Codebox]components/arduino/tools/sdk/esp32/include/soc/[/Codebox], so this looks to me like an issue of files in this folder not being properly included when the build happens.

Re: Using arduino-esp32 as a component: 'SOC_GPIO_PIN_COUNT' was not declared in this scope

Posted: Sun Feb 14, 2021 12:06 pm
by enwilab
I fixed this issue by running [Codebox]idf.py menuconfig[/Codebox] and enabling Component config -> Driver configurations -> RTCIO configuration -> Support array `rtc_gpio_desc` for ESP32.