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:
parent
6b75f54e50
commit
b2178f49ec
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue