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

2 ビュー (過去 30 日間)
Shruthi Venkat
Shruthi Venkat 2018 年 4 月 6 日
回答済み: amina ibrahim 2019 年 2 月 6 日
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 Center および File ExchangeModeling についてさらに検索

製品


リリース

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by