求教,在IAR 环境,在设计STM32F030 RC 的Bootloader 程序时, 跳转到App 应该程序不成功, DEBUG 时提示
Sat Dec 31, 2016 10:29:21: The stack pointer for stack 'CSTACK' (currently 0x200022B0) is outside the stack range (0x20000970 to 0x20001170)
请高上指点
以下是代码.
#define APP_START_ADDRESS 0x08008000
typedef void (*pFunction)(void);
uint32 JumpAddress;
pFunction Jump_To_Application;
void vMdw_IapJumpApp(void)
{
if (((*(__IO uint32*)APP_START_ADDRESS) & 0x2FFE0000 ) == 0x20000000)
{
MODULE_PRINT(DEBUG_INFO,("Go To Application \n"));
JumpAddress = *(__IO uint32*) (APP_START_ADDRESS + 4);
Jump_To_Application = (pFunction) JumpAddress;
/* Initialize user application's Stack Pointer */
__set_MSP(*(__IO uint32*) APP_START_ADDRESS);
/* Jump to application */
Jump_To_Application();
}
else
{
MODULE_PRINT(DEBUG_INFO,("Go To Application Fail \n"));
}
//while(1);
}
|