How to maximize WIFI throughput when using SPI4 between nRF5340 and nRF7002

We are trying to max out the wifi throughput via nRF7002 when connected to SPI4. Currently we only achieve around 6.3Mbits/sec (TCP Upload to peer).

When measuring the SPI4 CLK we only see 16Mhz despite configuring 32Mhz in app overlay.

Question: What can we do to configure SPI4 for 32Mhz? Will this lead to higher throughput?

Hardware:

  • nRF5340-DK
  • nRF7002-EK
    • Modifikations: CLK, MISO and MOSI pins are connected to P0.08, P0.10 and P0.09 

Software:

  • nrf connect sdk version: 2.9.1
  • sample: wifi/throughput
  • EXTRA_CONF_FILE: overlay-high-performance.conf
  • SHIELD: nrf7002ek
  • custom app.overlay:

&pinctrl {
	spi4_default: spi4_default {
		group1 {
			psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
					<NRF_PSEL(SPIM_MISO, 0, 10)>,
					<NRF_PSEL(SPIM_MOSI, 0, 9)>;
			nordic,drive-mode = <NRF_DRIVE_H0H1>;
		};
	};

	spi4_sleep: spi4_sleep {
		group1 {
			psels = <NRF_PSEL(SPIM_SCK, 0, 8)>,
					<NRF_PSEL(SPIM_MISO, 0, 10)>,
					<NRF_PSEL(SPIM_MOSI, 0, 9)>;
			low-power-enable;
		};
	};
};

&spi4 {
	max-frequency = <33000000>;
	clock-frequency = <32000000>;

	nrf70: nrf7002-spi@0 {
		spi-max-frequency = <33000000>;
	};
};

Commandline:

west build -p -b nrf5340dk/nrf5340/cpuapp -- -DSHIELD=nrf7002ek -DEXTRA_CONF_FILE=overlay-high-performance.conf

Zperf:

zperf tcp upload XXX.XXX.XXX.XXX 5001 60 1024

Related