Go Down

Topic: Cannot find instance/adc.h when installing Matlab support package for Arduino (Read 82 times) previous topic - next topic

wangdadashuaige

 I am installing Matlab support package for Arduino. However, on the page of Hardware Setup, after I hit the Program button, It says "Failed to program the Arduino board, Click the following link to see the error log. Contract Technical support if you need more help."

I tried to type
a = arduino('COM7','MKR1000','Trace',true);
in Matlab so that I can see the error information, then the reported error is:

C:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\idepkgs\packages\arduino\tools\CMSIS-Atmel\1.1.0/CMSIS/Device/ATMEL/samd21/include/samd21g18a.h:281:26:
fatal error: instance/adc.h: No such file or directory

 #include "instance/adc.h"

                          ^

compilation terminated.

exit status 1

I will be really appreciated if someone could help to solve the problem. Thank you.

Go Up