Arduino MKR Motor Carrier Not Found
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:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Verifying…
C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1arduino-builder -dump-prefs -logger=machine -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardware -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1tools-builder -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardwaretoolsavr -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -built-in-libraries C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1libraries -libraries C:UsersmasteDocumentsArduinolibraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:UsersmasteAppDataLocalTempArduinoServerMW -warnings=null -prefs=build.path=C:UsersmasteAppDataLocalTempArduinoServerMW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsopenocd.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarduinoOTA1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0 -prefs=runtime.tools.bossac.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsbossac1.7.0 -prefs=runtime.tools.CMSIS.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.8.3-2014q1 -verbose C:UsersmasteAppDataLocalTempArduinoServerArduinoServer.ino
C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1arduino-builder -compile -logger=machine -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardware -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1tools-builder -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardwaretoolsavr -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -built-in-libraries C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1libraries -libraries C:UsersmasteDocumentsArduinolibraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:UsersmasteAppDataLocalTempArduinoServerMW -warnings=null -prefs=build.path=C:UsersmasteAppDataLocalTempArduinoServerMW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsopenocd.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarduinoOTA1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0 -prefs=runtime.tools.bossac.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsbossac1.7.0 -prefs=runtime.tools.CMSIS.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.8.3-2014q1 -verbose C:UsersmasteAppDataLocalTempArduinoServerArduinoServer.ino
Using board ‘mkr1000’ from platform in folder: C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20
Using core ‘arduino’ from platform in folder: C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20
Detecting libraries used…
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchArduinoServer.ino.cpp" -o "nul"
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp" -o "nul"
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp" -o "C:UsersmasteAppDataLocalTempArduinoServerMWpreprocctags_target_for_gcc_minus_e.cpp"
In file included from C:UsersmasteAppDataLocalTempArduinoServerMWsketchaddOnLibraries.h:4:0,
from C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp:12:
C:UsersmasteAppDataRoamingMathWorksMATLAB Add-OnsToolboxesAEK-Rev-1-Hardware-Support-19a+matlabMATLABAddon+arduinoioaddons+arduinosrcMKRMotorCarrierBase.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?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:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Verifying…
C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1arduino-builder -dump-prefs -logger=machine -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardware -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1tools-builder -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardwaretoolsavr -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -built-in-libraries C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1libraries -libraries C:UsersmasteDocumentsArduinolibraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:UsersmasteAppDataLocalTempArduinoServerMW -warnings=null -prefs=build.path=C:UsersmasteAppDataLocalTempArduinoServerMW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsopenocd.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarduinoOTA1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0 -prefs=runtime.tools.bossac.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsbossac1.7.0 -prefs=runtime.tools.CMSIS.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.8.3-2014q1 -verbose C:UsersmasteAppDataLocalTempArduinoServerArduinoServer.ino
C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1arduino-builder -compile -logger=machine -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardware -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1tools-builder -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardwaretoolsavr -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -built-in-libraries C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1libraries -libraries C:UsersmasteDocumentsArduinolibraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:UsersmasteAppDataLocalTempArduinoServerMW -warnings=null -prefs=build.path=C:UsersmasteAppDataLocalTempArduinoServerMW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsopenocd.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarduinoOTA1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0 -prefs=runtime.tools.bossac.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsbossac1.7.0 -prefs=runtime.tools.CMSIS.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.8.3-2014q1 -verbose C:UsersmasteAppDataLocalTempArduinoServerArduinoServer.ino
Using board ‘mkr1000’ from platform in folder: C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20
Using core ‘arduino’ from platform in folder: C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20
Detecting libraries used…
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchArduinoServer.ino.cpp" -o "nul"
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp" -o "nul"
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp" -o "C:UsersmasteAppDataLocalTempArduinoServerMWpreprocctags_target_for_gcc_minus_e.cpp"
In file included from C:UsersmasteAppDataLocalTempArduinoServerMWsketchaddOnLibraries.h:4:0,
from C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp:12:
C:UsersmasteAppDataRoamingMathWorksMATLAB Add-OnsToolboxesAEK-Rev-1-Hardware-Support-19a+matlabMATLABAddon+arduinoioaddons+arduinosrcMKRMotorCarrierBase.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? 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:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Invalid library found in C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1: C:UsersmasteDocumentsArduinolibrariesMKRMotorCarrier-1.0.1
Verifying…
C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1arduino-builder -dump-prefs -logger=machine -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardware -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1tools-builder -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardwaretoolsavr -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -built-in-libraries C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1libraries -libraries C:UsersmasteDocumentsArduinolibraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:UsersmasteAppDataLocalTempArduinoServerMW -warnings=null -prefs=build.path=C:UsersmasteAppDataLocalTempArduinoServerMW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsopenocd.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarduinoOTA1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0 -prefs=runtime.tools.bossac.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsbossac1.7.0 -prefs=runtime.tools.CMSIS.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.8.3-2014q1 -verbose C:UsersmasteAppDataLocalTempArduinoServerArduinoServer.ino
C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1arduino-builder -compile -logger=machine -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardware -hardware C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1tools-builder -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1hardwaretoolsavr -tools C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackages -built-in-libraries C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetarduino-1.8.1libraries -libraries C:UsersmasteDocumentsArduinolibraries -fqbn=arduino:samd:mkr1000 -vid-pid=0X2341_0X804E -ide-version=10801 -build-path C:UsersmasteAppDataLocalTempArduinoServerMW -warnings=null -prefs=build.path=C:UsersmasteAppDataLocalTempArduinoServerMW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.openocd.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsopenocd.9.0-arduino6-static -prefs=runtime.tools.arduinoOTA.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarduinoOTA1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0 -prefs=runtime.tools.bossac.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsbossac1.7.0 -prefs=runtime.tools.CMSIS.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.8.3-2014q1 -verbose C:UsersmasteAppDataLocalTempArduinoServerArduinoServer.ino
Using board ‘mkr1000’ from platform in folder: C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20
Using core ‘arduino’ from platform in folder: C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20
Detecting libraries used…
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchArduinoServer.ino.cpp" -o "nul"
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp" -o "nul"
"C:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsarm-none-eabi-gcc4.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:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS4.5.0/CMSIS/Include/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinotoolsCMSIS-Atmel1.1.0/CMSIS/Device/ATMEL/" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20coresarduino" "-IC:ProgramDataMATLABSupportPackagesR2019a3P.instrsetarduinoide.instrsetidepkgspackagesarduinohardwaresamd1.6.20variantsmkr1000" "C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp" -o "C:UsersmasteAppDataLocalTempArduinoServerMWpreprocctags_target_for_gcc_minus_e.cpp"
In file included from C:UsersmasteAppDataLocalTempArduinoServerMWsketchaddOnLibraries.h:4:0,
from C:UsersmasteAppDataLocalTempArduinoServerMWsketchIO_addOn.cpp:12:
C:UsersmasteAppDataRoamingMathWorksMATLAB Add-OnsToolboxesAEK-Rev-1-Hardware-Support-19a+matlabMATLABAddon+arduinoioaddons+arduinosrcMKRMotorCarrierBase.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? arduino MATLAB Answers — New Questions