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 and load a code example. You can also use the step-by-step guide.
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.
Create a new project by selecting File > New > Project.
Choose a project name and then select a project type, then click Next. We recommend using
Elf S32DS Project for this one.
Select cores and parameter, then click Finish.
We recommend using the default settings for now, but you can make selections in Language, Library and Debugger.
A project will be created for every core the device has.
The MPC5744P has only one.
4.2 Build a New Project in IDE
Use one of these two paths to create a project:
- Project > Build Project
- Click icon to build the project, then click the icon to build all projects.
The following message will be displayed on the console once you successfully build a project:
4.3 Debug a Project in IDE
Connect a debugger to both the board and PC.
Note: For DEVKIT-MPC5744P, OpenSDA works as a debug adapter, so no standalone debugger is required.
Click the debug icon in the top menu.
Select a Project, Interface and Port, then click Debug.
Learn more about debugging basics at Projects and Tutorials.
(Example: “FirstProject_Debug” and “OpenSDA for DEVKIT-MPC5744P”)
4.4 Debug a Project from RAM
Follow one of these paths to debug from RAM:
- Go to Project > Build Configurations > Set Active > Debug_RAM.
- Select Debug_RAM by clicking down the arrow next to 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
Launch the S32 Design Studio for Power Architecture® and open a new file along this path:
File > New > New S32DS Project from Example.
Select the built-in project of your choice and click Finish.
The selected project will be copied to the active workspace.
4.6 Import Projects into IDE
Go to File > Import. In the workspace option, click Existing Projects then click Next. Click Browse and
select the example folder.
To import the project into the workspace, select it and click Finish.