We have made some progresses. The SW team have started a new S32K322 empty S32DS project and merge the S32K344 configuration file .mex generated by MBDT. It seems to compile.
I have changed the processor in MBDT and try to change the Configuration Project Template by selecting their new configuration file. But the code does not compile.
When I start a new MBDT project with a S32K322 with only GPIO blocs, it works. But when I add a Freemaster configuration blocs, it does not compile with the following error:
### Starting build procedure for: S32K322_Test ### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Users\xxxxxx\OneDrive - xxxxxx x\Documents\MATLAB\Copy_of_NXP_MBDT2_GD3000\S32K322_Test\S32K322_Test_ert_rtw ### Invoking Target Language Compiler on S32K322_Test.rtw ### Using System Target File: C:\Program Files\MATLAB\R2024b\rtw\c\ert\ert.tlc ### Loading TLC function libraries ....... ### Generating TLC interface API for custom data . ### Initial pass through model to cache user defined code Failure in TbxParams.getRTDHeader(line 0) : Hardware type (S32K322-Q172) not supported. ### Build procedure for S32K322_Test aborted due to an error.
Build Summary
0 of 1 models built (1 models already up to date) Build duration: 0h 0m 24.826s
Error: File: C:\Users\xxxxxx\AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K3\mbdtbx_s32k3\+mbd_s32k3\+common\blocks\fm\fm_config.tlc Line: 24 Column: 19 Unable to find connection_type within the scope
Component:Simulink | Category:Block diagram error
When I change the processor to S32K312, it works.
I think the problem comes from the Freemaster driver which does include the S32K322 natively. But NXP told me it was possible to communicate with the S32K322 with Freemaster.
Do you have the steps to do, to compile a MBDT S32K322 project with Freemaster communication?