NRF5340 with W5500 weird ping behaviour

Hello,

I have a problem with my nrf5340 in combination with the w5500. I have everything working but the connection is not stable.

I have nothing in the main.c

void main(void)
{
}

This is my nrf5340dk_nrf5340_cpuapp.overlay file

&spi3 {
	compatible = "nordic,nrf-spim";
	sck-pin = <8>;
	miso-pin = <10>;
	mosi-pin = <9>;
	cs-gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
	status = "okay";
	w5500: w5500@0 {
					compatible = "wiznet,w5500";
					label = "w5500";
					reg = <0>;
					spi-max-frequency = <8000000>;
					int-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
	};
};

prj.conf

# Networking config
CONFIG_NETWORKING=y

# w5500 driver config
CONFIG_SPI=y
CONFIG_NET_L2_ETHERNET=y
CONFIG_ETH_W5500=y


# Network address config
CONFIG_NET_CONFIG_SETTINGS=y
CONFIG_NET_CONFIG_NEED_IPV4=y
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.168.101.52"
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.168.101.1"

# choose RTT console
CONFIG_UART_CONSOLE=n
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y

# General config
CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_NET_LOG=y


I have a connection and i can ping the address. But the responses takes very long sometimes. And i get a request timed out sometimes. When i ping to google.com or to the host from my computer everything works fine.

I was wondering if anyone has a explanation for this?

thanks in advance

Parents Reply Children
Related