The response has to be enabled before the Flash ECC. See description of
EDACEN field of FEDACCTRL1 register.
*/
_coreEnableEventBusExport_();
- /* Enable CPU ECC checking for ATCM (flash accesses) */
- _coreEnableFlashEcc_();
-
/* Enable response to ECC errors indicated by CPU for accesses to flash */
flashWREG->FEDACCTRL1 = 0x000A060A;
+ /* Enable CPU ECC checking for ATCM (flash accesses) */
+ _coreEnableFlashEcc_();
+
/* USER CODE BEGIN (9) */
/* USER CODE END */