필터 지우기
필터 지우기

Com Port Error in Matlab Simulink RoTH function with Arduino Due

조회 수: 8 (최근 30일)
Chit
Chit 2023년 3월 7일
답변: Manikanta Aditya 2023년 3월 17일
I am using Matlab Simulink's Run on Target/Board function and trying to work with Arduino Due. However, 99% of the time, building stops because "Failed to connect to Arduino board.", and suggests to check the COM port and try again. I am sure I have selected the correct com port and device, and it is not a connection problem. I have also tried running the same program on an Arduino Uno and it works just fine. The main problem is with Arduino Due. Sometimes, the build would proceed correctly and I could use the device for a certain amount of time before getting the same error again. I have even bought a new Due and a new data cable in case the old one was faulty but the same Com Port error exists.

답변 (1개)

Manikanta Aditya
Manikanta Aditya 2023년 3월 17일
Hi Chit,
As per my understanding, you are getting ‘COM Port’ error when you are using Arduino Due board with Run on target/Board function in Simulink.
Arduino drivers are not the same for all Arduino boards. The drivers required for an Arduino board depend on the type of microcontroller that is used on the board and the operating system of the computer that is being used to program the board. To resolve this issue, you need to install Hardware driver for Arduino Due and then retry the connecting the COM Port of Arduino Due to Run on target/Board Function in Simulink.
For more details on installing support package and drivers for Arduino Due, please go through this link:
I hope this resolves the issue you are facing.

카테고리

Help CenterFile Exchange에서 Setup and Configuration에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by