Error configuring Arduino Uno R4 Minima in MATLAB 2024b

I’m encountering an error when trying to set up my Arduino Uno R4 Minima in MATLAB 2024b. After connecting the device to my computer and selecting the board in the "Hardware Setup" section, I receive the following error:
output argument "boardname" (and possibly others) not assigned a value in the execution of "arduino.setup.internal/HardwareInterface/getTargetName" function.

3 commentaires

Hi, could you specify how you connected the device to your computer (USB, Bluetooth, or Wi-Fi)?
According to the documentation (Refer Supported Boards), the Arduino Uno R4 Minima connection via Bluetooth and Wi-Fi is not supported in the R2024b release.
Kelwin Willian
Kelwin Willian le 4 Fév 2025
Modifié(e) : Kelwin Willian le 4 Fév 2025
Hello Abhishek, I connected the device in my computer with USB.
Thanks for your help, but I managed to connect the device to matlab by updating the driver in Win10.
However, I cannot communicate the device to the computer via USB serial, as it is not supported by Matlab 2024b.
Hi @Kelwin Willian, since the Arduino Uno R4 Minima only supports USB connections as per the documentation, ensure that all settings are correct for USB. If issues persist, double-check the support package installation. And as said, please refer the documentation if needed. Hope it helped.

Connectez-vous pour commenter.

Réponses (2)

Abhishek
Abhishek le 5 Fév 2025
Modifié(e) : Walter Roberson le 5 Fév 2025
Hi,
It seems you're encountering an issue with setting up your Arduino Uno R4 Minima in MATLAB R2024b. Upon researching, turns out that USB is the only supported connection method for this board version, you may refer to the official documentation at https://www.mathworks.com/help/matlab/supportpkg/arduino.html.
As a workaround, please ensure the following:
  1. Correct Support Package: Verify that you have the latest Arduino support package installed in MATLAB. You can do this through the Add-Ons menu.
  2. Driver Update: Make sure the appropriate drivers for the Arduino Uno R4 Minima are installed and updated on your system.
  3. Check Connections: Ensure that the USB connection is secure, and the correct COM port is selected in MATLAB.
  4. MATLAB Path: Reset the MATLAB path to default to ensure no custom paths are interfering with the setup. You can use the restoredefaultpath command to reset the MATLAB search path. Please refer the documentation for more information:- https://www.mathworks.com/help/matlab/ref/restoredefaultpath.html .Additionally use the rehash toolboxcache command to update the list of known files and classes for folders on the search path that are not in the matlabroot. Please refer to the documentation at:- https://www.mathworks.com/help/matlab/ref/rehash.html#d126e1540132 for more information.
Hope this helps to solve the problem. Thanks.

1 commentaire

Kelwin Willian
Kelwin Willian le 7 Fév 2025
Modifié(e) : Kelwin Willian le 7 Fév 2025
Thanks Abhishek!
I successfully connected my device to the computer, but the problem is that I cannot use the serial function with the Arduino Uno R4 Minima.

Connectez-vous pour commenter.

Hi,
Support for Uno R4 boards is available starting with R2024b.
Here are some steps you can try to resolve the issues:
  • Ensure that a valid COM port is visible in the Windows Device Manager.
  • Uninstall the MATLAB Support Package for Arduino Hardware via Manage Add-Ons.
  • Reinstall the MATLAB Support Package for Arduino Hardware from Manage Add-Ons.
  • Execute the following command:
a = arduino("<COM_PORT_HERE>", "UnoR4Minima", "ForceBuildOn", true, "TraceOn", true)
  • If you continue to encounter an error after this step, please contact our technical support team and provide the error message.
Thank you,
MATLAB Hardware Team
MathWorks

1 commentaire

Is this HW also available in the Simulink 2024b? I have trouble to connect, in Simulink, but Matlab works fine.

Connectez-vous pour commenter.

Catégories

Produits

Version

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by