MATLAB Answers

fatal error: MKRMotorCarrier.h: No such file or directory"

56 views (last 30 days)
Steven Putt
Steven Putt on 15 Sep 2019
Commented: Steven Putt on 15 Sep 2019
Hi. I'm getting the error below when trying to set up the arduino MKRMotorCarrier following instruction from the Arduino Engineering Kit.
Error from Matlab seen at the bottom of this message.
a snippet reads "C:\Users\StevenPutt\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Arduino_Engineering_Kit_Hardware_Support_19a\matlab\MATLABAddon\+arduinoioaddons\+arduino\src\MKRMotorCarrierBase.h:11:29: fatal error: MKRMotorCarrier.h: No such file or directory".
MKRMotorCarrier.h is not in this directory after installing the Engineering Kit Hardware Support 19a.
A varriety of images also attached to help explain the issue.
The board is plugged in, the motor carrier is switched on.
Matlab MotorCarrier Directory
Matlab MotorCarrier Directory.png
MotorCarrier Library installatation as specified in readme below.
MotorCarrier Library installed and coppied to sketch directory.png
ArduinoLibrary Check with Device manager and setup manager with errors
MotorCarrier library check with device manager and matlab setup error.png
IDE Motorcarrier library setup
IDE MotorCarrier Installed.png
*************************************************************************************
Sep 14, 2019 8:29:09 PM com.mathworks.hwservices.logging
INFO: Loading configuration...
Initializing packages...
Preparing boards...
Verifying...
C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\arduino-builder -dump-prefs -logger=machine -hardware C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages -tools C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\tools-builder -tools C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages -built-in-libraries C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\libraries -libraries C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\sketchbook\libraries -fqbn=arduino:samd:mkr1000 -ide-version=10808 -build-path C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\MW -warnings=null -prefs=build.path=C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\MW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.arduinoOTA-1.2.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.CMSIS-Atmel-1.1.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.openocd-0.9.0-arduino6-static.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.bossac-1.7.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\ArduinoServer.ino
C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\arduino-builder -compile -logger=machine -hardware C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\hardware -hardware C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages -tools C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\tools-builder -tools C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\hardware\tools\avr -tools C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages -built-in-libraries C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\libraries -libraries C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\sketchbook\libraries -fqbn=arduino:samd:mkr1000 -ide-version=10808 -build-path C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\MW -warnings=null -prefs=build.path=C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\MW -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.arduinoOTA-1.2.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arduinoOTA\1.2.0 -prefs=runtime.tools.CMSIS-Atmel.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.CMSIS-Atmel-1.1.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS-Atmel\1.1.0 -prefs=runtime.tools.openocd.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.openocd-0.9.0-arduino6-static.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\openocd\0.9.0-arduino6-static -prefs=runtime.tools.CMSIS.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.CMSIS-4.5.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\CMSIS\4.5.0 -prefs=runtime.tools.bossac.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.bossac-1.7.0.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\bossac\1.7.0 -prefs=runtime.tools.arm-none-eabi-gcc.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -prefs=runtime.tools.arm-none-eabi-gcc-4.8.3-2014q1.path=C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1 -verbose C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\ArduinoServer.ino
Using board 'mkr1000' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\hardware\samd\1.6.20
Using core 'arduino' from platform in folder: C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\packages\arduino\hardware\samd\1.6.20
Detecting libraries used...
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\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=10808 -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\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\tools\\CMSIS-Atmel\\1.1.0/CMSIS/Device/ATMEL/" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\hardware\\samd\\1.6.20\\cores\\arduino" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\hardware\\samd\\1.6.20\\variants\\mkr1000" "C:\\Users\\StevenPutt\\AppData\\Local\\Temp\\ArduinoServer\\MW\\sketch\\ArduinoServer.ino.cpp" -o nul
"C:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\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=10808 -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\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\tools\\CMSIS\\4.5.0/CMSIS/Include/" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\tools\\CMSIS-Atmel\\1.1.0/CMSIS/Device/ATMEL/" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\hardware\\samd\\1.6.20\\cores\\arduino" "-IC:\\ProgramData\\MATLAB\\SupportPackages\\R2019b\\3P.instrset\\arduinoide.instrset\\portable\\packages\\arduino\\hardware\\samd\\1.6.20\\variants\\mkr1000" "C:\\Users\\StevenPutt\\AppData\\Local\\Temp\\ArduinoServer\\MW\\sketch\\IO_addOn.cpp" -o nul
In file included from C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\MW\sketch\addOnLibraries.h:4:0,
from C:\Users\StevenPutt\AppData\Local\Temp\ArduinoServer\MW\sketch\IO_addOn.cpp:12:
C:\Users\StevenPutt\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\Arduino_Engineering_Kit_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

  3 Comments

Joel Howse
Joel Howse on 15 Sep 2019
I am having the exact same problem at the moment... Will let you know if I figure it out..
Steven Putt
Steven Putt on 15 Sep 2019
Thanks. I'll do the same. I'm going through uninstalling all addons reinstalling everything as administrator for the second time now just in case.
Joel Howse
Joel Howse on 15 Sep 2019
I haven't made any progress, but for some reason MATLAB changes my Arduino_Engineering_Kit_Hardware_Support_19a add-on to the Arduino_Engineering_Kit_Hardware_Support_18b add-on??? Weird

Sign in to comment.

Accepted Answer

Joel Howse
Joel Howse on 15 Sep 2019
Figured it out.
-find your MKRMotorCarrier library folder, probably in C:\Users\<username>\Documents\Arduino\libraries
-Copy the folder
-Paste it in C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\portable\sketchbook\libraries
-Unplug and Replug your board, then it should work.

  1 Comment

Sign in to comment.

More Answers (0)

Sign in to answer this question.

Products


Release

R2019b