新手入门
- 积分
- 16
- 金钱
- 16
- 注册时间
- 2016-7-7
- 在线时间
- 4 小时
|
在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ÉÈÇø
|
-
需升级的APP程序
|