|
Post by travisb46 on Nov 5, 2021 1:17:30 GMT
Hello, I am using the ShieldBuddy TC275 for a project measuring orientation with the Adafruit BNO055 absolute orientation sensor. When I try to compile the code it gives me an error. The code and error message are attached below. Orientation_Sensor.ino (2.51 KB) Error Message.docx (12.62 KB)
|
|
|
Post by travisb46 on Nov 5, 2021 12:37:34 GMT
It is also worth noting that this same issue occurred with the Adafruit BMP280 altitude sensor and when I tried compiling the codes for an Arduino Mega it worked. It seems to only be a problem when the sensor-specific libraries are included (BMP280.h and BNO055.h)
|
|
|
Post by Admin on Nov 5, 2021 13:25:29 GMT
We will check this!
|
|
|
Post by travisb46 on Nov 5, 2021 15:00:07 GMT
Thank you!
|
|
|
Post by Admin on Nov 29, 2021 14:54:16 GMT
This problem is caused by the std=c++11 missing from the C++ compiler command line. It can be fixed by copying the attached variant.h to: C:\Program Files (x86)\Arduino\hardware\aurduino\aurix\variants\tc275 and C:\Program Files (x86)\Arduino\hardware\aurduino_Dx\aurix\variants\tc275 The platform.txt needs editing. This file is in: C:\Program Files (x86)\Arduino\hardware\aurduino\aurix and C:\Program Files (x86)\Arduino\hardware\aurduino_Dx\aurix Add "-std=c++11" to the C++ compiler command line: compiler.cpp.flags= -c -fno-common -O2 -g3 -W -Wextra -Wdiv-by-zero -Warray-bounds ...... Edit to: compiler.cpp.flags= -c -std=c++11 -fno-common -O2 -g3 -W -Wextra -Wdiv-by-zero -Warray-bounds ...... Variant.h (25.47 KB) We will include this fix in the next release!
|
|
|
Post by travisb46 on Dec 1, 2021 3:16:14 GMT
I downloaded the Variant.h file and tried to edit platform.txt but I got an error saying I do not have permission to open the file and to see the owner of the file or an admin to obtain permission.
|
|
|
Post by Admin on Dec 1, 2021 9:22:16 GMT
Try copying these directly! Copy platform.txt (11.46 KB) to: C:\Program Files (x86)\Arduino\hardware\aurduino\aurix Copy platform_Dx.txt (11.46 KB) to a temporary directory and rename to "platform.txt". Copy "platform.txt" to: C:\Program Files (x86)\Arduino\hardware\aurduino_Dx\aurix
|
|
|
Post by travisb46 on Dec 1, 2021 19:38:03 GMT
Thank you very much, I will see if it works when I get home
|
|
|
Post by Admin on Dec 7, 2021 14:14:38 GMT
The latest version v1.92 (7th of December 2021) of the ShieldBuddy add-in fixes this problem.
|
|