Notes:* First of all: You will never see two COM ports in the Windows device manger UIat the same -> "serial com port" and "bootloader com port"
*
Do not set in the Simulink demo model the COM port setting in the Simulink model configuration parameter dialog manually but leave the setup to Automatically for the first test:
After connecting the Arduino Nano 33 BLE sense hardware over USB port with your Windows PC you get an error when starting the over Add-on Manager the Hardware setup. Means when you push "Test Connection" and downloading application... this will takes a long time and fails at the end.
Also when you open the demo model "arduino_gettingstarted.slx" and push from the menu "Monitor & Tune" or "Build, Deploy & Start" you will receive an error e.g.
Error ...
Nano 33 BLE board. This may be due to a disconnected or unrecognized
board...
When you test your hardware connection with the Arduino IDE and flash code to the target everything works well.
Solution:
In this case you have to update the driver for the bootloader COM port manually. Please following these steps (instruction steps only for Arduino Nano 33 BLE sense board):
Step 1:
Open Windows device manager UI and select the tree view item "Ports (COM & LPT)" to see the COM port (number) of the connected Arduino Nano 33 BLE sense hardware.
Step 2:
Now bring the hardware board into bootloader mode by pushing the small white button on the connected hardware:
and make sure in the Windows device manger UI that the COM port number changed to bootloader COM port (e.g. COM 4). Repeat pushing button on the board if necessary to change COM port from COM 3 to COM 4 (bootloader)
Step 3
: Now update Bootloader com port driver from the MATLAB Arduino support package install folder where th epath to it you can see in the error message when build process of the Simulink demo model failed:
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\R2021b\aIDE\drivers and click 'Next'.
Select the driver from the MATLAB support package install folder and start installation. After this try to start the Simulink demo model "arduino_gettingstarted.slx" and you should see that on board LED should start blinking.