2025-01-02 03:44 AM - last edited on 2025-01-02 03:49 AM by SofLit
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.
2025-01-02 05:05 AM
Probably overflowing the stack, or heap and stack are colliding. Look at the line that triggers failure (ethernet.c:113) and see where the buffer is being stored and verify it's not overwriting anything.
2025-01-03 01:46 AM
thanks, I did the changes suggested by you, now i am able to transmit the complete data but sometimes system gets stuck in Hard Fault Handler during start, i think there is some issue in "pxPortInitialiseStack() at port.c:214 0x8011334"-
Hard Fault Stack-