question about the program execution of the MPC5674F

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

question about the program execution of the MPC5674F

604 Views
youngseolee
Contributor III

hello NXP

 

recently, i develop a firmware of MPC5674F, and have a question about the program execution.

 

i wanna execute a dummy program code in the SRAM using only address infomation
(main program code is stored in the flash memory as internal flash mode).

 

i think this feature can implement using the BL command (assembly language), but cannot use the BL command.
(because the dummy program code have no a label) 

 

how to solve this problem?

 

i expect a reply to this.

 

thanks.

Labels (1)
0 Kudos
Reply
1 Reply

479 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

#define ADDRESS 0x00000100L

 

void (*f_ptr)(void);   //create pointer to function

f_ptr = (void (*)(void))ADDRESS;      //load the address to pointer

f_ptr();    //and call the function

Regards,

Lukas

0 Kudos
Reply