External mode example wouldn't compile after update from MBDT 1.0 to 1.1

Showing results for 
Search instead for 
Did you mean: 

External mode example wouldn't compile after update from MBDT 1.0 to 1.1

Contributor II

Hey, I've updated the Model based design toolbox and I can no longer run the external mode example that comes with the system. due to a compilation error. I've attached the file for the errors. 

0 Kudos
1 Reply

NXP Employee
NXP Employee

Hi @kamalwolly

From the attached file, it seems that the project tries to use both S32K344 and S32K312 files during compilation, hence the redeclaration errors that are present in the text. I notice that you are trying to build the s32k312_extmode_s32ct model inside the s32k344_simple_s32ct folder. Considering these, my guess is that some artifacts from a previous S32K344 model build are still present and interfering with the files generated by the current model, which if configured for the S32K312 processor. In this case, could you please try and remove the generated folders and build the model again? The generated files include the modelName_ert_rtw, modelNameConfig and slprj folders, the executables (modelName.elf, modelName.bin) and the Simulink Cache file (modelName.slxc).

As a recommendation, you could also navigate directly to the specific folder of the model, I have attached the path to it in s32k312_extmode_simple_s32ct.png, and build it from there. By following this approach, and building models in the folders they are stored, you could avoid this type of issues.

Hope this helps,



0 Kudos