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
  • Hei Eugene,

    I was checking internally regarding your question. Your concern makes sense. You would need to be really careful when using XIP. As you mentioned, avoid calling it in an interrupt. 

    Unfortunately, executing code in XIP having quite a lot of issue.We are also investigating another issue that causing reading data from XIP provide incorrect values. We are going to release a PAN regarding this shortly. 

    For now, we would suggest to use only DMA. 

Reply
  • Hei Eugene,

    I was checking internally regarding your question. Your concern makes sense. You would need to be really careful when using XIP. As you mentioned, avoid calling it in an interrupt. 

    Unfortunately, executing code in XIP having quite a lot of issue.We are also investigating another issue that causing reading data from XIP provide incorrect values. We are going to release a PAN regarding this shortly. 

    For now, we would suggest to use only DMA. 

Children
No Data
Related