2016-09-15 02:55 PM
Hi.
I would like to enable parity error detection for SRAM in STM32F303. I know that this is done through programming option bytes.But I don't know, how can I actually detect if parity error has occurred. If it happens, then SRAM_PEF flag in SYCFG->CFGR2 register is set. This one could be connect to TIM1 Break input interrupt, if SRAM_PARITY_LOCK in the same register is set. Does that mean, that TIM1 interrupt will occur? Or is there any other way how to detect parity error (without polling for the SRAM_PEF flag by software)?Thank you2016-09-16 01:24 AM
From Embedded SRAM / Parity check chapter of RM0316:
The parity bits are computed on data and address and stored when writing into the SRAM.
Then, they are automatically checked when reading. If one bit fails, an NMI is generated if
the SRAM parity check is enabled.
Thus, the easiest way to detect SRAM parity error is in the NMI ISR. JW
2016-09-16 10:04 AM