How to start application through application start address ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to start application through application start address ?

456 Views
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 Reply

291 Views
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'