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

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.

カテゴリ

ヘルプ センター および File ExchangeArduino Hardware についてさらに検索

製品

リリース

R2024a

質問済み:

2024 年 5 月 6 日

回答済み:

2024 年 5 月 6 日

Community Treasure Hunt

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

Start Hunting!

Translated by