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)

100% helpful (1/1)

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

Version history
Last update:
‎11-29-2021 10:58 PM
Updated by: