IDE:S32DS for Power 2.1
MCU:MPC5748G
I creat a MPC5748G Multi-Core project in the S32DS for Power;
Creat a testLINFlexD_2() function in the core0 project , but i want call this function in core1 project ,how to do this?
haiyang
Hi @oceansea
these are independent projects, so core1 project doesn't know details about core0 project. If you want to share some functions, one solution is to create a table of pointers in core0 project which needs to be forced to certain constant address. Then you can just read the table from core1 and call shared function via pointer to function.
Obviously, an address of shared function can be changed after each update of the application, so you can't simply use absolute addresses for calling via pointer.
Regards,
Lukas