cancel
Showing results for 
Search instead for 
Did you mean: 

Hard fault after activating network interfaces

unkn0wn
Associate II

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

 

3 REPLIES 3
unkn0wn
Associate II

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

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

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