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 CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by