stm32: Fix DFU entry point on stm32f072
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e14dca0f06
commit
617f620f00
|
@ -172,6 +172,8 @@ check_usb_dfu_bootloader(void)
|
|||
return;
|
||||
*(uint64_t*)USB_BOOT_FLAG_ADDR = 0;
|
||||
uint32_t *sysbase = (uint32_t*)0x1fffc400;
|
||||
if (CONFIG_MACH_STM32F072)
|
||||
sysbase = (uint32_t*)0x1fffc800;
|
||||
asm volatile("mov sp, %0\n bx %1"
|
||||
: : "r"(sysbase[0]), "r"(sysbase[1]));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue