I installed model based design toolbox 3.1.0 but that didn't installed any compiler. So I installed it by myself but I am getting a hard time in setting it up which is explained on page 9 of the Quick start guide of "Model-Based Design Toolbox MPC57xx Ser

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

I installed model based design toolbox 3.1.0 but that didn't installed any compiler. So I installed it by myself but I am getting a hard time in setting it up which is explained on page 9 of the Quick start guide of "Model-Based Design Toolbox MPC57xx Ser

994 Views
raman_nain
Contributor I

I installed model-based design toolbox 3.1.0 but that didn't installed any compiler. So I installed it by myself but I am getting a hard time setting it up which is explained on page 9 of the Quickstart guide of the "Model-Based Design Toolbox MPC57xx Series" document. Do I have to write that code in the matlab window to setup the environment variable? If that's the case that I am getting operator error while writing that in the matlab command window.

0 Kudos
3 Replies

888 Views
mariuslucianand
NXP Employee
NXP Employee

Hello raman.nain@aikar.io‌,

The MBDT for MPC57xx comes already with a gcc compiler in the pack. When you try to generate code and build any model, it will check if the compiler exists and if not, it will automatically use the one from the pack. You don't need to add any path for it. You can find it under src\tools\S32DS\build_tools

Have you tried building any model and failed? Can you attach the log file to see exactly what is happening there?

Best Regards,

Marius

0 Kudos

888 Views
raman_nain
Contributor I

Hello mariuslucianandrei‌,

Thank you for your reply. I am able to build the model.

My question is, Is gcc compiler and S32_DS_PA_Tool the same?

If not, then I have been trying to provide the path for the S32_DS_PA_Tool, which I have installed my PC, but don't know how to do that. I went through the process defined on the page 9 but that content doesn't describe the process clearly.

With best regards,

Raman Nain 

0 Kudos

888 Views
mariuslucianand
NXP Employee
NXP Employee

Hello raman.nain@aikar.io‌,

The S32 Design Studio compiler is the same as gcc and the path variable is S32DS_PA_TOOL. In order to build using this compiler, you have two options:

1. you do nothing related with the S32DS_PA_TOOL and our toolbox will add the variable in  Matlab path every time you open Matlab and build the first model. It will show the following message:

pastedImage_3.png

2. If you want to use the compiler from another location, you go to Windows Path and put the following Variable S32DS_PA_TOOL to the location where the compiler is.

pastedImage_1.png

and it is S32DS_PA_TOOL not S32_DS_PA_TOOL

Hope this helps,

Marius