
Software Integration Guide
Shah Kushal-B55457
MPC5748G-LCEVB SWIG MPC5748G-LCEVB
SOFTWARE INTEGRATION GUIDE (SWIG)
Ultra-Reliable MCUs for Industrial and Automotive Applications
www.nxp.com/MPC5748G-LCEVB
EXTERNAL USE
S32 DESIGN STUDIO IDE FOR POWER ARCHITECTURE
www.nxp.com/S32DS
· To develop an application one need an Integrated Development Environment (IDE) · S32 Design Studio IDE is the solution to the need · This document provides step wise tutoring on "How to use S32 Design Studio IDE for Power
Architecture" to build an application
1 EXTERNAL USE
Contents
· S32 Design Studio IDE for Power Architecture Supported Devices · Installing S32 Design Studio IDE for Power Architecture
- Download and Install the new IDE
· Getting started with a New Project
- Create, build and debug the new project
· Making Projects from built-in Examples
2 EXTERNAL USE
S32 Design Studio IDE for Power Architecture Supported Devices
· MPC560xB/C/D Family · MPC560xE Family · MPC560xP Family · MPC560xS Family · MPC564xA Family · MPC564xB Family · MPC564xC Family · MPC564xL Family · MPC567xR Family
· MPC574xB/C Family · MPC574xG Family · MPC577xK Family · MPC574xP Family · MPC574xR Family · MPC5777C · MPC5777M · S32R274
3 EXTERNAL USE
INSTALLING S32 DESIGN STUDIO IDE FOR POWER ARCHITECTURE
4 EXTERNAL USE
Step-1
· Go to www.nxp.com/S32DS to download latest version · From Downloads folder, run the installation file · Click on Run if any administrative privilege issues results from unknown software
publisher · The "preparing to install" dialogue box will appear
5 EXTERNAL USE
Step-2
· An Installer welcome window will be displayed, click Next to continue
6 EXTERNAL USE
Step-3
· Choose additional Features
- Selecting "S32 Design Studio" option will only install S32 Design Studio
- Selecting "Additionally install..." will allow you to install other software too
· Click on Next
7 EXTERNAL USE
Step-4
· Scroll down the text and read the license agreement.
· Select the radio button acknowledging the license agreement terms and click Next to continue.
8 EXTERNAL USE
Step-4
· Click Next to accept the default installation location (could be changed, but recommended to install into path without spaces).
9 EXTERNAL USE
Step-5
· Select folder where you want to
· Verify settings on "Pre-Installation
generate a Shortcut and click on Next to Summery" tab and click Install to start
continue.
Installation
10 EXTERNAL USE
Step-7
· The installation starts by installing required libraries from the Microsoft Visual C++ 2013 package. Read the license terms and select I agree... option and hit the Install
· If the libraries of the Visual C++ 2013 package were already installed on the system then the Modify Setup dialog box appears. Now click on Repair to continue
11 EXTERNAL USE
Step-8
· When asked for Activation ID, copy and pest the key from the Download page
· Then click on OK. · Next: In activation type window. Click
on Online
12 EXTERNAL USE
Step-9
· During the Installation it may ask you to install P&E Device Drivers
· Read license agreement and Click on I Agree.
· In next window Select the destination folder and click Install
· Once the installation is done. Click on Close to close the P&E Device Driver Setup window.
13 EXTERNAL USE
Step-10
· Once the installation is completed click on Done to exit the installation wizard.
14 EXTERNAL USE
GETTING STARTED WITH A NEW PROJECT
15 EXTERNAL USE
Create a new project
1 of 5
· Start program: Click on "S32 Design Studio for Power Architecture vx.x" icon · Select workspace:
- Choose default or specify new one - Suggestion: Uncheck the box "Use this as the default and do not ask again" - Click OK
16 EXTERNAL USE
Create a new project
· Go to: File New New S32DS Project
2 of 5
17 EXTERNAL USE
Create a new project
· Project Name:
- Example: FirstProject
· Project Type:
- Recommended: use Elf S32DS Project
· Select Controller:
- Example: MPC5748G
18 EXTERNAL USE
3 of 5
Create a new project
· Selects Cores · Select Flash and RAM size · Select Programming Language · Select the Library · Select the Debugger · Recommended: use Default settings
(for beginners)
19 EXTERNAL USE
4 of 5
Create a new project
20 EXTERNAL USE
5 of 5
· 3 Projects will be created for 3 different cores of MPC5748G
Build a Project
· To build a project follow one of the methods · If project is built successfully, following
below:
message will be displayed on the
1. Project Build Project
Console
2. - Click no hammer symbol to build that project - Click on page symbol to build all projects
21 EXTERNAL USE
Debug a Project
· Connect a debugger to both, the board and the PC
· Click on arrow in the icon · And Open Debug Configurations...
22 EXTERNAL USE
1 of 2
Debug a Project
· Select Project:
- Example: FirstProject_Z4_0_Debug
· Select Interface:
- Example: USB Multilink for MPC5748G-LCEVB
· Port:
- The comport where device is connected
· Click on Debug to start debugging
23 EXTERNAL USE
2 of 2
Debug a Project from RAM
· Firstly, Configure a project to debug from RAM Follow one of the Steps:
1. Project Build Configurations Set Active Debug_RAM
· Lastly, to debug from RAM select the RAM related session while debugging
2. Select Debug_RAM by clicking Down Arrow next to hammer
· Follow the Steps shown on Debug a Project pages
· Repeat above for all related projects.
· Follow the steps shown on "Build a Project" Page
24 EXTERNAL USE
Debug Basics: Step, Run, Suspend, Resume
· Step Into (F5) · Step Over (F6) · Run · Suspend · Resume (F8) · Terminate (Ctrl+F2)
25 EXTERNAL USE
Debug Basics: View & Alter Variables
· View variables in "Variables" tab. · Click on a value to allow typing in a different value.
1 of 2
26 EXTERNAL USE
Debug Basics: View & Alter Registers
· View CPU registers in the "Registers" tab · Click on a value to allow typing in a different value
· View peripheral registers in the EmbSysReg tab
27 EXTERNAL USE
2 of 2
Debug Basics: View Memory
· Add Memory Monitor
- Click on icon
· Select Base Address Example : 0x0000fff8
· View Memory
28 EXTERNAL USE
Debug Basics: Breakpoints
· Add Breakpoint: Point mouse pointer at circled area and Double Click there
- Light blue dot will pop up that represents debugger breakpoint
29 EXTERNAL USE
IMPORTING PROJECTS
30 EXTERNAL USE
Step-1
· Go to: File Import
· Click on: "Existing Projects into Workspace" Hit Next
· Click on: Browse & Select Example Folder
31 EXTERNAL USE
Step-2
· Select the Project · Click on Finish to Import a Project into
Workspace
32 EXTERNAL USE
MORE INFORMATION......
· For more information about S32 Design Studio IDE for Power Architecture go to
Start All Programs Freescale S32 Design Studio S32 Design Studio for power Architecture vx.x Quick Start/Documentation
· Also Visit www.nxp.com/community to post questions about S32 Design Studio
33 EXTERNAL USE
Microsoft PowerPoint 2013 Microsoft PowerPoint 2013