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개)
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!