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.
Library File Error for ESP32-C3 board in Eclipse
Library File Error for ESP32-C3 board in Eclipse
- Attachments
-
- CMake_Toolchainfiles.PNG (36.15 KiB) Viewed 2432 times
-
- Eclipse_Errors.PNG (122.03 KiB) Viewed 2432 times
-
- Posts: 9746
- Joined: Thu Nov 26, 2015 4:08 am
Re: Library File Error for ESP32-C3 board in Eclipse
How did you add these files? Did you reference them in a CMakeLists.txt?
Re: Library File Error for ESP32-C3 board in Eclipse
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.
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.
-
- Posts: 9746
- Joined: Thu Nov 26, 2015 4:08 am
Re: Library File Error for ESP32-C3 board in Eclipse
So where do the C files for the BMI270 library live?
Re: Library File Error for ESP32-C3 board in Eclipse
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.
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 (51.72 KiB) Viewed 2361 times
-
- Posts: 9746
- Joined: Thu Nov 26, 2015 4:08 am
Re: Library File Error for ESP32-C3 board in Eclipse
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: Baidu [Spider], Bing [Bot] and 92 guests