- Getting Started with STMicroelectronics STM32 Processor Based Boards: https://in.mathworks.com/help/supportpkg/stmicroelectronicsstm32f4discovery/ug/Getting-started-stm32cubemx.html
- Configure STM32 Processor-Based Boards using STM32CubeMX with Simulink: https://in.mathworks.com/help/supportpkg/stmicroelectronicsstm32f4discovery/ug/STM32-CubeMX-Configuration.html
- Exchanging Ethernet Data with STM32xx Based Boards: https://in.mathworks.com/help/supportpkg/stmicroelectronicsstm32f4discovery/ug/exchange-data-tcp-example.html
Compilation error of Embedded coder support package for STM32 example related to LWIP
4 views (last 30 days)
Show older comments
Hello,
I am trying to compile the example
open_system('stm32_UDP_target.slx');
for Embedded coder support package for STM32 which is installed together with the package. I have performed all actions suggested by the realted documentation, but I get an error (supposedly related to the LWIP library used by the example to implement the UDP ethernet communication on an STM32 microcontroller).
Here is the compiler error message that occurs when Simulink tries to compile the generated code:
C:/ProgramData/MATLAB/SupportPackages/R2023a/toolbox/shared/supportpackages/stm32/include/stm_ethernet_wrapper.h:16:10: fatal error: lwip/init.h: No such file or directory 16 | #include "lwip/init.h"
Any suggestions, please.
Regards
0 Comments
Answers (1)
Animesh
on 24 Aug 2023
Hello Djordje,
I understand that you are encountering an error while trying to compile the UDP Target Model in Simulink.
Please know that this error message indicates that the LWIP source files are currently missing in your system. This may happen if the concerned third-party software package is not correctly installed or may have been corrupted during installation.
In this case, I would suggest you to perform a clean re-installation of the Support Packages and third-party software packages using the following resource: https://in.mathworks.com/matlabcentral/answers/318635-how-do-i-perform-a-clean-re-installation-of-a-support-package
Furthermore, for additional information on using Embedded Coder Support Package for STMicroelectronics STM32 Processors,consider going through the following resources:
I hope this helps!
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!