Skip to main content
Associate III
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.

 

2 replies

mƎALLEm
Technical Moderator
May 30, 2025

Hello,

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

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Pavel A.
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.