1.option设置
app项目中设置如下。主程序加上SCB->VTOR = FLASH_BASE | 0x5000; /* Vector Table Relocation in Internal FLASH. */
FUCK!!!!
SystemInit();会把SCB->VTOR重新设置为0x8000000,注意他们的执行先后顺序,教训啊,搞 了整整一小时,回滚程序,最好不要调用SystemInit()了,因为他已经在main之前执行过了
BOOTLOADER设置如下。
1.option设置
app项目中设置如下。主程序加上SCB->VTOR = FLASH_BASE | 0x5000; /* Vector Table Relocation in Internal FLASH. */
FUCK!!!!
SystemInit();会把SCB->VTOR重新设置为0x8000000,注意他们的执行先后顺序,教训啊,搞 了整整一小时,回滚程序,最好不要调用SystemInit()了,因为他已经在main之前执行过了
BOOTLOADER设置如下。
转载于:https://www.cnblogs.com/ycpkbql/p/9107009.html