Error configuring Arduino Uno R4 Minima in MATLAB 2024b
20 views (last 30 days)
Show older comments
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 Comments
Abhishek
on 5 Feb 2025
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.
Answers (2)
Abhishek
on 5 Feb 2025
Edited: Walter Roberson
on 5 Feb 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:
- Correct Support Package: Verify that you have the latest Arduino support package installed in MATLAB. You can do this through the Add-Ons menu.
- Driver Update: Make sure the appropriate drivers for the Arduino Uno R4 Minima are installed and updated on your system.
- Check Connections: Ensure that the USB connection is secure, and the correct COM port is selected in MATLAB.
- 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.
MathWorks MATLAB Hardware Team
on 24 Feb 2025
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
0 Comments
See Also
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!