From 75fa74313c178034b80f7c1e3ad0a7b55c34a3d6 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 4 Oct 2018 10:14:16 -0400 Subject: stm32f1: Add support for building with bootloader support Signed-off-by: Kevin O'Connor --- src/stm32f1/main.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stm32f1/main.c') diff --git a/src/stm32f1/main.c b/src/stm32f1/main.c index c6839c36..b91d4dd0 100644 --- a/src/stm32f1/main.c +++ b/src/stm32f1/main.c @@ -135,6 +135,8 @@ int main(void) { SystemInit(); + SCB->VTOR += CONFIG_FLASH_START; + LL_Init1msTick(SystemCoreClock); clock_config(); adc_config(); -- cgit v1.2.3-70-g09d2