在0xa000中能看到U盘导入的bin文件,执行完跳转程序后无反应
SCB->VTOR = APP_START_ADDR;
ExceuteApplication();
__asm void ExceuteApplication(void)
{
/* Load main stack pointer with application stack pointer initial value,
stored at first location of application area */
ldr r0, =0x00A000
ldr r0, [r0]
mov sp, r0
/* Load program counter with application reset vector address, located at
second word of application area. */
ldr r0, =0x00A004
ldr r0, [r0]
BX r0
}
另:
#define APP_START_ADDR 0x00A000
#define APP_END_ADDR 0x80000
/*
* Define the flash sectors used by the application
*/
#define APP_START_SECTOR 10
#define APP_END_SECTOR 29 // LPC1788 512K FlashÉÈÇø
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>