weijinhui35 发表于 2013-12-12 09:11
是跳到hardfault中断了 能帮我解决下这个问题吗 怎么解决用自己写的bootloader直接跳的话就出现这个异 ...
在跳转之前先设定msp,这个跟arm7不一样,
/* Jump to user application */
JumpAddress = *(__IO uint32_t*) (APPLICATION_ADDRESS + 4);
Jump_To_Application = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
__set_MSP(*(__IO uint32_t*) APPLICATION_ADDRESS);
Jump_To_Application();
|