Arduino MKR Motor Carrier Not Found
4 views (last 30 days)
Show older comments
I'm trying to use the Arduino MKR 1000 with Motor Carrier and when I run
arduinosetup
and follow the prompts to set up my board, I get the following error log
Jun 03, 2023 12:02:42 PM com.mathworks.hwservices.logging
INFO: Loading configuration...
Initializing packages...
Preparing boards...
Invalid library found in C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1: C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1
Invalid library found in C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1: C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1
Invalid library found in C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1: C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1
Invalid library found in C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1: C:\Users\maste\Documents\Arduino\libraries\MKRMotorCarrier-1.0.1
Verifying...
C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\arduino-builder -dump-prefs -logger=machine -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\tools-builder -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\libraries -libraries C:\Users\maste\Documents\Arduino\libraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW -warnings=null -prefs=build.path=C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.7.0 -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.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose C:\Users\maste\AppData\Local\Temp\ArduinoServer\ArduinoServer.ino
C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\arduino-builder -compile -logger=machine -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\tools-builder -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages -built-in-libraries C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\libraries -libraries C:\Users\maste\Documents\Arduino\libraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW -warnings=null -prefs=build.path=C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\bossac\1.7.0 -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.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose C:\Users\maste\AppData\Local\Temp\ArduinoServer\ArduinoServer.ino
Using board 'mkr1000' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20
Using core 'arduino' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20
Detecting libraries used...
"C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -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=48000000L -DARDUINO=10801 -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKR1000"' "-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\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20\variants\mkr1000" "C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW\sketch\ArduinoServer.ino.cpp" -o "nul"
"C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -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=48000000L -DARDUINO=10801 -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKR1000"' "-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\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20\variants\mkr1000" "C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW\sketch\IO_addOn.cpp" -o "nul"
"C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1/bin/arm-none-eabi-g++" -mcpu=cortex-m0plus -mthumb -c -g -Os -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=48000000L -DARDUINO=10801 -DARDUINO_SAMD_MKR1000 -DARDUINO_ARCH_SAMD -DUSE_ARDUINO_MKR_PIN_LAYOUT -D__SAMD21G18A__ -DUSB_VID=0x2341 -DUSB_PID=0x804e -DUSBCON '-DUSB_MANUFACTURER="Arduino LLC"' '-DUSB_PRODUCT="Arduino MKR1000"' "-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\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20\cores\arduino" "-IC:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\hardware\samd\1.6.20\variants\mkr1000" "C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW\sketch\IO_addOn.cpp" -o "C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW\preproc\ctags_target_for_gcc_minus_e.cpp"
In file included from C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW\sketch\addOnLibraries.h:4:0,
from C:\Users\maste\AppData\Local\Temp\ArduinoServer\MW\sketch\IO_addOn.cpp:12:
C:\Users\maste\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\AEK-Rev-1-Hardware-Support-19a+\matlab\MATLABAddon\+arduinoioaddons\+arduino\src\MKRMotorCarrierBase.h:11:29: fatal error: MKRMotorCarrier.h: No such file or directory
#include "MKRMotorCarrier.h"
^
compilation terminated.
exit status 1
I have already ran
edit ArduinoKitHardwareSupportReadMe.txt
and followed the directions. I can confirm that the correct Motor Carrier library is in place.
What could I need to do? Do I need to move MKRMotorCarrier.h somewhere?
1 Comment
Bhanu Prakash
on 19 Jul 2024
Hi Christian,
The issue seems to be similar to the one mentioned in this MATLAB answer:
Answers (0)
See Also
Categories
Find more on I2C Devices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!