cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Fault in TCP Echo Server (Ethernet)

Gokul_Sarvanakumar_60
Associate II

Hi all , 

Im facing a issue in TCP/IP - Ethernet using LWIP on STM32H723ZGT6 [NUCLEO - H723ZG] , that i gave completed ethernet configuration , ping is good , wrote a tcp_echoserver and modified with my desired outputs , everything was a woking upto a certain level, and i cant RX and Tx and fall into hard fault (Added a Video of the output). I'll add the code file as a zip. 

Kindly help me to resolve ii.

Thank You!!!.....

1 ACCEPTED SOLUTION

Accepted Solutions
Gokul_Sarvanakumar_60
Associate II

Thank you for all your reply, 

I have resolved it , 2hrs ago forgot to mention in the community, the issue was i have mapped my LWIP Rx pool at 0x30000400 at 16KB (approximately ends at 0x30004400) and set my lwip heap at 0x30004000 so both of them are overlapped , so only i got hardfault , finnally found and resolved it by placing the heap  @ 0x30005000. 

 

View solution in original post

3 REPLIES 3
Uwe Bonnes
Chief

Hopefully you developped und revison control, e.g. with GIT. Then you can bisect to find the bad commit...

Andrew Neil
Super User

Debugging Cortex-M Hard Faults

LwIP debug & diagnostic options.

 


@Gokul_Sarvanakumar_60 wrote:

everything was a woking upto a certain level, and i cant RX and Tx and fall into hard fault...


As @Uwe Bonnes said, go back to the last working version; examine carefully what you changed.

Use the above-mentioned LwIP debug & diagnostic options to compare & contrast what happens in the working & non-working cases ...

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.
Gokul_Sarvanakumar_60
Associate II

Thank you for all your reply, 

I have resolved it , 2hrs ago forgot to mention in the community, the issue was i have mapped my LWIP Rx pool at 0x30000400 at 16KB (approximately ends at 0x30004400) and set my lwip heap at 0x30004000 so both of them are overlapped , so only i got hardfault , finnally found and resolved it by placing the heap  @ 0x30005000.