Simulink for Arduino Due does not work (Windows 8.1/ R2014b) "The call to realtime_make_rtw_hook, during the entry hook generated the following error"
Show older comments
Hi, I am unable to load the simple example arduinodue_communication example on my Arduino Due board. I always 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 Due Programming Port 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\R2014b\arduino-1.5.6-r2\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 Due Programming Port 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\R2014b\arduino-1.5.6-r2\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.
Component: Simulink | Category: Block error_
I tried everything suggested in the error message. Also, I saw some posts with similar issue, but none had answers. In my case, I tried to completely reinstall Matlab with administrator rights and install the package also with admin rights and then run the example with admin rights, but I always get the same error.
I verified the driver, and Windows recognizes the board as a COM port named "Arduino Due". Even if I set the COM port manually, I still get the same error. From Matlab, I am able to create an Arduino object using the Arduino() function.
I am running Windows 8.1 with Matlab R2014b.
Any suggestion?
Answers (2)
Sheng Wang
on 24 Jan 2016
0 votes
Dude I have the same issue, and looking for soulution
1 Comment
Sheng Wang
on 24 Jan 2016
I have just solved the problem. Use win10 with matlab r2015b, and make sure the installation path and the sofeware is English.
Tom
on 14 Mar 2016
0 votes
I also find the same problem. When I update the driver to "-1.5.6...." the first time, i succeed to download the model to arduino ,but i just change the sample time , it can not connect to arduino any more.
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!