Arduino Code Generation Error

1 回表示 (過去 30 日間)
Shehryaar Ali
Shehryaar Ali 2022 年 7 月 23 日
回答済み: Pratyush Swain 2023 年 9 月 14 日
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 Center および File ExchangeModeling についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by