Even simpler jump to bootloader
parent
75082e8bae
commit
4e333e9ff6
|
|
@ -91,13 +91,3 @@ void keyboard_post_init_kb(void) {
|
||||||
|
|
||||||
matrix_init_user();
|
matrix_init_user();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Instead of doing some magic to get to the bootloader, just press ESC and reset */
|
|
||||||
void bootloader_jump(void) {
|
|
||||||
/* Disable interrupts as changing the vector table can mess them up */
|
|
||||||
__disable_irq();
|
|
||||||
/* Move the vector table back to the bootloader */
|
|
||||||
SCB->VTOR = 0x08000000;
|
|
||||||
/* Reset the system into the bootloader */
|
|
||||||
NVIC_SystemReset();
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,9 @@
|
||||||
#define BOARD_STM32L151_ANNE_PRO
|
#define BOARD_STM32L151_ANNE_PRO
|
||||||
#define BOARD_NAME "STM32L151 Anne Pro"
|
#define BOARD_NAME "STM32L151 Anne Pro"
|
||||||
|
|
||||||
|
/* Address of the bootloader */
|
||||||
|
#define STM32_BOOTLOADER_ADDRESS 0x08000000
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Board oscillators-related settings.
|
* Board oscillators-related settings.
|
||||||
* NOTE: HSE not fitted.
|
* NOTE: HSE not fitted.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue