首页 > 其他 > 详细

EWARM STM32 向量表偏移设置

时间:2014-02-26 11:00:33      阅读:674      评论:0      收藏:0      [点我收藏+]

system_stm32f2xx.c

bubuko.com,布布扣
#ifdef VECT_TAB_SRAM
  SCB->VTOR = SRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM. */
#else
  SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH. */
#endif
bubuko.com,布布扣
  extern unsigned int __vector_table;
  SCB->VTOR = (unsigned int)&__vector_table;

startup_stm32f2xx.s

bubuko.com,布布扣
        PUBLIC  __vector_table

        DATA
__vector_table
        DCD     sfe(CSTACK)
        DCD     Reset_Handler             ; Reset Handler
bubuko.com,布布扣

EWARM STM32 向量表偏移设置

原文:http://www.cnblogs.com/shangdawei/p/3567532.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!