STM32F030: Fix use of vector on RAM
This commit is contained in:
@@ -231,7 +231,7 @@ clock_init (void)
|
||||
RCC->APB2RSTR = RCC_APB2RSTR_SYSCFGRST;
|
||||
RCC->APB2RSTR = 0;
|
||||
|
||||
# if defined(REQUIRE_CLOCK_GPIO_SETTING_IN_SYS)
|
||||
# if defined(STM32F0_USE_VECTOR_ON_RAM)
|
||||
/* Use vectors on RAM */
|
||||
SYSCFG->CFGR1 = (SYSCFG->CFGR1 & ~SYSCFG_CFGR1_MEM_MODE) | 3;
|
||||
# endif
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdlib.h>
|
||||
#include "board.h"
|
||||
|
||||
#define STM32F0_USE_VECTOR_ON_RAM
|
||||
#include "mcu/clk_gpio_init-stm32.c"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user