mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-01 15:52:02 +00:00
fix(core): fix jump to old bootloader
Initialize systick before jump, as the old bootloaders may not initialize systick on start and rely on systick running from boardloader or firmware. Only relevant for F4, otherwise we are jumping through reset. [no changelog]
This commit is contained in:
parent
511a4f3b93
commit
587b5e8eb8
@ -168,6 +168,10 @@ static void reboot_with_args_phase_2(uint32_t arg1, uint32_t arg2) {
|
||||
if (command == BOOT_COMMAND_NONE) {
|
||||
NVIC_SystemReset();
|
||||
} else {
|
||||
#ifndef FIXED_HW_DEINIT
|
||||
SysTick_Config(HAL_RCC_GetSysClockFreq() / 1000U);
|
||||
NVIC_SetPriority(SysTick_IRQn, 0);
|
||||
#endif
|
||||
jump_to_vectbl(BOOTLOADER_START + IMAGE_HEADER_SIZE, command);
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user