Arduino Code Generation Error

5 次查看(过去 30 天)
Shehryaar Ali
Shehryaar Ali 2022-7-23
I'm trying to run the basic openExample('arduino/GettingStartedWithArduinoRHardwareExample'), but it does not seem to work. However, Simulink verified the installation and even successfullt uploaded the blink code during install.I tried a number of things, one of being shortening the path of MATLAB install directory and the file itself, removed all spaces and reinstalled MATLAB, but nothing seem to work. The build keeps on giving the error: " Code generation information file does not exist."
### Starting build procedure for: Test
### Build procedure for Test aborted due to an error.
Build Summary
Top model targets built: Model Action Rebuild Reason ================================================================= Test
Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date) Build duration: 0h 0m 12.614s
The system cannot find the file specified.

回答(1 个)

Pratyush Swain
Pratyush Swain 2023-9-14
Hi Shehryaar,
I understand you are facing issue in building your file and also that you have tried reinstalling MATLAB.
To troubleshoot this issue, I recommend the following steps:
  • Reinstall Simulink package, The Arduino IDE, and the Drivers for the Arduino.
  • Uninstall and reinstall the Simulink add on as well as the MATLAB Support Package for Arduino Hardware, and the Simulink Support Package for Arduino Hardware
  • Ensure the Arduino Board is not corrupted - check its appearance in device manager unser Ports(COM and LPT)
  • Check if hardware connection are configured accurately by referring to https://www.mathworks.com/help/supportpkg/arduino/setup-and-configuration.html?s_tid=CRUX_lftnav
  • Ensure MATLAB and Model File saved locally as none of the software should be on a network directory.
Hope this helps.

类别

Help CenterFile Exchange 中查找有关 Setup and Configuration 的更多信息

产品


版本

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by