MATLAB Answers

Error when uploading Simulink to Arduino MKR1000

4 views (last 30 days)
I am trying to upload a Simulink model to my Arduino MKR 1000, however I receive the following error:
"/Users/username/Documents/MATLAB/SupportPackages/R2019b/3P.instrset/arduinoide.instrset/idepkgs/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++: No such file or directory gmake: *** [MW_arduinoI2C.o] Error 127 Error(s)"
When I checked the existence of the above file, it did not exist. Does anyone know how I can successfully add these required files?
Thank you for your help.

Accepted Answer

Madhu Govindarajan
Madhu Govindarajan on 31 Oct 2019
I would recommend a clean reinstall of the Hardware support packages.
  • If you type arduinoio.PackageRoot on MATLAB Command Window, this will tell you the Arduino Support Package root location.
Example – C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs
In here, Note the location till R2018b or R2018a depending on what version of MATLAB you have.
  • After this go ahead and uninstall both Arduino support packages.
  • Next go to the location in first step and ensure no more files are left, and feel free to delete any left over.
  • Then close and reopen MATLAB as an administrator by right clicking on MATLAB icon and selecting Run as administrator or using sudo command on terminal window.
  • Now reinstall the support packages and on non-Windows OSes do not close additional terminal windows that open during this process.
HTH,
Madhu
PS: If this does not resolve the issue, contact MathWorks TS for assistance with installation.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!