How to modify the linking file of MPC5744P kit before building an MBD simulink model ?
Hello @abdelrhman,
MBDT toolbox allows you to specify a custom linker file through the main config block. To do that, please follow the steps below:
1. In MATLAB, please type the following command: "winopen(fullfile(mbd_find_mpc_root, 'mbdtbx_mpc574x\src\linker\gcc'))" if you are using gcc compiler.
2. In the newly opened window, please add your custom linker file, following the pattern <MCU_NAME>_<target>_<any distinctive word>.ld. For example MPC5744P_flash_custom.ld.
3. Go to the Main config block and under Build Toolchian tab, please uncheck the "Default Target Memory Definitions" and select the one you have just added.
Hope this helps,
Marius
thank you