This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Concurrently using XIP and QSPI to read back data from external flash

Dear Nordic,

I have a 4MB external flash on my board, I've successfully run the code on it by using XIP. However, I got stuck when I was trying to read back data from external flash. The following picture has the call stack trace. It's a failure of NRFX_ASSERT.

Some more details:

Using nrfx driver both in bootloader and application is not a good idea, because the driver status is stored in the different RAM area. I add a fake initialization function for QSPI to keep the peripheral status consistent. Do you have any better ideas?

Best Regards,

Eugene

Parents
  • Hi Håkon, thanks for your reply.

    You'll have to compile the QSPI driver and place it in internal flash, then link to the driver in internal flash when you compile the application in XiP. 

    In this case, we have to disable all interrupts when reading/wiring data to an external flash because we can not execute any code at that time, right? Do you have any idea how to solve this side effect?

Reply
  • Hi Håkon, thanks for your reply.

    You'll have to compile the QSPI driver and place it in internal flash, then link to the driver in internal flash when you compile the application in XiP. 

    In this case, we have to disable all interrupts when reading/wiring data to an external flash because we can not execute any code at that time, right? Do you have any idea how to solve this side effect?

Children
No Data
Related