SIMULINK ARDUINO MEGA 2560

5 ビュー (過去 30 日間)
JOSEPH KURAN
JOSEPH KURAN 2015 年 10 月 25 日
回答済み: Gareth Thomas 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 Center および File ExchangeArduino Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by