2024-12-18 08:07 AM
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 :
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
2024-12-18 08:09 AM - last edited on 2024-12-18 08:12 AM by Andrew Neil
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 :
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
2024-12-18 08:11 AM - edited 2024-12-18 10:08 AM
On debugging Hard Faults - both Cortex-M in general, and STM32 specifically:
@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:
2024-12-18 10:05 AM
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