
Model Based Design Toolbox MPC57xx Series
Quick Start Guide
1-8
1.2.3
Setting up the Target Compilers
The target compiler for Model-Based Design Toolbox needs to be configured. Use the notation
below to setup these compiler environmental variables. Ensure a system environment variable
called
<COMPILER_STRING>_TOOL
, corresponding to the compiler(s) you have installed, is
defined to compiler path value as shown below:
S32DS_PA_TOOL = {Toolbox installation path}/tools or
{S32 Design Studio installation path}/
GHS_TOOL = {GHS installation path}/comp_201516/
DIAB_TOOL = {DIAB installation path}/diab/5.9.6.2/
Note: Paths shown are for illustration, your installation path may be different. Once
environmental variables are setup you will need to restart MATLAB for the IDE environment to
see these system variables.
In case there is no compiler installed, the NXP’s Model-Based Design Toolbox is going to
default to the internal GCC 4.9.4 compiler.
1.2.4
Setting the Path for Model-Based Design Toolbox
If the toolbox installation as Add-ons was successful, then the MATLAB will automatically
detect the NXP’s Model-Based Design Toolbox. Nonetheless, in special circumstances you
might need to run a special script to instruct the MALAB to recognize the NXP’s Model Based
Design Toolbox. This is done by changing the MATLAB Current Directory to the toolbox
installation directory (e.g.:
..\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_MPC57xx\code
)
and running the “
mbd_mpc_path
” script.