Page 1 of 1
Library File Error for ESP32-C3 board in Eclipse
Posted: Mon Apr 18, 2022 2:25 pm
by Vamshi007
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.
Re: Library File Error for ESP32-C3 board in Eclipse
Posted: Tue Apr 19, 2022 3:23 am
by ESP_Sprite
How did you add these files? Did you reference them in a CMakeLists.txt?
Re: Library File Error for ESP32-C3 board in Eclipse
Posted: Tue Apr 19, 2022 5:10 am
by Vamshi007
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 (34.99 KiB) Viewed 2404 times
- CMakeLists.PNG (12.87 KiB) Viewed 2404 times
- CMake_Toolchainfiles.PNG (36.15 KiB) Viewed 2404 times
Re: Library File Error for ESP32-C3 board in Eclipse
Posted: Tue Apr 19, 2022 5:40 am
by ESP_Sprite
So where do the C files for the BMI270 library live?
Re: Library File Error for ESP32-C3 board in Eclipse
Posted: Tue Apr 19, 2022 12:08 pm
by Vamshi007
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.
Re: Library File Error for ESP32-C3 board in Eclipse
Posted: Wed Apr 20, 2022 12:52 am
by ESP_Sprite
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.