Skip to main content
Visitor II
May 30, 2025
Question

FREERTOS + LWIP + shared memory

  • May 30, 2025
  • 2 replies
  • 378 views

Hi,

I'm using STM32H755 nucleo board. I'm having freertos + LWIP on M7 core and bare metal on M4. I'm using TCP command to start some real time test on core M4. I'm using shared memory to trigger test and also transmitting some data back to M7 core. 

I'm having occasional problem. I am getting hardfault on M7 core. I'm looking fault analyzer with following results:

fault.PNG

debug.PNG

I'm not sure how I can find root cause for the problem? It seems that something goes wrong with tcpip_thread.

 

    This topic has been closed for replies.

    2 replies

    Technical Moderator
    May 30, 2025

    Hello,

    You need to debug the hardfault: How to debug a HardFault on an Arm® Cortex®-M STM32

    Super User
    May 30, 2025

    Fortunately this kind of fault is very clear. Code in ethernet_input(), precisely at the given address, tried to touch address 0x0FAF0FAF. Debug.