Skip to content

Commit dfa64a8

Browse files
committed
tc3: disable/capture bus errors for lifetime of bootloader
1 parent 232b3bf commit dfa64a8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

hal/aurix_tc3xx.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ void hal_init(void)
308308
WOLFBOOT_VERSION);
309309
#endif
310310
#endif /* DEBUG_UART */
311+
312+
/* Catch bus errors due to ECC faults. Reenabled on application boot */
313+
TC3_CAPTURE_BUS_ERRORS();
311314
}
312315

313316
/* This function is called by the bootloader at a very late stage, before
@@ -338,6 +341,9 @@ void hal_prepare_boot(void)
338341
/* Undo pre-init*/
339342
tc3tc_UnpreInit();
340343
#endif
344+
345+
/* Reenable bus trap/exception masking */
346+
TC3_ENFORCE_BUS_ERRORS();
341347
}
342348

343349
#ifndef WOLFBOOT_AURIX_TC3XX_HSM

0 commit comments

Comments
 (0)