Forums » Req. WJ2(ESP32) support »
ESP32 External Mode Build Fails: Missing esp_wifi.h Header (MATLAB 2024a + WJ2)
Added by Aria Saki 22 days ago
Hi everyone,
I'm currently working with the latest version of WJ2 and MATLAB R2024a.
The model builds and runs fine in deploy mode, but when I switch to external mode, I encounter the following error:
Top model targets built:
Model Action Rebuild Reason
==============================================================================
esp32_extmode_demo Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 2m 18.0347679999992s
The call to esp32_make_rtw_hook, during the exit hook generated the following error:
An error occurred in Auto compile process. Please refer the log data above.
The build process will terminate as a result.
Caused by:
An error occurred in Auto compile process. Please refer the log data above.
Digging further into the build log, I found this:
C:/Users/Aria/Desktop/test/esp32_extmode_demo_esp32_build_system/main/rtiostream_tcp_esp32.c:19:10: fatal error: esp_wifi.h: No such file or directory
19 | #include "esp_wifi.h"
| ^~~~~~~~~~~~
compilation terminated.
It looks like the ESP-IDF isn't set up correctly in WJ2. I'm going to try forcing WJ2 to use my own ESP-IDF installation instead.
Meanwhile, if anyone has encountered this issue or has suggestions for resolving it, I'd really appreciate your help!
idf_py_stdout_output_12040.txt | idf_py_stdout_output_12040.txt | 76.4 KB | build log |