Cannot upload simulink generated code to arduino mega - Using the support package - 2014a

조회 수: 2 (최근 30일)
Hello, I was using atduino target and it was working with the 1280 but now I need to use the realtime.tlc for target hardware because I have realtime needs. There is a problem connecting to my arduino atmega1280. I am using Matlab 2014a and I downloaded the support package.
It seems to only work with mega 2560 board but for sure there is something I could do to make it work with the 1280 if anyone knows and could share.
I get the following error:
The call to realtime_make_rtw_hook, during the entry hook generated the following error: Could not automatically set the host COM port for your Mega 2560 board. This may be due to disconnected or unrecognized board. If the board is not connected to your host computer, connect it and let Windows install the board driver. If the board is connected, update the board driver. Open Windows Device Manager and locate the board either in Other Devices or in COM Ports. Right-click on the board and select 'Update Driver Software...' Next, select 'Browse my computer for driver software'. Specify the search location as C:\MATLAB\SupportPackages\R2014a\arduino-1.0.5\drivers and click 'Next'. If Windows still cannot automatically set the COM port for your board, set it manually. In your model, click 'Tools', click 'Run on Target Hardware', and click 'Options...' In the dialog that opens, change 'Set host COM port' to 'Manually' and the set the 'COM port number' to match the port number in Windows. The build process will terminate as a result. Could not automatically set the host COM port for your Mega 2560 board. This may be due to a disconnected or unrecognized board. if the board is not connected to your host computer, connect it and let Windows install the board driver. If the board is connected, update the board driver. Open Windows Device Manager and locate the board either in Other Devices or in COM Ports. Right-click on the board and select 'Update Driver Software...' Next, select 'Browse my computer for driver software'. Specify the search location as C:\MATLAB\SupportPackages\R2014a\arduino-1.0.5\drivers and click 'Next'. If Windows still cannot automatically set the COM port for your board, set it manually. In your model, click 'Tools', click 'Run on Target Hardware', and click 'Options...' In the dialog that opens, change 'Set host COM port' to 'Manually' and the set the 'COM port number' to match the port number in Windows.
My COM driver is working, it works with arduino IDE and arduino.tlc target.
Do I have to change some file, edit some parameters ? Making it believe it is a 2560 board ? What can I do ?
  댓글 수: 1
GABRIEL CORRALES
GABRIEL CORRALES 2015년 2월 8일
Did you find the solution???? I have the same problem with the Arduino Mega ADK. Help me please!!!!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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