Clear Filters
Clear Filters

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

8 views (last 30 days)
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>
^~~~~~~~~~~~~~~~~~~~

Answers (1)

Nakul Khadilkar
Nakul Khadilkar on 6 May 2024
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.

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!