S32DS project folder structure

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

S32DS project folder structure

Jump to solution
1,377 Views
JCastro
Contributor II

Hello, I'm trying to generate a S32DS project with a custom folder project structure, I generate the project from the hello world example for the S32K311 MCU. I want the following structure:

 

- app/
- libs/
- board/
    - S32K311/
        - generate/
        - S32K311.mex
        - rtd/
        - ...

 

 The project builds successfully, but when I update the generated code (using the S32K311.mex) the RTD folder appears in the root of the project and this include -> "../RTD/include".

Is there any way to avoid this undesired behavior?

 

 

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

Hi @JCastro,

Unfortunately, it is not possible to modify where the code is generated, but you can export the source files:

"Right click > Export... > S32 Configuration Tools > Export Source Files"

Julin_AragnM_0-1713891719947.png

You could also add a script to run as pre/post-build steps, so the desired folders are generated:

Julin_AragnM_2-1713891912319.png

Best regards,
Julián

View solution in original post

0 Kudos
Reply
2 Replies
1,353 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @JCastro,

Unfortunately, it is not possible to modify where the code is generated, but you can export the source files:

"Right click > Export... > S32 Configuration Tools > Export Source Files"

Julin_AragnM_0-1713891719947.png

You could also add a script to run as pre/post-build steps, so the desired folders are generated:

Julin_AragnM_2-1713891912319.png

Best regards,
Julián

0 Kudos
Reply
1,329 Views
JCastro
Contributor II
Good to know, thanks for the answer Julián.
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1852540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32DS%20project%20folder%20structure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852540%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%20I'm%20trying%20to%20generate%20a%20S32DS%20project%20with%20a%20custom%20folder%20project%20structure%2C%20I%20generate%20the%20project%20from%20the%20hello%20world%20example%20for%20the%20S32K311%20MCU.%20I%20want%20the%20following%20structure%3A%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-c%22%3E%3CCODE%3E-%20app%2F%0A-%20libs%2F%0A-%20board%2F%0A%20%20%20%20-%20S32K311%2F%0A%20%20%20%20%20%20%20%20-%20generate%2F%0A%20%20%20%20%20%20%20%20-%20S32K311.mex%0A%20%20%20%20%20%20%20%20-%20rtd%2F%0A%20%20%20%20%20%20%20%20-%20...%3C%2FCODE%3E%3C%2FPRE%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3BThe%20project%20builds%20successfully%2C%20but%20when%20I%20update%20the%20generated%20code%20(using%20the%20S32K311.mex)%20the%20RTD%20folder%20appears%20in%20the%20root%20of%20the%20project%20and%20this%20include%20-%26gt%3B%20%22%3CEM%3E..%2FRTD%2Finclude%3C%2FEM%3E%22.%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20avoid%20this%20undesired%20behavior%3F%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853097%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32DS%20project%20folder%20structure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853097%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGood%20to%20know%2C%20thanks%20for%20the%20answer%20Juli%C3%A1n.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1852704%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20S32DS%20project%20folder%20structure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852704%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%2F231381%22%20target%3D%22_blank%22%3E%40JCastro%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3EUnfortunately%2C%20it%20is%20not%20possible%20to%20modify%20where%20the%20code%20is%20generated%2C%20but%20you%20can%20export%20the%20source%20files%3A%3C%2FP%3E%0A%3CP%3E%22%3CEM%3ERight%20click%20%26gt%3B%20Export...%20%26gt%3B%20S32%20Configuration%20Tools%20%26gt%3B%20Export%20Source%20Files%22%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_0-1713891719947.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_0-1713891719947.png%22%20style%3D%22width%3A%20376px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275328i1351DAF0088A44D4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_0-1713891719947.png%22%20alt%3D%22Julin_AragnM_0-1713891719947.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20could%20also%20add%20a%20script%20to%20run%20as%20pre%2Fpost-build%20steps%2C%20so%20the%20desired%20folders%20are%20generated%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Julin_AragnM_2-1713891912319.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Julin_AragnM_2-1713891912319.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F275331i64D6789F22EB0422%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Julin_AragnM_2-1713891912319.png%22%20alt%3D%22Julin_AragnM_2-1713891912319.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EBest%20regards%2C%3CBR%20%2F%3EJuli%C3%A1n%3C%2FP%3E%3C%2FLINGO-BODY%3E