STM32F030: Fix use of vector on RAM

This commit is contained in:
NIIBE Yutaka
2016-05-31 15:12:55 +09:00
parent e02f2e71e6
commit 4889a5386b
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -17,6 +17,7 @@
#include <stdlib.h>
#include "board.h"
#define STM32F0_USE_VECTOR_ON_RAM
#include "mcu/clk_gpio_init-stm32.c"