stm32h7: Restore the RCC set in the bootloader to the default value (#6092)

Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
BIGTREETECH 2023-03-07 00:53:18 +08:00 committed by GitHub
parent 6b75f54e50
commit b2178f49ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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();