2025-08-26 12:26 AM - last edited on 2025-08-26 8:18 AM by Andrew Neil
Hi,
I'm getting build error after configuring the ethernet with LWIP. not sure what is the issue.
Attaching the screenshot for the reference.
attaching the code for reference. please help me to debug. as I'm facing this for ethernet configuration. what additional changes needs to be done in the flash or somehwhere as its memory related issue.
Thanks,
Harshitha
2025-08-26 12:42 AM
However you would want to frame it - your Flash is too small, or you want to cram too much code into your Flash.
Try some compiler optimisation settings, preferably optimising for size.
Check the linker removes unused code.
Consider removing unnessesary libraries, or smaller versions with reduced functionality (libnano).
Or, take an MCU with more Flash.
2025-08-26 8:10 AM
Normally on STM32H7S the ethernet application should not be in FLASH region.
The STM32H7S has very small internal Flash memory (64 KB).
The goal of this processor is to use external Flash memory for application. The user can choose what amount of external flash to put when designing the board.
There should be only a small boot program in internal Flash.
You are supposed to put your application in external Flash memory present on the board.
Check the linker file (*.ld file). It should not put code in FLASH region.
If you are using CubeMX, enable Ethernet and LwIP for "Application" context (not Boot).
2025-08-26 8:23 AM
How to create a project for STM32H7 with Ethernet and LwIP stack working
https://github.com/stm32-hotspot/STM32H7-LwIP-Examples
How to use SNTP over LwIP and RTC with an STM32H7
STM32H7 configuration tips and tricks
2025-08-26 8:36 AM
Specifically for the STM32H7S and the boot / application environment:
STM32CubeIDE: How to debug an STM32H7Rx/Sx project... - STMicroelectronics Community
see the related links at end of article:
2025-08-26 10:54 AM
give some .ioc file with stm32h7s78-dk board , just ping should work with lwip stack. tried all method debugging as well. please give me a simple project where ping should work, on top of that i can work on tcp/ip . please
2025-09-02 1:21 AM - last edited on 2025-09-05 8:35 AM by Saket_Om
Hi
I have implemented TCP/IP with LWIP, but after enabling the freeRTOS, I'm facing lot of issues, ping is not happening, flash overflow errors , internal flash is very less need to use external flash(how to configure?).
Mainly I need to enable freeRTOS to existing TCP/IP program . Along with that linker file which one to use as please let me know. .rodata overflow, something I getting error.
I've attached the project for reference.
Please give reply at the earliest.
Thanks,
Harshitha R
2025-09-02 9:21 PM
please reply
2025-09-09 2:49 AM - edited 2025-09-09 4:36 AM
You've already been given an explanation of why you get this overflow, and a load of links to help - have you looked at them?
what further debugging have you done?