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

bytemaniak
Posts: 1
Joined: Fri Jan 22, 2021 10:49 pm

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

Postby bytemaniak » Fri Jan 22, 2021 10:54 pm

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.

enwilab
Posts: 1
Joined: Sun Feb 14, 2021 12:01 pm

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

Postby enwilab » Sun Feb 14, 2021 12:06 pm

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.

Who is online

Users browsing this forum: Baidu [Spider] and 50 guests