Library File Error for ESP32-C3 board in Eclipse

Vamshi007
Posts: 4
Joined: Mon Apr 18, 2022 1:49 pm

Library File Error for ESP32-C3 board in Eclipse

Postby Vamshi007 » Mon Apr 18, 2022 2:25 pm

Hi Team,

We are using ESP32-C3 and need to read BMI270 IMU sensor data using Eclipse IDE (Version: 2021-09 (4.21.0)
Build id: 20210910-1417). We added required external library files of BMI270 sensor to the project but after building project we are observing some errors like "Undefined Reference to Function" for the added external library files. we need support to resolve those errors.
Please go through the attached error image and the toolchain added image to the project. Any help would be very thankful.
Attachments
CMake_Toolchainfiles.PNG
CMake_Toolchainfiles.PNG (36.15 KiB) Viewed 2422 times
Eclipse_Errors.PNG
Eclipse_Errors.PNG (122.03 KiB) Viewed 2422 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Library File Error for ESP32-C3 board in Eclipse

Postby ESP_Sprite » Tue Apr 19, 2022 3:23 am

How did you add these files? Did you reference them in a CMakeLists.txt?

Vamshi007
Posts: 4
Joined: Mon Apr 18, 2022 1:49 pm

Re: Library File Error for ESP32-C3 board in Eclipse

Postby Vamshi007 » Tue Apr 19, 2022 5:10 am

Thank you for the reply,

I have referenced those files in Environment with the path "D:\Vamshi007\EB\C1\BMI270\BMI270-Sensor-API-master". Please go through the attached reference path image and CMakeLists.txt file content image, CMake -> Toolchains image.
Am I missing anything ? Help me to resolve errors. Any help would be very thankful.

Reference_Files.PNG
Reference_Files.PNG (34.99 KiB) Viewed 2405 times
CMakeLists.PNG
CMakeLists.PNG (12.87 KiB) Viewed 2405 times
CMake_Toolchainfiles.PNG
CMake_Toolchainfiles.PNG (36.15 KiB) Viewed 2405 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Library File Error for ESP32-C3 board in Eclipse

Postby ESP_Sprite » Tue Apr 19, 2022 5:40 am

So where do the C files for the BMI270 library live?

Vamshi007
Posts: 4
Joined: Mon Apr 18, 2022 1:49 pm

Re: Library File Error for ESP32-C3 board in Eclipse

Postby Vamshi007 » Tue Apr 19, 2022 12:08 pm

Hi,

All files of BMI270 are located at "D:\Vamshi007\EB\C1\BMI270\BMI270-Sensor-API-master" which I was added to the Environment in the previous post. Please go through the attached image which contains all files in the above mentioned path.
Is this the file location you are asking for ? Please let me know for further info.
Any help would be very thankful.
Attachments
LibFiles_Path.PNG
LibFiles_Path.PNG (51.72 KiB) Viewed 2351 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: Library File Error for ESP32-C3 board in Eclipse

Postby ESP_Sprite » Wed Apr 20, 2022 12:52 am

You need to either A. move that directory to your 'main' component and change the CMakeLists.txt in that dir to include the source files in that directory, or B. convert that dir into a component on its own and make sure your project includes it. Here are the details on why & how.

Who is online

Users browsing this forum: No registered users and 80 guests