imxRT1176 ,if flash is to be erased, all interrupts of both cores need to be closed

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imxRT1176 ,if flash is to be erased, all interrupts of both cores need to be closed

779 次查看
xiaozezitian
Contributor I

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.

0 项奖励
回复
1 回复

732 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复