STM32CubeH7
STM32CubeH7 copied to clipboard
Bug in older SCB_DisableDCache() implementation
Describe the set-up
- Issue exhibited on our custom board with STM32H735 MCU
- IDE version: STM32CubeIDE v1.10.0 IDE
Describe the bug
There was a buggy implementation of SCB_DisableDCache()
function in the CMSIS driver package. It was repaired few days ago in this commit. I've encountered this issue: when the function SCB_DisableDCache()
is called, it may sometimes result in an endless loop with ending clause at this line, due to some cache inconsistency.
How To Reproduce
Calling SCB_DisableDCache()
function before jumping to bootloader caused this issue. MCU enters endless loop. When I tried to use the function copied from here, it worked as expected.
Additional context Link to relevant question from the ST's forum.
Screenshots N/A
Fixed in commit ARM-software/CMSIS_5#36bd54f796. Waiting for official tag from Arm to integrate it into STM32CubeH7 firmware.