SIMULINK ARDUINO MEGA 2560

6 次查看(过去 30 天)
JOSEPH KURAN
JOSEPH KURAN 2015-10-25
My MEGA2560 R3 receives uploads VIA USB from MATLAB OK. But when using SIMULINK (I used "getting started with Arduino Hardware" example) to make LED blink on pin 9. I keep getting "Failed to generate all binary outputs" error after "deploying hardware" button in initiated. The difference is that the TX/RX LED's flash when uploading from MATLAB, but TX/RX LED's do not flash when uploading from SIMULINK. Using Windows 10 64 Bit and MATLAB 2015b and windows device driver indicates that 2560 in enabled and assigned COM5. Also, 2560 works OK when uploading sketches from Arduino sketch book. It acts like that maybe SIMULINK doesn't recognize the USB connection, even-though MATLAB does recognize it. Also I have the issue with Arduino UNO. Any help would be appreciated.

回答(1 个)

Gareth Thomas
Gareth Thomas 2015-10-25
Make sure that your simulink model is configured for the arduino mega, and make sure that you set the com port in the simulink model properties under hardware settings. it is set to automatic by default, you can force it to use com5

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by