M5Stack-Camera icon indicating copy to clipboard operation
M5Stack-Camera copied to clipboard

error: 'GPIO_PIN_COUNT' <> 'SOC_GPIO_PIN_COUNT'

Open ChristophNoack opened this issue 5 years ago • 12 comments

Hi,

I try to flash my new M5Stack ESP32 cam.

While making my project I get the following error: error: 'GPIO_PIN_COUNT' undeclared here (not in a function); did you mean 'SOC_GPIO_PIN_COUNT'? I checked the rtc_gpio_desc point in the menuconfig.

Could you tell me what I am doing wrong?

ChristophNoack avatar Nov 07 '20 21:11 ChristophNoack

./components/esp32-camera/driver/twi.c: In function 'pinMode': ../components/esp32-camera/driver/twi.c:61:24: error: 'rtc_gpio_desc' undeclared (first use in this function); did you mean 'rtc_io_desc'? uint32_t rtc_reg = rtc_gpio_desc[pin].reg; ^~~~~~~~~~~~~ rtc_io_desc ../components/esp32-camera/driver/twi.c:61:24: note: each undeclared identifier is reported only once for each function it appears in [1110/1179] Building C object esp-idf/esp32-camera/CMakeFiles/__idf_esp32-camera.dir/sensors/ov5640.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1

kenken64 avatar Nov 07 '20 23:11 kenken64

Excuse me, I do not understand the answer. When I uncheck the rtc_gpio_desc point then I get a similar error like 'rtc_gpio_desc' undeclared (first use in this function); did you mean 'rtc_io_desc'?

But this doesn't help me with my problem...

ChristophNoack avatar Nov 07 '20 23:11 ChristophNoack

chris,

i am facing the same issue thats why i post here

kenken64 avatar Nov 08 '20 01:11 kenken64

which idf sdk you are using ? i am using idf 4.1 and python 2.7

kenken64 avatar Nov 08 '20 01:11 kenken64

hey let me try this as well , i think is related to this issue

https://github.com/m5stack/M5Stack-Camera/issues/29

kenken64 avatar Nov 08 '20 01:11 kenken64

Ah ok. :) I use idf4.3 and python 2.7

ChristophNoack avatar Nov 08 '20 09:11 ChristophNoack

Could plz so help us?

ChristophNoack avatar Nov 08 '20 15:11 ChristophNoack

follow the idf menuconfig for #29

kenken64 avatar Nov 09 '20 10:11 kenken64

I do but it doesn't work... :-(

ChristophNoack avatar Nov 09 '20 14:11 ChristophNoack

Please post the all of the lines from the build log showing the error. There should be several lines before & possibly after: error: 'GPIO_PIN_COUNT' undeclared here (not in a function); did you mean 'SOC_GPIO_PIN_COUNT'? that provide relevant details.

mws-rmain avatar Nov 10 '20 20:11 mws-rmain

HI, Due to the incompatible update of ESP-IDF, the current code only supports idf4.0 version now I am also looking for a code that can be version compatible with multiple IDF versions

EeeeBin avatar Nov 11 '20 01:11 EeeeBin

That's it. I had to chose ESP-IDF4.0! Thanks!

ChristophNoack avatar Nov 23 '20 20:11 ChristophNoack