HOWTO: Export S32DS Project to IAR EW (S32K14x/S32K11x)

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

HOWTO: Export S32DS Project to IAR EW (S32K14x/S32K11x)

HOWTO: Export S32DS Project to IAR EW (S32K14x/S32K11x)

S32 Design Studio (S32DS) for ARM supports IAR Plugin, and the user can use IAR specific features in S32DS with IAR toolchain for ARM.

This document describes the way to convert S32DS project to IAR EW based project using project exporting wizard in S32DS. This guidance is based on the NXP S32K144 microcontroller, and compatible with S32K14x / S32K11x family.

 

The version of each IDE which is used for this document is as follows:

S32 Design Studio for Arm 2018.R1

IAR Embedded Workbench for ARM 8.32.1.18631

 

 

1. Install IAR Plugin using IAR Embedded Workbench plugin manager on S32DS

  • Help - Install New Software

pastedImage_1.png

 

pastedImage_12.png

 

 

  • Help - IAR Embedded Workbench Plugin Manager

pastedImage_13.png

 

 

  • Install IAR Plugin which is matched with your IAR version.

pastedImage_14.png

 

pastedImage_17.png

 

 

 

2. Create S32DS Project

  • File - New - S32DS Application Project

pastedImage_18.png

 

  • The tool chain should be chosen as IAR Toolchain. Be noted that the IAR 7.x toolchain is different from the IAR 8.x.

pastedImage_19.png

 

  • The project is created as follows.

pastedImage_20.png

 

 

3. Export S32DS Application Project

  • File - Export

pastedImage_25.png

 

  • Choose S32 Design Studio - Project Info Export Wizard

pastedImage_26.png

 

  • Now "ProjectInfo.xml" was created. "ProjectInfo.xml" should be used for creating a project in the IAR EW.

pastedImage_27.png

 

4. Create IAR EW Project

  • The way to create IAR project as described below. The snapshots are based on IAR EW 8.32.1. Details may vary.

pastedImage_30.png

 

5. Connect the Project

  • Use the menu - Project - Add Project Connection, and choose "Freescale Processor Expert".

pastedImage_33.png

 

  • Select the "ProjectInfo.xml" file which was created at step #3. 

pastedImage_36.png

 

Now, the project which had been created in IAR was connected to the S32DS project.

 

The created IAR project should be modified if the user wants to use the project with S32DS SDK to build and debug under IAR EW environment as follows.

 

1. Modify the Linker configuration and remove ProjectInfo.xml

  • Remove "ProjectInfo.xml"

pastedImage_39.png

 

  • Linker configuration from the project Options

pastedImage_40.png

 

Even though the user modified the linker configuration, a definition in IAR EW  for "device_registers.h" from SDK will cause build error when trying building the project.

pastedImage_43.png

 

This error will be eliminated by inserting Chip specific definition into IAR project. If you take a look into the "device_register.h", you can find the definition as follows.

pastedImage_44.png

 

2. Define symbols 

  • Right mouse click on the Project name - Options

pastedImage_45.png

 

  • Write the symbols referred from "device_register.h". The symbols may vary (e.g., CPU_S32K146, CPU_S32K142, ...).

pastedImage_48.png

 

3. Build and Debugger configuration

  • Options - Debugger

pastedImage_49.png

 

  • I used PE micro's OpenSDA on S32K144EVB for this document. After choosing debugger and clicking Download and Debug (Ctrl+D), you can see the P&E Configuration Manager as follows. Just choose appropriate configuration, and select the correct part number of S32K by clicking Select New Device.

pastedImage_50.png

 

Finally, you can download and debug the converted IAR EW project with S32DS SDK.

pastedImage_53.png

Comments

I encountered some issues during the step 'Install IAR Plugin which is matched with your IAR version.' Could you help me figure out how to resolve this?

Error message as follows

Operation details
Cannot complete the install because one or more required items could not be found.
Software being installed: IAR C-SPY Debug Support for Arm (9.x) 9.0.0.202407151343 (com.iar.cdt.arm.debugger.feature.feature.group 9.0.0.202407151343)
Missing requirement: EMF Ecore 2.23.0.v20200630-0516 (org.eclipse.emf.ecore 2.23.0.v20200630-0516) requires 'bundle org.eclipse.emf.common [2.20.0,3.0.0)' but it could not be found
Cannot satisfy dependency:
From: IAR C-SPY Debug Support for Arm (9.x) 9.0.0.202407151343 (com.iar.cdt.arm.debugger.feature.feature.group 9.0.0.202407151343)
To: com.iar.cdt.arm.sdk.feature.feature.group 0.0.0
Cannot satisfy dependency:
From: IAR Toolchain for Arm (9.x) 9.0.0.202407151343 (com.iar.cdt.arm.sdk.feature.feature.group 9.0.0.202407151343)
To: org.eclipse.emf.ecore.feature.group [2.13.0,3.0.0)
Cannot satisfy dependency:
From: EMF - Eclipse Modeling Framework Core Runtime 2.23.0.v20200630-0516 (org.eclipse.emf.ecore.feature.group 2.23.0.v20200630-0516)
To: org.eclipse.emf.ecore [2.23.0.v20200630-0516]

 

 

屏幕截图 2024-10-15 132726.png

100% helpful (3/3)
Version history
Last update:
‎11-29-2021 10:58 PM
Updated by: