Skip to content

Debugging an S32G2 based board using NXP S32 Design Studio

In this tutorial, we will set up a Debugger using the NXP S32 Design Studio for the S32G2 board.


Assumptions

  • An S32G2 board is functional and accessible.

Prerequisites

Get the NXPS32DS Desktop Image from this URL: registry.gitlab.com/sleeve.dev/nxp/s32-design-studio:latest


Preparing the Actions

The NXPS32DS Desktop Action

In your S32G2 Workspace, create an Action by clicking on the button, then select Container and Desktop. Fill in the initialization fields as follows:

Field Value
Name nxp-S32-Design-Studio
Container Image NXPS32DS Image
CPU Architecture Native
Keyboard Empty (select a different language if you prefer)
Username sleeve
Password sleeve

Leave the rest empty and create the Desktop Action.


NXP S32 Design Studio

  1. Start the NXP S32 Design Studio

Warning

  • Due to a bug, possibly because of an older version of S32DS, the program might crash the first time after pressing Launch. This only happens once; subsequent attempts will work as expected.
  1. From the Project Explorer tab, click on Create a project…

  2. From the New Project panel that opens, select S32DS Application Project under S32DS Projects.

  3. From the S32DS Application Project panel that opens, name your project and select a processor core.

Example

An example core: S32G233A Cortex-M7

  1. Click on the Next button and make sure the S32 Debugger is selected under the Global Settings - Debugger
Example

img: S32G2 Ethernet Example

  1. Select Run -> Debug Configurations from the top menu.

  2. Select SleeveProject_Debug_ram_S32Debug under the S32 Debugger.

  3. Select the Debugger tab from the panel that opens on the right.


Debugging Using an Ethernet Connection

  1. For interface, select S32 Debug Probe - Ethernet.

  2. Fill in the IP box with Debugger IP address.

  3. Click on the Apply button and then the Debug button.

  4. Confirm the switch to debug view popup.

Example

img: S32G2 Ethernet Example

Debugging Using a USB Connection

  1. For interface, select S32 Debug Probe - USB.

  2. Click on the Apply button and then the Debug button.

  3. Confirm the switch to debug view popup.

Success

You are now Debugging the board!


Troubleshooting

Question

Any other troubles? Click here!