Upload
hub23
View
52
Download
0
Tags:
Embed Size (px)
DESCRIPTION
arm
Citation preview
7/16/2019 2. IAR EWARM Quick Start Tutorial
1/20
IAR
Embedded Workbench for ARM
Quick Start Tutorial
Ryan Sheng
IAR Systems AB, Shanghai
7/16/2019 2. IAR EWARM Quick Start Tutorial
2/20
Create a New Project
7/16/2019 2. IAR EWARM Quick Start Tutorial
3/20
Choose or Create a Configuration
Default: Debug and ReleaseCreate a new configuration based on an
existed one or start from scratch.
7/16/2019 2. IAR EWARM Quick Start Tutorial
4/20
Add Files
Add files to project.
Create groups, then add files to group.Better source organizationHelp to generate better code
7/16/2019 2. IAR EWARM Quick Start Tutorial
5/20
Choose an ARM Core or a DeviceSelect an ARM core
Select an ARM device (recommended)
7/16/2019 2. IAR EWARM Quick Start Tutorial
6/20
Choose the Type of Output File
Generate an executable file
Generate a library
7/16/2019 2. IAR EWARM Quick Start Tutorial
7/20
Choose a Programming Language ISO/ANSI C
Embedded C++Extended Embedded C++
7/16/2019 2. IAR EWARM Quick Start Tutorial
8/20
Choose Compiler Optimizations
Optimize for size
Optimize for speed
7/16/2019 2. IAR EWARM Quick Start Tutorial
9/20
Add Include Directories (optional)
$TOOLKIT_DIR$\...
$PROJ_DIR$\...
7/16/2019 2. IAR EWARM Quick Start Tutorial
10/201
Choose the Format of Output File
For IAR C-SPY Debugger
7/16/2019 2. IAR EWARM Quick Start Tutorial
11/201
Choose the Format of Extra Output File
For 3rd-party emulators, flash loaders,
7/16/2019 2. IAR EWARM Quick Start Tutorial
12/201
Generate Linker Listing (optional)
Size of code & data, position of symbols,
7/16/2019 2. IAR EWARM Quick Start Tutorial
13/20
1
Choose a Linker Command File
7/16/2019 2. IAR EWARM Quick Start Tutorial
14/20
1
Choose a Driver for Debugger
For simulator
For hardware debug interface
7/16/2019 2. IAR EWARM Quick Start Tutorial
15/20
1
Choose a Download MethodDownload to RAM
Download to Flash (Using a Flash Loader)Not download code (Debugging in Flash)
7/16/2019 2. IAR EWARM Quick Start Tutorial
16/20
1
Choose Debugger Plug-ins (optional)
For RTOS Kernel Awareness
For Powerful Debugger Features
7/16/2019 2. IAR EWARM Quick Start Tutorial
17/20
1
Configure Emulator Parameters
Parameters are different to each kind of emulator.
7/16/2019 2. IAR EWARM Quick Start Tutorial
18/20
1
Compile & Link
Rebuild All
View the linker listing file (*.map) for details.
7/16/2019 2. IAR EWARM Quick Start Tutorial
19/20
1
Download & DebugLaunch the C-SPY Debugger.Code is downloaded and to be debugged.
7/16/2019 2. IAR EWARM Quick Start Tutorial
20/20
2
Thank
You !