When both cores are used, M7 is used as the main core, M4 is used as the slave core, and M4 uses flexspi to erase and write to the norflash. At this time, if the interrupt of M7 core or M4 core is not closed, it will cause the MCU to restart. Therefore, if flash is to be erased, all interrupts of both cores need to be closed. Is there a method to enable erasing of norflash without the need to close interrupts.
Hi @xiaozezitian,
I'm afraid this is not possible. Memory accesses are critical tasks that should be done without CPU interruptions, since stopping the process midway could corrupt memory or as you mention, hard fault the MPU.
Sorry for the inconvenience this may cause.
BR,
Edwin.