cancel
Showing results for 
Search instead for 
Did you mean: 

processor goes to HardFault at __ISB

MauFanGilaMedical
Associate III

Hello,

I've bought Riverdi board and I'm developing a code that uses Ethernet and act as TCP server.

 

The code sends "Hello word %d", i++ every 10ms on that TCP socket and it works fine,

 

but when I try to send some byte on client size it goes to HardFault:

MauFanGilaMedical_0-1747125665262.png

 

Can some one help me ?

 

it is related to HardFault_Handler when enable LWIP and touchgfx - Page 2 - STMicroelectronics Community

2 REPLIES 2
ASEHST
ST Employee

Hello @MauFanGilaMedical,

Thank you for your report.

The HardFault you are encountering might be due to a stack overflow. To prevent this, you can try increasing the stack size in your project settings. Additionally, ensure that the data being sent does not exceed buffer limits, and consider testing with smaller data payloads to see if the issue persists.

 

Sharing more details about your project could also help us provide more specific assistance.

 

With Regards,

If your question is answered, please close this topic by clicking "Accept as Solution".

Watch that Invalidate Cache does not discard data on stack, and throwing away pending write buffers.

Output useful data in HardFault_Handler 

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..