Skip to main content
Graduate
May 13, 2025
Question

processor goes to HardFault at __ISB

  • May 13, 2025
  • 2 replies
  • 579 views

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

    This topic has been closed for replies.

    2 replies

    ST Employee
    May 23, 2025

    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,

    Graduate II
    May 23, 2025

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

    Output useful data in HardFault_Handler