How to start application through application start address ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to start application through application start address ?

475 次查看
1329306846
Contributor III

Hello everyone,

     Recently I' m  learning  mpc5675k  and want to apply Bootloader . when MCU run Bootloader  and have download other application , can we start the application through  application start address ?

    For example, the applcation start address is 0x00040314 , can I  run  the application through the ways below?

    (*((void(*)())(0x00040314)))();

or   ((void(*)(void))0x00040314)(); 

1 回复

310 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, something like this could work for you:

void (*fptr)(void);
fptr = (void (*)(void))0x00040314;
fptr();

If you don't need to return, you may simply use instruction 'bl'