I attempted to upload the attached simulink code to my arduino due, and generated the attached error. How can I resolve this error?

2 views (last 30 days)
=== Build (Elapsed: 16 sec) ===
### Starting build procedure for model: motorPulse1
### Build procedure for model: 'motorPulse1' aborted due to an error.
Error:Error evaluating registered method 'CheckParameters' of MATLAB S-Function 'msfun_arduino_digitalwrite' in 'motorPulse1/Arduino Digital Write'. The following is the MATLAB call stack (file names and line numbers) that produced this error:
['C:\Users\carlo\Documents\MATLAB\Add-Ons\Collections\Legacy MATLAB and Simulink Support for Arduino\code\simulink\msfun_arduino_digitalwrite.m'] [56]
['C:\Program Files\MATLAB\R2017a\toolbox\rtw\rtw\tlc_c.p'] [175]
['C:\Program Files\MATLAB\R2017a\toolbox\coder\simulinkcoder_core\+coder\+internal\ModelBuilder.m'] [650]
['C:\Program Files\MATLAB\R2017a\toolbox\coder\simulinkcoder_core\+coder\+internal\ModelBuilder.m'] [176]
['C:\Program Files\MATLAB\R2017a\toolbox\coder\simulinkcoder_core\+coder\+internal\@ModelCodegenMgr\make_rtw.m'] [8]
['C:\Program Files\MATLAB\R2017a\toolbox\rtw\rtw\make_rtw.m'] [18]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\private\build_target.p'] [0]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\private\build_target.p'] [0]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\private\build_standalone_rtw_target.p'] [0]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\private\slbuild_private.p'] [0]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\private\slbuild_private.p'] [0]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\sl.m'] [15]
['C:\Program Files\MATLAB\R2017a\toolbox\simulink\simulink\slbuild.m'] [61]
['C:\Program Files\MATLAB\R2017a\toolbox\coder\simulinkcoder_core\+coder\+internal\simulinkcodermenus.p'] [0]
Caused by:
Invalid value for a mask parameter

Answers (1)

Walter Roberson
Walter Roberson on 26 Sep 2017
Why do you have Legacy Arduino support installed for R2017a ?

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!