MBD linking files

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

MBD linking files

585 Views
abdelrhman
Contributor III

How to modify the linking file of MPC5744P kit before building an MBD simulink model ?

0 Kudos
2 Replies

580 Views
mariuslucianand
NXP Employee
NXP Employee

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.

mariuslucianand_1-1658387272808.png

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.

mariuslucianand_0-1658387228692.png

Hope this helps,

Marius

 

0 Kudos

572 Views
abdelrhman
Contributor III

thank you

0 Kudos