MATLAB Answers

“Operation not supported” error while building Arduino model on MATLAB R2020a

43 views (last 30 days)
Arun Kumar
Arun Kumar on 31 Mar 2020
Commented: Arun Kumar on 15 Apr 2020
I am running MATLAB R2020a on macOS. While trying to build a Simulink Model Configured for Arduino Hardware, I am getting the following error - "Operation not supported".

  0 Comments

Sign in to comment.

Accepted Answer

Arun Kumar
Arun Kumar on 31 Mar 2020
Edited: Arun Kumar on 15 Apr 2020
If the version number of Simulink Support Package for Arduino Hardware that you have installed is 20.1.0, then you might face this issue. To know the version of the installed support package, execute the following command:
matlabshared.supportpkg.getInstalled
To resolve this issue follow the instructions given below:
Execute the following command in MATLAB command prompt.
setenv('ARDUINO_STATIC_LIB_PATH',['/Users/' getenv('USER') '/Documents/MATLAB'])

  3 Comments

Sam Bugeja
Sam Bugeja on 9 Apr 2020
Is there another solution to try for this error? I am experiencing the problem described however the solution proposed does not resolve it. Please advise.
Thanks!
Arun Kumar
Arun Kumar on 9 Apr 2020
Hi Sam,
Please contact Technical Support if the issue still persists. Please note that the above solution is only for R2020a.
Thanks,
Arun
Arun Kumar
Arun Kumar on 15 Apr 2020
Hi Sam,
I've updated the command. Can you try executing the new command in the answer:
setenv('ARDUINO_STATIC_LIB_PATH',['/Users/' getenv('USER') '/Documents/MATLAB'])

Sign in to comment.

More Answers (0)

Sign in to answer this question.