stm32: Just clean dcache instead of disabling on stm32h7 dfu reboot
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
02b45c91fb
commit
0c43ae1fd4
|
@ -216,8 +216,9 @@ static void
|
|||
usb_reboot_for_dfu_bootloader(void)
|
||||
{
|
||||
irq_disable();
|
||||
SCB_DisableDCache();
|
||||
*(uint64_t*)USB_BOOT_FLAG_ADDR = USB_BOOT_FLAG;
|
||||
uint64_t *bflag = (void*)USB_BOOT_FLAG_ADDR;
|
||||
*bflag = USB_BOOT_FLAG;
|
||||
SCB_CleanDCache_by_Addr((void*)bflag, sizeof(*bflag));
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue