bsp/tms570: TMS570LC4x Errata DEVICE#60

Update #4982.
This commit is contained in:
Tyler Miller
2023-12-21 15:16:48 +01:00
committed by Sebastian Huber
parent 75dd824079
commit 2bbacdb557

View File

@@ -9,6 +9,7 @@
*/ */
/* /*
* Copyright (C) 2022 Airbus U.S. Space & Defense, Inc
* Copyright (C) 2016 Pavel Pisa <pisa@cmp.felk.cvut.cz> * Copyright (C) 2016 Pavel Pisa <pisa@cmp.felk.cvut.cz>
* *
* Czech Technical University in Prague * Czech Technical University in Prague
@@ -68,8 +69,12 @@ void tms570_esm_init( void )
/** - Reset error pin */ /** - Reset error pin */
if (TMS570_ESM.EPSR == 0U) { if (TMS570_ESM.EPSR == 0U) {
TMS570_ESM.EKR = 0x00000005U; /*
} else { * Per TMS570LC4x Errata DEVICE#60, the error pin cannot be cleared with a
* normal EKR write upon system reset. Put in diagnostic followed by
* normal mode instead. This sequence works also on other chip variants.
*/
TMS570_ESM.EKR = 0x0000000AU;
TMS570_ESM.EKR = 0x00000000U; TMS570_ESM.EKR = 0x00000000U;
} }