Simulink Model to Arduino code

I am trying to use "Embedded Coder Target for Arduino" from Simulink to get Arduino code for my model. Tried following the pdf document that comes with the add-on but still get the following errors:

Error using arduino_ec.Prefs.setBoard (line 75)
Unable to find board specification file. Ensure that
the path to the Arduino IDE is set correctly, e.g.
arduino_ec.Prefs.setArduinoPath('c:arduino-1.0.5')

Error in setup_customtarget_arduino (line 34)
arduino_ec.Prefs.setBoard('mega2560'); % Choose a specific board name

Please note I am beginner level in this. All I want is to convert my Simulink model to Arduino code, currently using Mega2560

Unless there is an experienced SimuLink user here on the forum, you might be better off asking this in a MatLab/SimuLink forum.

@mic10 Question moved from the place that asks you not to post questions about your project, to a place where you can post about your project.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.