error: 'SETUP_PRESCALER' was not declared in this scope SETUP_PRESCALER; ^ gmake: *** [arduinoAVRScheduler.o] Error 1

1 vue (au cours des 30 derniers jours)
Hi,
While deploying a simulink model for my project(modelling an ultrasonic sensor) in arduino uno, I am getting the following error:
C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/src/arduinoAVRScheduler.cpp: In function 'void configureArduinoAVRTimer()':
C:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arduinotarget/registry/../scheduler/src/arduinoAVRScheduler.cpp:66:3: error: 'SETUP_PRESCALER' was not declared in this scope
SETUP_PRESCALER;
^
gmake: *** [arduinoAVRScheduler.o] Error 1
C:\Users\User\Desktop\ultrasonic_state_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\User\Desktop\ultrasonic_state_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
We cross checked by deploying other basic simulink models(eg: led blink) and it was running successfully.
We are unsure if the error is due to any particular simulink component that causes this error.(PFA the screenshot)
Kindly provide solution for the same.
Matlab version used: 2017b

Réponses (1)

amina ibrahim
amina ibrahim le 6 Fév 2019
i have the same problem with matlab 2016a

Catégories

En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange

Produits


Version

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by