diff options
author | BIGTREETECH <38851044+bigtreetech@users.noreply.github.com> | 2023-03-07 00:53:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 11:53:18 -0500 |
commit | b2178f49ecf7f7e4c9c7a5deb102086ea64ba41e (patch) | |
tree | d8dd142976e53dde03da49cd71ebd1d632247a73 | |
parent | 6b75f54e50139271ed76801e4551f215e693bc12 (diff) | |
download | kutter-b2178f49ecf7f7e4c9c7a5deb102086ea64ba41e.tar.gz kutter-b2178f49ecf7f7e4c9c7a5deb102086ea64ba41e.tar.xz kutter-b2178f49ecf7f7e4c9c7a5deb102086ea64ba41e.zip |
stm32h7: Restore the RCC set in the bootloader to the default value (#6092)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
-rw-r--r-- | src/stm32/stm32h7.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stm32/stm32h7.c b/src/stm32/stm32h7.c index c98e0a15..387e47dd 100644 --- a/src/stm32/stm32h7.c +++ b/src/stm32/stm32h7.c @@ -234,6 +234,12 @@ armcm_main(void) RCC->D2CCIP1R = 0x00000000; RCC->D2CCIP2R = 0x00000000; RCC->D3CCIPR = 0x00000000; + RCC->APB1LENR = 0x00000000; + RCC->APB1HENR = 0x00000000; + RCC->APB2ENR = 0x00000000; + RCC->APB3ENR = 0x00000000; + RCC->APB4ENR = 0x00000000; + SCB->VTOR = (uint32_t)VectorTable; dfu_reboot_check(); |