Rank: 228200 based on 0 downloads (last 30 days) and 0 file submitted
photo

Marta

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Marta View all
Updated File Comments Rating
11 Apr 2014 Embedded Coder Target for Arduino Custom target for Arduno and other processors Author: MathWorks Embedded Coder Team

I downloaded and did setup for Arduino Mega 2650. I run through README.pdf file. When I tried to run myarduino_blink.slx I got error message when doing build stage.
Please advise.
Below is the error message.

....
....
....

Compiling: myarduino_blink.cpp
Compiling: ert_main.cpp
In file included from myarduino_blink_data.cpp:16:
myarduino_blink.h:21:21: error: Arduino.h: No such file or directory
gmake: *** [myarduino_blink_data.o] Error 1
gmake: *** Waiting for unfinished jobs....

.....
.....
.....

gmake: *** [io_wrappers.o] Error 1
In file included from myarduino_blink.cpp:16:
myarduino_blink.h:21:21: error: Arduino.h: No such file or directory
myarduino_blink.cpp: In function 'void myarduino_blink_step()':
myarduino_blink.cpp:58: error: 'digitalWrite' was not declared in this scope
myarduino_blink.cpp: In function 'void myarduino_blink_initialize()':
myarduino_blink.cpp:87: error: 'OUTPUT' was not declared in this scope
myarduino_blink.cpp:87: error: 'pinMode' was not declared in this scope
gmake: *** [myarduino_blink.o] Error 1
In file included from ert_main.cpp:16:
myarduino_blink.h:21:21: error: Arduino.h: No such file or directory
ert_main.cpp:20: error: 'uint8_t' does not name a type
ert_main.cpp:21: error: 'uint8_t' does not name a type
ert_main.cpp: In function 'int main()':
ert_main.cpp:34: error: 'init' was not declared in this scope
ert_main.cpp:38: error: 'micros' was not declared in this scope
ert_main.cpp:48: error: 'uOverrunCounter' was not declared in this scope
gmake: *** [ert_main.o] Error 1
### Build procedure for model: 'myarduino_blink' aborted due to an error.

11 Apr 2014 Simulink Support Package for Arduino Mega 2560 Hardware (R2012a) Simulink block library for creating standalone applications for the Arduino® Mega 2560 platform Author: MathWorks Simulink Team

Does this support package compatible for R2013b?

Contact us