STM32H5 ECC errors and ICACHE invalidation
Should ICACHE be invalidated when a double ECC error occurs?
Should ICACHE be invalidated when a double ECC error occurs?
Hello @PieterG, sorry for the delayed answer,
When two ECC errors occur during a read, the flash interface sets the double error detection flag ECCD in the FLASH_ECCDETR register
and when this flag is raised, an NMI is generated, and the software must invalidate the instruction cache (CACHEINV = 1) in the NMI interrupt service routine when the ECCD flag is set.
I hope that answers your question!
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.