STM32CubeH7 icon indicating copy to clipboard operation
STM32CubeH7 copied to clipboard

Bug in older SCB_DisableDCache() implementation

Open khevessy opened this issue 2 years ago • 1 comments

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

khevessy avatar Jul 11 '22 12:07 khevessy

Fixed in commit ARM-software/CMSIS_5#36bd54f796. Waiting for official tag from Arm to integrate it into STM32CubeH7 firmware.

ALABSTM avatar Jul 27 '22 10:07 ALABSTM