Error in implicit declaration of function in Arduino as an ESP-IDF component #11587
Unanswered
pshilakari
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
For my project, I have installed ESP-IDF v 5.4.1 and using Arduino as an ESP-IDF component. In my main, the "idf_component.yml" has following entry:
dependencies:
Required IDF version
idf: ">=5.3,<5.5"
espressif/arduino-esp32: ^3.2.1_
During the build process (idf.py build) I am continuously getting below errors, which looks like incompatible versions of ESP-IDF and Arduino component in my build environment. But I don't know how to resolve it. Any help from the community members around this will be really helpful.
ERRORS:
D:/Project/managed_components/espressif__arduino-esp32/cores/esp32/esp32-hal-i2c-slave.c: In function 'i2cSlaveInit':
D:/Project/managed_components/espressif__arduino-esp32/cores/esp32/esp32-hal-i2c-slave.c:339:3: error: implicit declaration of function 'i2c_ll_set_mode'; did you mean 'i2c_ll_set_tout'? [-Wimplicit-function-declaration]
339 | i2c_ll_set_mode(i2c->dev, I2C_BUS_MODE_SLAVE);
| ^~~~~~~~~~~~~~~
| i2c_ll_set_tout
D:/Project/managed_components/espressif__arduino-esp32/cores/esp32/esp32-hal-i2c-slave.c:339:29: error: 'I2C_BUS_MODE_SLAVE' undeclared (first use in this function); did you mean 'I2C_MODE_SLAVE'?
339 | i2c_ll_set_mode(i2c->dev, I2C_BUS_MODE_SLAVE);
| ^~~~~~~~~~~~~~~~~~
| I2C_MODE_SLAVE
D:/Project/managed_components/espressif__arduino-esp32/cores/esp32/esp32-hal-i2c-slave.c:339:29: note: each undeclared identifier is reported only once for each function it appears in
D:/Project/managed_components/espressif__arduino-esp32/cores/esp32/esp32-hal-i2c-slave.c:340:3: error: implicit declaration of function 'i2c_ll_enable_pins_open_drain' [-Wimplicit-function-declaration]
340 | i2c_ll_enable_pins_open_drain(i2c->dev, true);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[1453/1714] Building CXX object esp-idf/espressif__arduino-esp32/...spressif__arduino-esp32.dir/cores/esp32/chip-debug-report.cpp.ob
ninja: build stopped: subcommand failed
Beta Was this translation helpful? Give feedback.
All reactions