Why do I see a build error when trying to deploy a simulink model to ESP32 WROVER hardware in R2024a release?

9 次查看(过去 30 天)
Here is the error snippet from the attached screenshot:
c:\programdata\matlab\supportpackages\r2024a\portable\packages\esp32\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\esp32-psram\no-rtti\bits\c++config.h:508:10: fatal error: bits/os_defines.h: No such file or directory
#include <bits/os_defines.h>
^~~~~~~~~~~~~~~~~~~~

回答(1 个)

Nakul Khadilkar
Nakul Khadilkar 2024-5-6
This is due to the path length limitations that exist on the Windows operating system. The support packages, by default, get installed in the location provided by the following command:
>> matlabshared.supportpkg.getSupportPackageRoot
Try changing this default location to a path that is shorter in character length using the command mentioned in this page.
For example, if the default location is 'C:\ProgramData\MATLAB\SupportPackages\R2024a', change it to 'C:\ProgramData\MATLAB\SupportPackages\24a', restart matlab, reinstall the Simulink Support Package for Arduino Hardware and rebuild the model.

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by