[nRF5340] XiP on nRF5340 with SPI interfaced external flash

Development Environment :
SDK version: nRF Connect SDK v3.0.0
Toolchain version: nRF Connect SDK Toolchain v3.0.0
Development environment: Ubuntu 22.04
Development tool: Visual Studio Code
Development board: nrf5340dk_nrf5340_cpuapp_ns
Example refference path: ~/ncs/v3.0.0/zephyr/samples/application_development/code_relocation_nocopy/

Hello, 

This post is for clarification purpose on XiP implementation.

We tested the XiP sample code found on above example path, it worked without any issues with external flash interfaced over QSPI.

But, out board has a external flash interfaced over SPI. So, as per intstrunctions provided here. we made the changes for SPI but now we are not able to flash the device. Getting an error.

Device error: Could not set state, buffer busy

When looking for a solution we came across this post . It says that XiP is not supported over SPI interface. 

So, can you clarify if XiP is possible or not with SPI flash ? and if yes then what are we doing wrong.

Attaching a sample code with changes here for refference.

1641.code_relocation_nocopy_nrf7002.zip

Thanks.

Parents Reply Children
No Data
Related