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,482 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,420 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,447 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,421 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,460 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