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