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

1 次查看(过去 30 天)
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

回答(1 个)

amina ibrahim
amina ibrahim 2019-2-6
i have the same problem with matlab 2016a

类别

Help CenterFile Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by