S32DS import MBD S32K144 example can't build project!

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

S32DS import MBD S32K144 example can't build project!

1,504 Views
Lakyle
Contributor I

Need for help.

Hi I install S32K144 MBD toolbox on my computer, and run the example of mbd_s32k_examples/S32K14x MCU Simulink Models/Analog/

It can be done well with Code Generation and download automatically into the EVB, I can see the LED flash and Potentiometer Value can also display in FreeMASTER .

But when I want to debug using S32DS IDE this code. And it can not Build The project.

Could someone  help me to solve the problem?

Thank you very much.

 

 

0 Kudos
Reply
1 Reply

782 Views
SorinIBancila
NXP Employee
NXP Employee

Hello,

If you imported the Simulink project into the S32DS, please make sure you don't have the S32K1xx toolbox installed in a path that contains spaces. If so, reinstall the S32K1xx toolbox in a short path that do not have any white spaces.

Secondly, if you want to debug the application, you can do that without importing the project into the S32DS> Open a S32K1xx example project from the SDK (you need to install the S32K1xx SDK into the S32DS). Make sure the example project uses the same board as you.


Then, expand the debug button and click on Debug Configurations:

SorinIBancila_0-1769079417502.png

 

Then select a debug configuration (depending also on the debug probe you have). In the MAIN tab, you have an edit box where you can select the path to an elf file. Select the ELF generated by the Simulink application, then click debug. The perspective should switch to the DEBUG perspective and you can debug the application from here.

SorinIBancila_1-1769079561689.png

 

Best regards,

Sorin Bancila

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2269352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32DS%20import%20MBD%20S32K144%20example%20%20can't%20build%20project!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2269352%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ENeed%20for%20help.%3C%2FP%3E%3CP%3EHi%20I%20install%20S32K144%20MBD%20toolbox%20on%20my%20computer%2C%20and%20run%20the%20example%20of%26nbsp%3Bmbd_s32k_examples%2FS32K14x%20MCU%20Simulink%20Models%2FAnalog%2F%3C%2FP%3E%3CP%3EIt%20can%20be%20done%20well%20with%20Code%20Generation%20and%20download%20automatically%20into%20the%20EVB%2C%20I%20can%20see%20the%20LED%20flash%20and%20%3CSTRONG%3EPotentiometer%20Value%3C%2FSTRONG%3E%20can%20also%20display%20in%20FreeMASTER%20.%3C%2FP%3E%3CP%3EBut%20when%20I%20want%20to%20debug%20using%20S32DS%20IDE%20this%20code.%20And%20it%20can%20not%20Build%20The%20project.%3C%2FP%3E%3CP%3ECould%20someone%26nbsp%3B%20help%20me%20to%20solve%20the%20problem%3F%3C%2FP%3E%3CP%3EThank%20you%20very%20much.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2298227%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20import%20MBD%20S32K144%20example%20%20can't%20build%20project!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2298227%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EIf%20you%20imported%20the%20Simulink%20project%20into%20the%20S32DS%2C%20please%20make%20sure%20you%20don't%20have%20the%20S32K1xx%20toolbox%20installed%20in%20a%20path%20that%20contains%20spaces.%20If%20so%2C%20reinstall%20the%20S32K1xx%20toolbox%20in%20a%20short%20path%20that%20do%20not%20have%20any%20white%20spaces.%3C%2FP%3E%0A%3CP%3ESecondly%2C%20if%20you%20want%20to%20debug%20the%20application%2C%20you%20can%20do%20that%20without%20importing%20the%20project%20into%20the%20S32DS%26gt%3B%20Open%20a%20S32K1xx%20example%20project%20from%20the%20SDK%20(you%20need%20to%20install%20the%20S32K1xx%20SDK%20into%20the%20S32DS).%20Make%20sure%20the%20example%20project%20uses%20the%20same%20board%20as%20you.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThen%2C%20expand%20the%20debug%20button%20and%20click%20on%20Debug%20Configurations%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22SorinIBancila_0-1769079417502.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SorinIBancila_0-1769079417502.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373915i0E6C6F15D3EA10FE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22SorinIBancila_0-1769079417502.png%22%20alt%3D%22SorinIBancila_0-1769079417502.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThen%20select%20a%20debug%20configuration%20(depending%20also%20on%20the%20debug%20probe%20you%20have).%20In%20the%20MAIN%20tab%2C%20you%20have%20an%20edit%20box%20where%20you%20can%20select%20the%20path%20to%20an%20elf%20file.%20Select%20the%20ELF%20generated%20by%20the%20Simulink%20application%2C%20then%20click%20debug.%20The%20perspective%20should%20switch%20to%20the%20DEBUG%20perspective%20and%20you%20can%20debug%20the%20application%20from%20here.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22SorinIBancila_1-1769079561689.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22SorinIBancila_1-1769079561689.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F373917i4ED68F75FE6F253B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22SorinIBancila_1-1769079561689.png%22%20alt%3D%22SorinIBancila_1-1769079561689.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3ESorin%20Bancila%3C%2FP%3E%3C%2FLINGO-BODY%3E