Upload program to Arduino Due

조회 수: 25 (최근 30일)
Bikash
Bikash 2020년 3월 27일
답변: Harsh 2025년 7월 22일
Why can't I upload the server code to Arduino Due via Native USB Port . Matlab can't even identify Due board connected via Native USB Port.

답변 (1개)

Harsh
Harsh 2025년 7월 22일
MATLAB cannot upload server code to the Arduino Due via the Native USB Port.
The Arduino Due has two USB ports:
  • Native USB Port (labeled "Native USB"), is connected directly to the SAM3X MCU. This port supports CDC serial communication using the SerialUSB object.
  • Programming Port (labeled "Programming"), is connected to an ATMEL 16U2 chip, which acts as a USB-to-Serial converter.
MATLAB only supports the Programming Port for uploading server code and board detection. The Programming Port appears in Windows Device Manager as "Arduino Due Programming Port (COMx)".
MATLAB uses USB-to-serial communication when interacting with TTL serial devices because USB is convenient and widely compatible with computers, while TTL serial is a low-level protocol used by many embedded systems. The USB-to-serial adapter (the 16U2 chip) translates USB protocol from the computer to TTL serial protocol used by the Arduino.
Please use the Programming Port and specify the correct COM port in your MATLAB command.
For reference, you may find the following resources helpful (although the first discusses the Arduino Uno, similar workarounds may apply):
Hope this helps, thanks!

카테고리

Help CenterFile Exchange에서 Instrument Control Toolbox에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by