Error Compiling Code using Board Provided by Teknic [SOLVED]

Hello All,

I was provided a zip file to download for the Arduino compatibility with some motors from Teknic (Integrated motor and control company). I installed this in the spot recommended by the installer. I have been messing with this for a couple hours and I am no closer to getting this code to compile.

I have tried uninstalling and reinstalling the Arduino IDE and the Arduino wrapper Zip file provided by the company. I have also called the company that provides the zip file. They said this is an issue on the Arduino side of things. This is for a senior design project in University so I would love some help with this.

Thanks in advance!!

Link and directions to the zip file:

Click "ClearCore"
Click "Software"
Click "ClearCore_Arduino_Wrapper_Installer.zip"

Below are the error messages that I copied from the IDE when trying to compile the example code titled "MovePositionAbsolute". I followed all directions in the example code beforehand.


Arduino: 1.8.19 (Windows 10), Board: "Teknic ClearCore"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\jacel\OneDrive - University of Tennessee\Documents\Arduino\libraries -fqbn=ClearCore:sam:clearcore -vid-pid=2890_0022 -ide-version=10819 -build-path C:\Users\jacel\AppData\Local\Temp\ArduinoServer\MW -warnings=none -build-cache C:\Users\jacel\AppData\Local\Temp\arduino_cache_531538 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino1 -prefs=runtime.tools.bossac-1.9.1-arduino1.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino1 -verbose C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\libraries\ClearPathModeExamples\ClearPath-SD Series\MovePositionAbsolute\MovePositionAbsolute.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\jacel\OneDrive - University of Tennessee\Documents\Arduino\libraries -fqbn=ClearCore:sam:clearcore -vid-pid=2890_0022 -ide-version=10819 -build-path C:\Users\jacel\AppData\Local\Temp\ArduinoServer\MW -warnings=none -build-cache C:\Users\jacel\AppData\Local\Temp\arduino_cache_531538 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.arm-none-eabi-gcc-7-2017q4.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino1 -prefs=runtime.tools.bossac-1.9.1-arduino1.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.9.1-arduino1 -verbose C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\libraries\ClearPathModeExamples\ClearPath-SD Series\MovePositionAbsolute\MovePositionAbsolute.ino

Using board 'clearcore' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2

Using core 'arduino' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2

Detecting libraries used...

"C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4/bin/arm-none-eabi-g++" -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -c -g -O3 -w -std=gnu++11 -ffunction-sections -fdata-sections -fno-threadsafe-statics -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -w -x c++ -E -CC -DF_CPU=120000000L -D__FPU_PRESENT=1 -DARDUINO=10819 -DARDUINO_ARM_ClearCore -DARDUINO_ARCH_SAM -D__ARM_FEATURE_DSP=1 -DCPPUTEST_USE_MEM_LEAK_DETECTION=0 -DUSB_VID=0x2890 -DUSB_PID=0x0022 "-DUSB_MANUFACTURER="Teknic, Inc."" "-DUSB_PRODUCT="Teknic ClearCore"" -lc -DDEBUG -DUSBCON -DUSB_CONFIG_POWER=0 -D__CLEARCORE__ -D__SAME53N19A__ -DARM_MATH_CM4 "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/api" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS\4.5.0/CMSIS/Include/" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\variants\clearcore/Third Party/SAME53/CMSIS/Device/Include" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2/Teknic/libClearCore/inc" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2/Teknic/LwIP/LwIP/src/include" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2/Teknic/LwIP/LwIP/port/include" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\variants\clearcore" "C:\Users\jacel\AppData\Local\Temp\ArduinoServer\MW\sketch\MovePositionAbsolute.ino.cpp" -o nul

Alternatives for bits/c++config.h: [ ]

ResolveLibrary(bits/c++config.h)

-> candidates: []

In file included from c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\stdlib.h:36:0,

             from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/api/ArduinoString.h:26,

             from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/api/Print.h:24,

             from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/api/Stream.h:24,

             from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/api/Client.h:22,

             from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/api/ArduinoAPI.h:29,

             from C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\ClearCore\hardware\sam\1.1.2\cores\arduino/Arduino.h:24,

             from C:\Users\jacel\AppData\Local\Temp\ArduinoServer\MW\sketch\MovePositionAbsolute.ino.cpp:1:

c:\programdata\matlab\supportpackages\r2019a\3p.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\7-2017q4\arm-none-eabi\include\c++\7.2.1\cstdlib:41:10: fatal error: bits/c++config.h: No such file or directory

#include <bits/c++config.h>

      ^~~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

Error compiling for board Teknic ClearCore.

EDIT: I have found a solution that fixed my problem perfectly. The link to this is below.

In this forum, one can find an answer posted by Zaid Haymoor

I followed those directions exactly and this solved my issue.

Unfortunately Teknic requires registration to download stuff and most people will not be prepared to do that.

Have you googled a bit? arduino bits/c++config.h not found - Google Search.

Missing bits/c++config.h file - #9 by grenken sounds promissing.

1 Like

Actually I’m working on an edit to the post right now! I found a solution on a separate website and I will be posting the solution on my main post!

Thank you so much for looking into it!

Great. You can mark your last post with the solution button so others know that it is solved (I don't think you can do that on your opening post).

I had a quick glance over the post that your provided and It looks like it uses the same approach as the link I provided, possibly with somemore details.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.