Implicit Function Declaration #9289
-
Dear community members, I am using arduino as a component in VS Code, I am having issues in ESP32 Core header files. it is saying implicit declaration for some of the i2c functions: D:/esp32/Test-Helloworld/hello_world/components/cores/esp32/esp32-hal-i2c-slave.c:517:5: error: implicit declaration of function 'i2c_ll_cal_bus_clk' [-Werror=implicit-function-declaration] I tried multiple solutions, but nothing worked for me. Can anyone help me solve this error? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@M-Rizwan-Anwar - Arduino as Component requests that IDF version matches the correct Arduino Core version. |
Beta Was this translation helpful? Give feedback.
-
It looks like the function names have changed: |
Beta Was this translation helpful? Give feedback.
-
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 versionidf: ">=5.3,<5.5" 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': |
Beta Was this translation helpful? Give feedback.
There is no Arduino Core that uses IDF 5.2. Please change the IDF version using
git checkout <TAG>
in order to use the right IDF version.The right version of IDF can be found in each Arduino Core version Release Notes.
Example: Arduino Core 2.0.14 uses IDF 4.4.6 as written in https://github.com/espressif/arduino-esp32/releases/tag/2.0.14