NUCLEO N657X0-Q netxduo TCP server with static IP - Ethernet not working
Hello everyone,
I apologize for posting a similar message again, but for some reason I can no longer access my previous post.
I am currently studying how my Nucleo N657X0-Q board works, and for this purpose I am trying to create a TCP server project using a static IP address.
However, despite what seems to be a correct configuration, my board does not respond to ARP requests. I checked this using Wireshark and the arping command on Linux, but the result is always TIMEOUT.
The MAC address seems to be correctly configured, the LAN8742 driver also appears to start correctly, and all IP, TCP, UDP, ARP, and ICMP services return SUCCESS.
In the meantime, I also used the .ioc file from the following link, as suggested to me, in order to compare it with my own project : webserver
Despite my new modifications, the symptoms remain the same. I also tested the steps performed in the nx_stm32_eth_driver code, and I was able to see that Initialize, Enable, and Attach are being called.
I added a printf output for monitoring through the SWV ITM Data Console, and here is the prompt:
Main entry
ETH1 entry
ETH1 define MAC
ETH1 end
MX_ETH1_Init *[0x58036000] &[0x34033438]ThreadX application define
ThreadX byte pool success
ThreadX initialization success
NetX application memory pool succeed
Nx_TCP_Echo_Server application started..
Packet pool memory allocate : Success
Packet pool create : Success
Ip instance memory : Success
Ip create : Success
NX_LINK_ENABLE ret=90 status=874512336
ARP memory allocate : Success
ARP enable : Success [0]
ICMP enable : Success [0]
TCP memory allocate : Success
Create TCP threadTCP thread create : Success [0]
TCP enable : Success [0]
UDP enable : Success [0]
Main thread memory allocate : Success
Main thread create : Success [0]
Create TCPSemaphore
Link thread memory allocate : Success
Link thread create : Success [0]
NetX initialization success
Function : App_TCP_Thread_Entry
TCP socket created
TCP Server listening on PORT 6000 ..
Function : App_Link_Thread_Entry
ARP req=0 resp=0
INIT=1
ADDR=2
Data :
STM32 ip: 192.168.40.127
STM32 mask: 255.255.255.0
Link status check = 0
TX=0 RX=0I have been stuck on this issue for several months now, and I still do not understand why even ARP is not working.
Regarding the previous message I received, the choice of using a static IP address is motivated by the future use of this project, if I manage to solve this initial issue.
Could you please help me identify and solve this problem?
Thank you all for your time.
I put my project on Mega due to 50 mb limit here : link to project
