MATLAB: Unable to program the Arduino Engineering Kit board when including the MKRMotorCarrier library

Target Support Package

I am trying to upload the Arduino Server program (>>arduinosetup) to the MKR1000 board from the Arduino Engineering Kit, in doing this I am also trying to include the MKRMotorCarrier library.
I am using MacOS Catalina 10.15.3 and MATLAB R2019b. I have also installed all the required support packages:
1) MATLAB Support Package for Arduino Hardware 19.2.2
2) Simulink Support Package for Arduino Hardware 19.2.3
3) MATLAB Support Package for USB Webcams 19.2.2
4) Arduino_Engineering_Kit_Rev_1_Hardware_Support_19a+
I have also followed the additional steps mentioned in the "Arduino_Engineering_Kit_Rev_1_Hardware_Support_19a+" file exchange page:
I am not able to program the Arduino board when including the MKRMotorCarrier library and encounter the error message as follow:
In file included from /private/var/folders/5p/dp01r7jn79g1crqrqgy64msr0000gn/T/ArduinoServer/MW/sketch/IO_addOn.cpp:12:0:
addOnLibraries.h:4:195: error: /Users/someusername/Documents/Arduino/Matlab_Add_ons/Collections/Arduino_Engineering�_Kit_Rev_1_Hardware_Suppo�rt_19a+/matlab/MATLABAddon/+arduinoioaddons/+arduino/src/MKRMotorCarrierBase.h: No such file or directory
_ #include "/Users/someusername/Documents/Arduino/Matlab_Add_ons/Collections/Arduino_Engineering�_Kit_Rev_1_Hardware_Suppo�rt_19a+/matlab/MATLABAddon/+arduinoioaddons/+arduino/src/MKRMotorCarrierBase.h"_

Best Answer

As can be seen from the error message it seems the installed Arduino Engineering Kit add on includes some odd characters in the folder name (non-ASCII?) i.e. Arduino_Engineering*�*_Kit_Rev_1_Hardware_Suppo*�*rt_19a+
The issue was resolved by renaming the associated folder e.g. removing the odd characters. Please note that you may not see these odd characters when looking at the folder name in the file explorer.
This issue has been fixed for R2020a so feel free to download the support package using either the Add On Explorer or through the File Exchange website (Download: Toolbox or Zip file). Please make sure to follow all the steps mentioned in the File Exchange website if one is downloading the support package manually.
Related Question