提交 c65fc024 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #730 from TanekLiang/learn

[bsp] correct stm32f4xx flash vector table base location
...@@ -143,7 +143,7 @@ void rt_hw_board_init() ...@@ -143,7 +143,7 @@ void rt_hw_board_init()
SCB->VTOR = (0x10000000 & NVIC_VTOR_MASK); SCB->VTOR = (0x10000000 & NVIC_VTOR_MASK);
#else /* VECT_TAB_FLASH */ #else /* VECT_TAB_FLASH */
/* Set the Vector Table base location at 0x00000000 */ /* Set the Vector Table base location at 0x00000000 */
SCB->VTOR = (0x00000000 & NVIC_VTOR_MASK); SCB->VTOR = (0x08000000 & NVIC_VTOR_MASK);
#endif #endif
HAL_Init(); HAL_Init();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册