Hi Carsoft Lai,
Thanks for your sharing.
In general, the QSPI flash can't support to execute the code and, meanwhile writing or program itself, otherwise, the code will crash.
So you can try these below two suggestions to avoid this phenomenon.
1. It needs to copy the flesSPI driver function to the other memory likes the SDRAM or RAM prior to the calling them.
2. Some QSPI (for instance ATXP032/064) support Read-While-Write capability which allows writing to the flash array at the same time as code is being fetched from a different part of the array and enables firmware updates and data logging without the need for additional data storage devices in the system, maybe you can give a try.
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------