S32DS is a mess

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

S32DS is a mess

1,063 Views
ArkAndyFraser
Contributor III

I have been using S32 DesignStudio 3.4 for quite some time for working with the S32K144 and find creating a new project, configuring the device and using the SDK so intuitive. 

I decided to try the latest version of DesignStudio 3.6.4 and notice that there does not appear to be an SDK anymore but instead real-time drivers. Also, I create a new project from example and choose a simple Dio example and straight away, it will not build because a number of files are missing. Clicking on the .mex file opens the device configuration and most modules seem to be in error:

ArkAndyFraser_0-1764094348174.png

Why does this not compile without errors "out of the box" ?!

I then by accident found that you could right click on the error in the Problems window and choose to 'Add the SDK component' which then removes all the errors and the code builds

How is that intuitive !?

Sorry for the rant but it feels the design tools are becoming less intuitive over time.

Andy

 

0 Kudos
Reply
3 Replies

1,030 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @ArkAndyFraser 

These errors occur because some required files have not been generated by S32 ConfigTools. To resolve this:

  • In S32 Design Studio, open the Project Explorer view and select your current project.
  • From the S32 Configuration Tool menu, choose the desired configuration tool (e.g., Pins, Clocks, Peripherals, etc.).
  • Apply any desired changes
  • Click S32 Configuration Tool → Update Code to regenerate the code.

Additional details for each example project are provided in the description.txt file included with it.

 

BR, VaneB

0 Kudos
Reply

987 Views
ArkAndyFraser
Contributor III

@VaneB 

Okay, so I created a new Dio project from example. Selected the project in the project explorer view. In the Config Tools menu, I clicked Update Code. It showed "No Change" for all of the source files. I hit Okay then build the project and get a number of errors including:

  • ../src/main.c:26:10: fatal error: Mcu.h: No such file or directory
  • C:/NXP/S32DS.3.6.4/S32DS/software/PlatformSDK_S32K1_S32M24/RTD/BaseNXP_TS_T40D2M30I0R0/include/Mcal.h:61:10: fatal error: DeviceDefinition.h: No such file or directory

It is interesting that this time, if I open the Peripherals view, I don't see errors against any of the modules like I did the first time.

ArkAndyFraser_0-1764149208247.png

However, why does it not build?

Andy

Tags (1)
0 Kudos
Reply

968 Views
VaneB
NXP TechSupport
NXP TechSupport

Hi @ArkAndyFraser 

Could you please delete the project (make sure to select the option Delete project contents on disk) and then recreate the S32DS project using an example? You can follow the steps in the guide HOWTO: S32 Design Studio - Create a New S32DS Project from Example, and then apply the previously shared steps.

Please let me know if the issue persists.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2248556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ES32DS%20is%20a%20mess%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20been%20using%20S32%20DesignStudio%203.4%20for%20quite%20some%20time%20for%20working%20with%20the%20S32K144%20and%20find%20creating%20a%20new%20project%2C%20configuring%20the%20device%20and%20using%20the%20SDK%20so%20intuitive.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20decided%20to%20try%20the%20latest%20version%20of%20DesignStudio%203.6.4%20and%20notice%20that%20there%20does%20not%20appear%20to%20be%20an%20SDK%20anymore%20but%20instead%20real-time%20drivers.%20Also%2C%20I%20create%20a%20new%20project%20from%20example%20and%20choose%20a%20simple%20Dio%20example%20and%20straight%20away%2C%20it%20will%20not%20build%20because%20a%20number%20of%20files%20are%20missing.%20Clicking%20on%20the%20.mex%20file%20opens%20the%20device%20configuration%20and%20most%20modules%20seem%20to%20be%20in%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ArkAndyFraser_0-1764094348174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ArkAndyFraser_0-1764094348174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ArkAndyFraser_0-1764094348174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ArkAndyFraser_0-1764094348174.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367190i20DCE7EE587FA15D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ArkAndyFraser_0-1764094348174.png%22%20alt%3D%22ArkAndyFraser_0-1764094348174.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EWhy%20does%20this%20not%20compile%20without%20errors%20%22out%20of%20the%20box%22%20%3F!%3C%2FP%3E%3CP%3EI%20then%20by%20accident%20found%20that%20you%20could%20right%20click%20on%20the%20error%20in%20the%20Problems%20window%20and%20choose%20to%20'Add%20the%20SDK%20component'%20which%20then%20removes%20all%20the%20errors%20and%20the%20code%20builds%3C%2FP%3E%3CP%3EHow%20is%20that%20intuitive%20!%3F%3C%2FP%3E%3CP%3ESorry%20for%20the%20rant%20but%20it%20feels%20the%20design%20tools%20are%20becoming%20less%20intuitive%20over%20time.%3C%2FP%3E%3CP%3EAndy%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2248691%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20is%20a%20mess%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2248691%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%2F222282%22%20target%3D%22_blank%22%3E%40ArkAndyFraser%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThese%20errors%20occur%20because%20some%20required%20files%20have%20not%20been%20generated%20by%20S32%20ConfigTools.%20To%20resolve%20this%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIn%20S32%20Design%20Studio%2C%20open%20the%20Project%20Explorer%20view%20and%20select%20your%20current%20project.%3C%2FLI%3E%0A%3CLI%3EFrom%20the%20S32%20Configuration%20Tool%20menu%2C%20choose%20the%20desired%20configuration%20tool%20(e.g.%2C%20Pins%2C%20Clocks%2C%20Peripherals%2C%20etc.).%3C%2FLI%3E%0A%3CLI%3EApply%20any%20desired%20changes%3C%2FLI%3E%0A%3CLI%3EClick%20S32%20Configuration%20Tool%20%E2%86%92%20Update%20Code%20to%20regenerate%20the%20code.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EAdditional%20details%20for%20each%20example%20project%20are%20provided%20in%20the%20description.txt%20file%20included%20with%20it.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EBR%2C%20VaneB%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249680%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20is%20a%20mess%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249680%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%2F222282%22%20target%3D%22_blank%22%3E%40ArkAndyFraser%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECould%20you%20please%20delete%20the%20project%20(make%20sure%20to%20select%20the%20option%20Delete%20project%20contents%20on%20disk)%20and%20then%20recreate%20the%20S32DS%20project%20using%20an%20example%3F%20You%20can%20follow%20the%20steps%20in%20the%20guide%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FS32-Design-Studio-Knowledge-Base%2FHOWTO-S32-Design-Studio-Create-a-New-S32DS-Project-from-Example%2Fta-p%2F1098969%22%20target%3D%22_blank%22%3EHOWTO%3A%20S32%20Design%20Studio%20-%20Create%20a%20New%20S32DS%20Project%20from%20Example%3C%2FA%3E%2C%20and%20then%20apply%20the%20previously%20shared%20steps.%3C%2FP%3E%0A%3CP%3EPlease%20let%20me%20know%20if%20the%20issue%20persists.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2249200%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20S32DS%20is%20a%20mess%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2249200%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F201913%22%20target%3D%22_blank%22%3E%40VaneB%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOkay%2C%20so%20I%20created%20a%20new%20Dio%20project%20from%20example.%20Selected%20the%20project%20in%20the%20project%20explorer%20view.%20In%20the%20Config%20Tools%20menu%2C%20I%20clicked%20Update%20Code.%20It%20showed%20%22No%20Change%22%20for%20all%20of%20the%20source%20files.%20I%20hit%20Okay%20then%20build%20the%20project%20and%20get%20a%20number%20of%20errors%20including%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSPAN%3E..%2Fsrc%2Fmain.c%3A26%3A10%3A%20fatal%20error%3A%20Mcu.h%3A%20No%20such%20file%20or%20directory%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3E%3CSPAN%3EC%3A%2FNXP%2FS32DS.3.6.4%2FS32DS%2Fsoftware%2FPlatformSDK_S32K1_S32M24%2FRTD%2FBaseNXP_TS_T40D2M30I0R0%2Finclude%2FMcal.h%3A61%3A10%3A%20fatal%20error%3A%20DeviceDefinition.h%3A%20No%20such%20file%20or%20directory%3C%2FSPAN%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%3EIt%20is%20interesting%20that%20this%20time%2C%20if%20I%20open%20the%20Peripherals%20view%2C%20I%20don't%20see%20errors%20against%20any%20of%20the%20modules%20like%20I%20did%20the%20first%20time.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ArkAndyFraser_0-1764149208247.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22ArkAndyFraser_0-1764149208247.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F367342i33131AD94B182B1B%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ArkAndyFraser_0-1764149208247.png%22%20alt%3D%22ArkAndyFraser_0-1764149208247.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EHowever%2C%20why%20does%20it%20not%20build%3F%3C%2FP%3E%3CP%3EAndy%3C%2FP%3E%3C%2FLINGO-BODY%3E