STM32H755 LwIP FreeRTOS StackOverflowHook - Wrong configuration?
Hi everyone,
I try to impement the LwIP Stack on my NUCLEO-H755ZI-Q Evaluation Board. I want to use the M4 core for the ethernet communication.
Unfortunately it results always in a StackOverflowHook if I connet with "Hercules" TCP Client and send a string.
I have configured the stack as described under https://github.com/stm32-hotspot/STM32H7-LwIP-Examples/tree/v1.2_ide_v1.9.0/STM32H745_Nucleo_M4_ETH.
The adapted LinkerScript "STM32H755ZITX_FLASH.ld" see below.
My TCPServer implementation tcpServerRAW.c is from https://controllerstech.com/stm32-ethernet-4-tcp-server/.
I attached my .ioc fiile and a video of the Stackoverflow error.
Maybe there is a configuration mistake?
Thank you.
** File : LinkerScript.ld
...
/* Specify the memory areas */
MEMORY
{
FLASH (rx) : ORIGIN = 0x08100000, LENGTH = 1024K
/* ETH_CODE: split memory to data and ethernet buffers */
RAM (xrw) : ORIGIN = 0x10000000, LENGTH = 128K /* ETH_CODE *
ETH_RAM (xrw) : ORIGIN = 0x10020000, LENGTH = 160K /* ETH_CODE *
MTI_SRAM (xrw) : ORIGIN = 0x38008000, LENGTH = 32K /* MTI: Shared Memory Bereich halber SRAM4 */
}
/* MTI: Shared Memory Bereich */
__MTI_SRAM_region_M4_start__ = ORIGIN(MTI_SRAM);
__MTI_SRAM_region_M7_start__ = ORIGIN(MTI_SRAM) + 1024;
__MTI_SRAM_region_end__ = ORIGIN(MTI_SRAM) + LENGTH(MTI_SRAM);
...
/* ETH_CODE: add placement of DMA descriptors and RX buffers */
.lwip_sec (NOLOAD) :
{
. = ABSOLUTE(0x10040000); /* 0x10040000 */
*(.RxDecripSection)
. = ABSOLUTE(0x10040060); /* 0x10040060 */
*(.TxDecripSection)
. = ABSOLUTE(0x10040200); /* 0x10040200 */
*(.Rx_PoolSection)
} >ETH_RAM
/* ETH_CODE: end */
...
}
