No connection to mkr1000 board.
5 views (last 30 days)
Show older comments
I would like to communicate with the arduino mkr1000 board.
I tried to upload a Simulink model and the board is on COM4 as a Arduino MKR1000, while uploading the COM Port switching
to COM 3 as a Arduino MKRZERO bootloader. Simulink could find the board concerning the Portswitch.
At this situation (Arduino is on COM 3 as bootloader) nothing works, I have to use the Arduino IDE to get the Arduino MKR1000 back.
I tried also to set the driver like the error message.
Every time I have the following error:
The following error occurred during deployment to your hardware board:
Could not automatically set the host COM port for your MKR1000 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:\ProgramData\MATLAB\SupportPackages\R2018b\3P.instrset\arduinoide.instrset\arduino-1.8.1\drivers and click 'Next'.
If Windows still cannot automatically set the COM port for your board, set it manually. In your model, click 'Simulation ', click 'Model Configuration Parameters'... In the dialog that opens, select the 'Hardware Implementation' pane, click 'Target hardware resources > Host-board connection', change 'Set host COM port' to 'Manually' and set the 'COM port number' to match the port number in Windows.
0 Comments
Answers (2)
Madhu Govindarajan
on 25 Feb 2019
Try putting the Arduino in bootloader mode before downloading the Simulink model and also make Simulink automatically set COM port.
To put Arduino in bootloader mode, double press the RESET button on the Arduino.
To make Simulink automatically set COM port, Configuration Parameters > Hardware Implementation > Hardware board settings > Target hardware resources > Host board connection > Set COM port > Automatically.
Let us know if this does not resolve the issue.
2 Comments
Madhu Govindarajan
on 1 Mar 2019
Have you looked into Simulink I/O? This is a new feature that sort of matches your description.
Could you expand upon your thought process on the last question?
Atta ul Wasay Malik
on 1 Sep 2020
Hi,
I have the similar issue. Have you found the complete solution?
Simulink is unable to detect the MKR1000 after loading the program.
This the error which I am getting.
I also tried with Bootloader mode but no solution.
That is the error with Bootloader mode.
I also uninstalled the Arduino Support Packages and installed them again. But still not getting to the solution.
One thing which I want to mention here it that it is working fine in my another laptop. May be I should reinstall MATLAB!
It will be really appreciated if someone could guide me to the solution without uninstalling the MATLAB.
Thanks
Atta ul Wasay
0 Comments
See Also
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!