Question
System gets stuck in hardfault handler after sending few chunks with LWIP using FreeRTOS
HELLO,
I’m facing a hard fault when transmitting large data (60,018 bytes) via LwIP TCP/IP on STM32H723 with FreeRTOS. After increasing buffers and adjusting lwipopts.h, only 4000-5000 bytes transmit successfully. Remaining data causes crashes, likely due to memory exhaustion, stack overflow, or incorrect buffer handling. Need help resolving this.
HARD FAULT STACK-
"cam_bsnet Debug [STM32 C/C++ Application]
"cam_bsnet Debug [STM32 C/C++ Application]
cam_bsnet.elf [cores: 0]
Thread #1 [main] 1 [core: 0] (Suspended : Signal : SIGTRAP:Trace/breakpoint trap)
HardFault_Handler() at stm32h7xx_it.c:113 0x8002070
<signal handler called>() at 0xfffffffd
ethernet_input() at ethernet.c:113 0x8023328
tcpip_thread_handle_msg() at tcpip.c:174 0x801714e
tcpip_thread() at tcpip.c:148 0x8017102
pxPortInitialiseStack() at port.c:214 0x8012ab0
arm-none-eabi-gdb (13.2.90.20230627)
ST-LINK (ST-LINK GDB server)"
THANKS IN ADVANCE
THANKS IN ADVANCE
