Matlab MBDT Compiler Error

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

Matlab MBDT Compiler Error

859 Views
CosminIon
Contributor II

Hello there,

I'm trying to build a Simulink model configured for an NXP S32K344 MCU. It contains a protected model with the same configuration. When trying to build, I'm getting the following error: 

CosminIon_0-1690219422023.png

I checked the folder where the NXP MBDT add-on is located and I can find the exe's referenced above in there, under tools\build_tools\gcc_v10.2\gcc-10.2-arm32-eabi\bin, however Matlab can't seem to find them? I've also tried adding that path to setenv, but that doesn't result in any change in behaviour. What I find strangest is that the action of creating a protected model works just fine, and I'd have expected that to use the same compiler?

Any suggestions for how to fix this?

Many thanks for the help!

Cosmin

 

 

0 Kudos
Reply
2 Replies

785 Views
georgevictor
NXP Employee
NXP Employee

Hi, @CosminIon,

Sorry for the delayed response.

To replicate your setup on my end and determine the root cause of the compiling error, I will need more information about the following items:

  1. What is the MATLAB version that you are using for your application?
  2.  Which S32K3xx toolbox version do you use?
  3. In order to create a protected model you can select different options from the Create Protected Model menu. Could you show the options that you have used to replicate them and create a protected model on my side?
  4. What is the structure of the top and referenced model? Do you use any of our S32K3xx blocks inside them? If you could share a copy of the top and protected model or a screenshot of them it would be helpful for me to replicate the issue on my side.

Have a nice day,

Victor

0 Kudos
Reply

700 Views
CosminIon
Contributor II

Hi Victor,

Apologies for the (very) late reply. Here are the details you asked for:

  1. Matlab R2020a
  2. Version 1.2 of the S32K3xx toolbox
  3. These are the key settings for model protection: CosminIon_0-1697212529537.png
  4. I'm afraid I can't share the model. There are, no S32K3xx blocks anywhere. The protected model is meant to be shipped to a customer and the unprotected "wrapper" has no logic besides it and the inports and outports.

In the meanwhile, I've managed to figure out the cause of those error messages: the path of the arm-none-eabi toolchain needed to be added to the PATH environment variable. Now I'm able to successfully generate code from the unprotected wrapper and it correctly copies the library and header files from the .slxp file.

This works as long as I'm using the same computer for protecting the model and for code-generating from the wrapper. If I try to code-generate from a different computer (which is the main way this is going to be used), I get these types of errors: 

CosminIon_1-1697212919042.png

I suspect this is caused by the folder path to those files having a space in it in "Matlab Add-Ons" (note how it quotes a path starting with Add-Ons, which is only part of that folder's name). But that folder was automatically created when I installed the toolbox, so I don't know what I can about it.

Is this something you've encountered before?

Many thanks once again for your help!

Cosmin

 

0 Kudos
Reply