STMicroelectronics / STM32CubeH7

STM32Cube MCU Full Package for the STM32H7 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
https://www.st.com/en/embedded-software/stm32cubeh7.html
Other
490 stars 302 forks source link

Bug in older SCB_DisableDCache() implementation #226

Closed khevessy closed 1 year ago

khevessy commented 2 years ago

Describe the set-up

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

ALABSTM commented 2 years ago

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