nRF5340, nRF7002, XIP, MCUboot, filesystem -> Any examples?

Hello,

I am attempting to configure the following setup to support (with an nRF5340 + nRF7002-EK)...

1. nRF7002 on SPI w/ TLS, STA, and FW patches offloaded to QSPI XIP

2. nRF5340 without any BLE support, empty netcore

3. LittleFS also on external QSPI flash

4. Storing particularly heavy libraries in QSPI XIP.

Is there a simple way to ensure that XIP application code can operate concurrently with the file system? Is partition manager helping things here or can I use the static partitions in Zephyr?

Here is my current project: github.com/.../nRF7002-XIP-Filesystem. When SB_CONFIG_WIFI_NRF70=y is enabled, I get the following error: 
ninja: error: '_sysbuild/nrf70_wifi_fw_patch_target', needed by 'dfu_application.zip', missing and no known rule to make it

If this is disabled, I am able to at least boot but, of course, cannot communicate with the nRF7002.

Thanks,

Helmut Lord

Parents Reply Children
  • I guess what I'm worried about w/ filesystem + XIP is the following situation (besides not knowing exactly how to tell the build system "hey this area is for nRF7002 firmware patch loading, this area is for XIP code, this is for littlefs"):

    - LittleFS requests an erase and yields

    - Another thread, something Wi-Fi related (if we have the libraries in XIP) at a higher priority tries to run XIP code while this erase is occurring 

    - Crash!

    I have seen some tickets w/ recommendations about what can/cannot be put into XIP but still feel uncertain about what is permitted, too.

Related