No connection to mkr1000 board.

5 Ansichten (letzte 30 Tage)
Sascha
Sascha am 25 Feb. 2019
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.

Antworten (2)

Madhu Govindarajan
Madhu Govindarajan am 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 Kommentare
Sascha
Sascha am 28 Feb. 2019
Thank you for your fast reply.
That works fine, I could upload the Simulinkmodel with the Deploy-to-Hardware-Button.
If I put the Arduino in the bootloader mode and upload the model, the Arduino changes his COM Port and a simulation will not work because Matlab don´t know that the COM Port is switched.
Is there a way to simulate the model and control the Arduino over the serial Port?
Madhu Govindarajan
Madhu Govindarajan am 1 Mär. 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?

Melden Sie sich an, um zu kommentieren.


Atta ul Wasay Malik
Atta ul Wasay Malik am 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

Kategorien

Mehr zu Arduino Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by