Sei sulla pagina 1di 20

IAR Embedded Workbench for ARM Quick Start Tutorial

Ryan Sheng IAR Systems AB, Shanghai

Create a New Project

Choose or Create a Configuration


Default: Debug and Release Create a new configuration based

on an

existed one or start from scratch.

Add Files
Add files to project. Create groups, then

Better source organization Help to generate better code

add files to group.

Choose an ARM Core or a Device


Select Select

an ARM core an ARM device (recommended)

Choose the Type of Output File


Generate

an executable file Generate a library

Choose a Programming Language


ISO/ANSI C Embedded C++ Extended Embedded

C++

Choose Compiler Optimizations


Optimize

for size Optimize for speed

Add Include Directories (optional)


$TOOLKIT_DIR$\... $PROJ_DIR$\...

Choose the Format of Output File


For

IAR C-SPY Debugger

10

Choose the Format of Extra Output File


For

3rd-party emulators, flash loaders,

11

Generate Linker Listing (optional)


Size

of code & data, position of symbols,

12

Choose a Linker Command File

13

Choose a Driver for Debugger


For For

simulator hardware debug interface

14

Choose a Download Method


Download to RAM Download to Flash (Using a Flash Loader) Not download code (Debugging in Flash)

15

Choose Debugger Plug-ins (optional)


For

RTOS Kernel Awareness For Powerful Debugger Features

16

Configure Emulator Parameters

Parameters are different to each kind of emulator.

17

Compile & Link


Rebuild All View the linker

listing file (*.map) for details.

18

Download & Debug


Launch the C-SPY Debugger. Code is downloaded and to be

debugged.

19

Thank You !

20

Potrebbero piacerti anche