Hi @shreya1 ,
Thank you so much for your interest in our products and for using our community.
There are some description about your issue in AN12564-Implement RWW on i.MX RT Series.
Most of Flash do not support Read While Write(RWW). You need allocate the flash write function to other memory(except currently writing flash, generally allocate to
internal SRAM), and disable interrupt to avoid any unexpected flash access until writing operation complete.

The SDK example "evkmimxrt1064_flexspi_nor_polling_transfer" moves the Flash-related operation code to run in Sram.

Wish it helps you.
If you still have question about it, please kindly let me know.
Best Regards
MayLiu