cancel
Showing results for 
Search instead for 
Did you mean: 

Build failed due to overflow error in stm32h7s78-dk

HarshthaR
Visitor

Hi,

I'm getting build error after configuring the ethernet with LWIP. not sure what is the issue.
Attaching the screenshot for the reference.

HarshthaR_0-1756192953662.png

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

5 REPLIES 5
Ozone
Principal

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.

Guillaume K
ST Employee

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).

Andrew Neil
Super User

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

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

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