Skip to content

Commit 2d4b1b6

Browse files
ABOSTMnashif
authored andcommitted
soc: arm: stm32h7: implement workaround for AXI SRAM data corruption
Errata ES0392 Rev 8: 2.2.9: Reading from AXI SRAM may lead to data read corruption Workaround: Set the READ_ISS_OVERRIDE bit in the AXI_TARG7_FN_MOD register. This is applicable only to RevY (REV_ID 0x1003) Fixes #38933 Signed-off-by: Alexandre Bourdiol <[email protected]>
1 parent 82ce5c5 commit 2d4b1b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

soc/arm/st_stm32/stm32h7/soc_m7.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ static int stm32h7_init(const struct device *arg)
8989
while (LL_PWR_IsActiveFlag_VOS() == 0) {
9090
}
9191

92+
/* Errata ES0392 Rev 8:
93+
* 2.2.9: Reading from AXI SRAM may lead to data read corruption
94+
* Workaround: Set the READ_ISS_OVERRIDE bit in the AXI_TARG7_FN_MOD
95+
* register.
96+
* Applicable only to RevY (REV_ID 0x1003)
97+
*/
98+
if (LL_DBGMCU_GetRevisionID() == 0x1003) {
99+
MODIFY_REG(GPV->AXI_TARG7_FN_MOD, 0x1, 0x1);
100+
}
101+
92102
return 0;
93103
}
94104

0 commit comments

Comments
 (0)