stm32/powerctrl: Fix machine.bootloader() for L0 MCUs.
This commit is contained in:
parent
8fc00928ea
commit
06661890de
@ -76,7 +76,7 @@ void powerctrl_check_enter_bootloader(void) {
|
||||
if ((bl_addr & 0xfff) == 0 && (RCC->RCC_SR & RCC_SR_SFTRSTF)) {
|
||||
// Reset by NVIC_SystemReset with bootloader data set -> branch to bootloader
|
||||
RCC->RCC_SR = RCC_SR_RMVF;
|
||||
#if defined(STM32F0) || defined(STM32F4) || defined(STM32L4) || defined(STM32WB)
|
||||
#if defined(STM32F0) || defined(STM32F4) || defined(STM32L0) || defined(STM32L4) || defined(STM32WB)
|
||||
__HAL_SYSCFG_REMAPMEMORY_SYSTEMFLASH();
|
||||
#endif
|
||||
uint32_t r0 = BL_STATE[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user