Create, Build and Load
Let’s take it for a test drive.
4.1 Create a New Project in IDE
Watch the video to create a new project in S32 Design Studio IDE and load example code.
You can also use the step-by-step guide.
1. Launch the S32 Design for Power Architecture® and select a default workspace or specify a new one. Then click OK.
Note: Uncheck the box Use this as default and do not ask again.
2. Create a new project by selecting File > New > Project.
3. Choose a project name and then select a project type, then click Next. We recommend using
Elf S32DS Project.
4. Select cores and parameter, then click Finish.
We recommend using the default settings. You can choose flash and RAM size, and make selections in Language, Library and Debugger.
Three projects will be created for three different cores of MPC5748G.
4.2 Build a New Project in IDE
Follow one of these paths to build a new project:
- Select Project > Build Project.
- To build the project, click the hammer icon.
- To build all projects, click the paper and number icon.
Once you have successfully built your project, the following message displays on the console:
4.3 Debug a Project in IDE
1. Connect a debugger to both the board and the PC.
Note: For DEVKIT-MPC5748G, OpenSDA works as a debug adapter, so no standalone debugger is required.
2. Open Debug Configuration options in the top menu.
3. Select a project and interface and then click Debug.
Learn more about debugging basics at Projects and Tutorials section.
(Example: “FirstProject_Z4_0_Debug” and “OpenSDA for DEVKIT-MPC5748G”)
Note: The port is the comport where device is connected.
4.4 Debug a Project from RAM
To configure a project to debug from RAM, follow one of these paths:
- Go to Project > Build Configurations > Set Active > Debug_RAM.
- To select Debug_RAM, click the arrow near the hammer icon.
Note: Repeat for all related projects and follow the steps in 4.2 Build a New Project in IDE.
Finally, to debug from RAM, select the RAM-related session while debugging.
Note: Follow the steps in 4.3 Debug a Project in IDE.
4.5 Make Projects from Built-In Examples
1. Launch S32 Design Studio for Power Architecture, From Example, go to File > New > New S32DS Project.
2. Select the built-in project of your choice and click Finish.
The selected project will be copied to the active workspace.
The DEVKIT-MPC5748G example codes also include the projects from AN4830: Qorivva Recipes for MPC574xG
Note: Download the AN4830SW.
- eDMA+ PBridge
- Register Protection
- Low Power: STOP mode
- Analog-to-digital converter
- Timed I/O (eMIOS)
- Body Cross Trigger Unit (BCTU)
- System Memory Protection Unit (SMPU)
4.6 Import Projects into IDE
1. Go to File > Import and click Existing Projects into the workspace option. Then click Next.
2. Browse and select an example folder.
3. Select a project. To import it into the workspace, click Finish.