Exporting S32K312 MBDT Generated Code to S32 Design Studio

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

Exporting S32K312 MBDT Generated Code to S32 Design Studio

Jump to solution
83,394 Views
Berke_E
Contributor I

Hello,

I’m currently working on the S32K312 using the Model-Based Design Toolbox (MBDT) in MATLAB/Simulink. Initially, I’m trying with NXP example projects. I opened a DIO S32CT project and, after setting "Model Settings → Hardware Implementation → Hardware → Project Template" to "S32K312-Q172 S32 Config Tool" and clicking "Build, Deploy & Start," my evaluation board started working with no problem.

I then exported the example DIO project for S32 Design Studio. I created a new project by clicking "File → S32DS Application Project" and selecting my card. Next, I right-clicked my new project, chose the import option, and selected the file that I exported from Simulink. Finally, I tried several different methods to deploy my code to the evaluation board, but I was not successful. I’ve attached a few photos showing the steps I took.

Please help me resolve this issue.

Thanks and Regards,

 
 
 
 

 

0 Kudos
Reply
1 Solution
83,332 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Berke_E

I apologize for the misunderstanding! You are correct. The K3 MBDT package is a bit different when exporting. The steps you described seem all correct, but instead of creating a new project, could you try importing it? 

The full process is described in this link from the S32K3xx MBDT FAQ: Solved: Export generated projects in MBDT for s32k3XX - NXP Community.

If this still does not work, could you share the generated code once you export it from MATLAB?

Best regards,
Julián

 

View solution in original post

0 Kudos
Reply
3 Replies
83,359 Views
Berke_E
Contributor I

Hi @Julián_AragónM,

There is no block like Marius uses, nor is there a "generate s32 design studio projectInfo.xml file" option for s32k3. Probably that's why I can't import it to S32 correctly. The discussion you linked talks about S32K1, but I'm using S32K3. Maybe I can't find the way that generate xml file. If you have a chance to look at it again, I'd appreciate it.

Thanks.

 

0 Kudos
Reply
83,333 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Berke_E

I apologize for the misunderstanding! You are correct. The K3 MBDT package is a bit different when exporting. The steps you described seem all correct, but instead of creating a new project, could you try importing it? 

The full process is described in this link from the S32K3xx MBDT FAQ: Solved: Export generated projects in MBDT for s32k3XX - NXP Community.

If this still does not work, could you share the generated code once you export it from MATLAB?

Best regards,
Julián

 

0 Kudos
Reply
83,372 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @Berke_E,

Instead of creating a new project and importing the configuration, could you try the "Import project info XML to S32DS project" option? The steps to import a project from MBDT was discussed in this community post: Re: How to export S32K144 MBDT Generated Code to S32 Design Studio - NXP Community.

Hope this helps.

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2054747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EExporting%20S32K312%20MBDT%20Generated%20Code%20to%20S32%20Design%20Studio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2054747%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EI%E2%80%99m%20currently%20working%20on%20the%20%3CSTRONG%3ES32K312%3C%2FSTRONG%3E%20using%20the%20%3CSTRONG%3EModel-Based%20Design%20Toolbox%20(MBDT)%3C%2FSTRONG%3E%20in%20MATLAB%2FSimulink.%20Initially%2C%20I%E2%80%99m%20trying%20with%20NXP%20example%20projects.%20I%20opened%20a%20DIO%20S32CT%20project%20and%2C%20after%20setting%20%22Model%20Settings%20%E2%86%92%20Hardware%20Implementation%20%E2%86%92%20Hardware%20%E2%86%92%20Project%20Template%22%20to%20%22S32K312-Q172%20S32%20Config%20Tool%22%20and%20clicking%20%22Build%2C%20Deploy%20%26amp%3B%20Start%2C%22%20my%20evaluation%20board%20started%20working%20with%20no%20problem.%3C%2FP%3E%3CP%3EI%20then%20exported%20the%20example%20DIO%20project%20for%20S32%20Design%20Studio.%20I%20created%20a%20new%20project%20by%20clicking%20%22File%20%E2%86%92%20S32DS%20Application%20Project%22%20and%20selecting%20my%20card.%20Next%2C%20I%20right-clicked%20my%20new%20project%2C%20chose%20the%20import%20option%2C%20and%20selected%20the%20file%20that%20I%20exported%20from%20Simulink.%20Finally%2C%20I%20tried%20several%20different%20methods%20to%20deploy%20my%20code%20to%20the%20evaluation%20board%2C%20but%20I%20was%20not%20successful.%20I%E2%80%99ve%20attached%20a%20few%20photos%20showing%20the%20steps%20I%20took.%3C%2FP%3E%3CP%3EPlease%20help%20me%20resolve%20this%20issue.%3C%2FP%3E%3CP%3EThanks%20and%20Regards%2C%3C%2FP%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%26nbsp%3B%3C%2FDIV%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056588%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Exporting%20S32K312%20MBDT%20Generated%20Code%20to%20S32%20Design%20Studio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056588%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246060%22%20target%3D%22_blank%22%3E%40Berke_E%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EI%20apologize%20for%20the%20misunderstanding!%20You%20are%20correct.%20The%20K3%20MBDT%20package%20is%20a%20bit%20different%20when%20exporting.%20The%20steps%20you%20described%20seem%20all%20correct%2C%20but%20instead%20of%20creating%20a%20new%20project%2C%20could%20you%20try%20importing%20it%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20full%20process%20is%20described%20in%20this%20link%20from%20the%20S32K3xx%20MBDT%20FAQ%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FModel-Based-Design-Toolbox-MBDT%2FExport-generated-projects-in-MBDT-for-s32k3XX%2Fm-p%2F1405533%22%20target%3D%22_blank%22%3ESolved%3A%20Export%20generated%20projects%20in%20MBDT%20for%20s32k3XX%20-%20NXP%20Community%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EIf%20this%20still%20does%20not%20work%2C%20could%20you%20share%20the%20generated%20code%20once%20you%20export%20it%20from%20MATLAB%3F%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2056242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Exporting%20S32K312%20MBDT%20Generated%20Code%20to%20S32%20Design%20Studio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2056242%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F200831%22%20target%3D%22_blank%22%3E%40Juli%C3%A1n_Arag%C3%B3nM%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EThere%20is%20no%20block%20like%20Marius%20uses%2C%20nor%20is%20there%20a%20%22generate%20s32%20design%20studio%20projectInfo.xml%20file%22%20option%20for%20s32k3.%3C%2FSPAN%3E%3C%2FSPAN%3E%26nbsp%3BProbably%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3E%26nbsp%3Bthat's%20why%20I%20can't%20import%20it%20to%20S32%20correctly.%3C%2FSPAN%3E%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EThe%20discussion%20you%20linked%20talks%20about%20S32K1%2C%20but%20I'm%20using%20S32K3.%3C%2FSPAN%3E%3C%2FSPAN%3E%26nbsp%3BMaybe%20I%20can't%20find%20the%20way%20that%20generate%20xml%20file.%26nbsp%3B%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EIf%20you%20have%20a%20chance%20to%20look%20at%20it%20again%2C%20I'd%20appreciate%20it.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%22%3E%3CSPAN%20class%3D%22%22%3EThanks.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2054861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Exporting%20S32K312%20MBDT%20Generated%20Code%20to%20S32%20Design%20Studio%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2054861%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246060%22%20target%3D%22_blank%22%3E%40Berke_E%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EInstead%20of%20creating%20a%20new%20project%20and%20importing%20the%20configuration%2C%20could%20you%20try%20the%20%22Import%20project%20info%20XML%20to%20S32DS%20project%22%20option%3F%20The%20steps%20to%20import%20a%20project%20from%20MBDT%20was%20discussed%20in%20this%20community%20post%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FModel-Based-Design-Toolbox-MBDT%2FHow-to-export-S32K144-MBDT-Generated-Code-to-S32-Design-Studio%2Fm-p%2F1244814%22%20target%3D%22_blank%22%3ERe%3A%20How%20to%20export%20S32K144%20MBDT%20Generated%20Code%20to%20S32%20Design%20Studio%20-%20NXP%20Community%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EHope%20this%20helps.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E