Skip to main content
Associate II
December 18, 2024
Question

Hard fault after activating network interfaces

I'm trying to establish a TCP connection between my Nucleo-H753ZI and my PC.

I'm using ThreadX and NetxDuo.

First of all, i'm triggering a hard fault when activating Network Interfaces and then using the debug mode.

I don't seem to have hard fault if i flash the program directly into the board (I have a thread that blinks an LED that still works)

This is my cubeMX configuration :

unkn0wn_0-1734537403342.png

I installed the following, using the Software Packs Component Selector:

STMicroelectronics-X-CUBE-AZRTOS-H7:

  ThreadX => Core

  NetXDuo => NX Core

  Network Interfaces => Ethernet Interface, Ethernet Phy Interface : LAN8742_Phy_Interface

  Board Part STM32Cube_BSP_Components : ETHPhy / LAN8742

 

I tried to ping the board using CMD in windows, but i'm guessting that wouldn't work because i haven't added any code in nx_app_thread_entry.


Thank you

 

This topic has been closed for replies.

6 replies

unkn0wnAuthor
Associate II
December 18, 2024

Duplicate post - merged


I'm trying to establish a TCP connection between my Nucleo-H753ZI and my PC.

I'm using ThreadX and NetxDuo.

First of all, i'm triggering a hard fault when activating Network Interfaces and then using the debug mode.

I don't seem to have hard fault if i flash the program directly into the board (I have a thread that blinks an LED that still works)

This is my cubeMX configuration :

unkn0wn_0-1734538139300.png

I installed the following, using the Software Packs Component Selector:

STMicroelectronics-X-CUBE-AZRTOS-H7:

  ThreadX => Core

  NetXDuo => NX Core

  Network Interfaces => Ethernet Interface, Ethernet Phy Interface : LAN8742_Phy_Interface

  Board Part STM32Cube_BSP_Components : ETHPhy / LAN8742

 

I tried to ping the board using CMD in windows, but i'm guessting that wouldn't work because i haven't added any code in nx_app_thread_entry.


Thank you

DmitryR
Associate III
December 18, 2024

Hi @unkn0wn ,

 

First of all please make sure that your Ethernet buffers are not in AXI SRAM as Ethernet MAC has no access to it.

 

Regards,

Dmitry

Haithem Rahmani
ST Employee
December 19, 2024

Hi @DmitryR 

Actually, the Ethernet MAC has access to AXI SRAM as shown below in the bus matrix.

the only unaccessible memory is the DTCM.

HaithemRahmani_0-1734627750916.png

regards
haithem.

Andrew Neil
Super User
December 18, 2024

On debugging Hard Faults - both Cortex-M in general, and STM32 specifically:

https://community.st.com/t5/community-guidelines/how-to-write-your-question-to-maximize-your-chances-to-find-a/tac-p/708193/highlight/true#M51

 


@unkn0wn wrote:

I'm using ThreadX and NetxDuo.


Presumably they can provide some diagnostic tracing to (help) see what's going on ?

You can, of course, add your own ...

 

PS:

NetXDuo Knowledge Base articles:

https://community.st.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=includeTkbs&include_tkbs=true&q=NetXDuo

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.