By default the DK-S7G2 brings the QSPI up in XIP mode. When you open the QSPI driver it takes it out of XIP mode and when you close the driver it places it back into XIP mode. You can see this behavior in the open and close functions in r_qspi.c when bsp_qspi_xip_exit() and bsp_qspi_xip_enter() are called. To see this in action place a breakpoint on either of these functions and call the open or close.
↧