File transfer from SD Card to WiFi using nRF5340 and nRF7002 - recommended signal wiring

The question is not only "software" related, it is also debating the hardware topology:

Part of a project's goal is to transfer files stored in a uSD Card to an external client via WiFi (all with Zephyr). The controller is a nRF5340, and the WiFi module is nRF7002.

The discussion here is what would be the most efficient signal connection, considering that:

- Both peripherals (SDCard and WiFi companion) can communicate to the CPU either via regular SPI or via QSPI.

- QSPI is much faster than SPI, so an immediate comment is that connecting the WiFi module via regular SPI will limit the speed.

- But if we have both in the same bus, I assume that DMA is impossible. So a buffer inside the CPU would be needed.

So what is the best bet?

SDCard -> QSPI -> CPU buffer -> QSPI -> nRF7002 (same QSPI bus with different CS signal)

SDCard -> SPI -> CPU DMA -> QSPI -> nRF7002

SDCard -> QSPI -> CPU DMA -> SPI -> nRF7002

That is, assuming that Zephyr and the IC will actually allow for such direct DMA, and that it is possible to transfer content from SD to WiFi just like that (most likely the Zephyr TCP stack will have to manage the packages first).

Cheers

Bruno

Parents Reply Children
Related