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.
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