tc3: disable/capture bus errors for lifetime of bootloader

pull/772/head
Brett Nicholas 2026-03-29 20:07:27 -06:00 committed by Daniele Lacamera
parent 149db43612
commit 8ac4838b92
1 changed files with 6 additions and 0 deletions

View File

@ -308,6 +308,9 @@ void hal_init(void)
WOLFBOOT_VERSION);
#endif
#endif /* DEBUG_UART */
/* Catch bus errors due to ECC faults. Reenabled on application boot */
TC3_CAPTURE_BUS_ERRORS();
}
/* This function is called by the bootloader at a very late stage, before
@ -338,6 +341,9 @@ void hal_prepare_boot(void)
/* Undo pre-init*/
tc3tc_UnpreInit();
#endif
/* Reenable bus trap/exception masking */
TC3_ENFORCE_BUS_ERRORS();
}
#ifndef WOLFBOOT_AURIX_TC3XX_HSM