This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSPM0G3507: boot 跳转 app 实现方式

Part Number: MSPM0G3507

gcc编译器,CCS调试工具,boot跳转app实现方式,下述实现方式没有成功跳转

typedef  void (*iapfun)(void);
iapfun jump2app;

void Jump_To_App(uint32_t appxaddr)
{

	if (((*(__IO uint32_t*)appxaddr) & 0x20000000 ) == 0x20000000)
	{

	    SCB->VTOR = (volatile uint32_t) 0x8000;
		jump2app=(iapfun)*(__IO uint32_t*)(appxaddr+4);
		__set_MSP(*(__IO uint32_t*) appxaddr);
		__disable_irq();
		jump2app();
	}

}