cancel
Showing results for 
Search instead for 
Did you mean: 

NUCLOE-N657X0Q netxduo TCP server with static IP - Config problem

kawaman
Associate

Hello everybody,

I'm new to STM32 development and currently working on my first projects while learning the system.

I am trying to start a TCP server on a NUCLEO-N657X0-Q board. As a reference, I looked at the Nx_TCP_Echo_Server example generated with CubeMX 1.19 on Ubuntu. Since the example does not include the .ioc file, I tried to configure the clocks and pins based on another example project.

I'm using NetX Duo and ThreadX with the LAN8742 PHY driver.

I added logs at each initialization step, and this is what I observed:

  • The MAC link seems to be up.
  • Ethernet interrupts are enabled.
  • The ARP & ICMP service starts successfully.
  • The IP address is configured.
  • The TCP server starts listening.

However, the board does not respond to ARP requests, arping, or nmap scans. I also noticed that the ARP incoming request counter never increases.

Could somebody take a look at my project and help me understand what I might have missed ?

Thank you for your help.

1 REPLY 1
MStackDev_376
Associate III

Here is an .ioc file from a project on the N657X0, running a webserver using the Mongoose library, that was tested and proven to work. You can compare it to your own ioc. The issue could be either with the Ethernet pin configuration or with the RIF configuration. The later can block access to the ETH controller if it's not configured properly and this is more likely to be the real issue.

Also, have you tried using DHCP to acquire the address instead of static IP? It would be useful to know if the TX path works (e.g. checking via Wireshark if your board successfully sends DHCP packets).