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:
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
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:
Have a nice day,
Victor
Hi Victor,
Apologies for the (very) late reply. Here are the details you asked for:
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:
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