Simulink external mode MKR1000 unrecognized board and changing driver when error occurs

1 view (last 30 days)
When I plug in the Arduino MKR1000 with USB, run the latest Arduino IDE and upload a sketch it works fine. I installed the 1.6.2 driver.
When using MATLAB R2018a and use the Support Package for Arduino the MKR1000 also works fine.
But in Simulink when I use external mode and upload something the building works and the first time it’s writing the code on the board. But the second time the writing of the code to the MKR1000 won’t work. It says then that Simulink can’t automatically find the COM port. Setting the port manually to the one in the device manager for MKR1000 don’t work. Also unplugging and replugging don’t work.
After that error the device driver has changed from Arduino MKR1000 to Genuino MKR1000. I can’t reproduce a situation where I can make the board working two times in a row. Every time it’s coding the MKR1000 the second time won’t work. Also the setup from the Simulink Support Package works every time.

Accepted Answer

Madhu Govindarajan
Madhu Govindarajan on 2 Jul 2018
If you put the MKR1000 in bootloader mode manually (double pressing the reset button), this could help get the COM port numbers found automatically.

More Answers (0)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!