Whats the Problem when downloading Code from Simulink to Arduino Mega 2560?

4 views (last 30 days)
Hello there im using MatLab R217a and Windows 10. I have the following problem: i wanted to use the Arduino mega2560 for an easy Task but before i wanted to Test it with a simple Model (LED on Port 24). Now when i start to generate the Code, it looks fine first, but at the End there comes the following Error. Here is the Point, where the Problem is i think. I hope someone can help me.The last quote is Part of the first One
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp
In file included from C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/src/MW_digitalio.cpp:2:0:
C:/ProgramData/MATLAB/SupportPackages/R2017a/toolbox/target/supportpackages/arduinobase/include/MW_digitalio.h:3:22: fatal error: rtwtypes.h: No such file or directory
#include "rtwtypes.h"
fatal error: rtwtypes.h: No such file or directory
#include "rtwtypes.h"
end

Answers (1)

Miguel Chipana Esquivel
Miguel Chipana Esquivel on 3 Sep 2018
Find "rtwtypes.h" and copy in this folder C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\arduinobase\include then maybe need do the same for "MW_target_hardware_resources.h" and "multiword_types.h" this work for me, hope this work for you to.

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!