IAR 4.11A
Compilation
Introduction
The goal of this demonstration
project is to describe the IAR compilation with AT91 target
A default IAR project
(Workspace) “Basic.eww” file is delivered with this example.
The processor selected
must be ARM7 tm for compiler and assembler.
· In First open the
IAR tools
· In File menu select
Open Project in builder and get the project file compil/xxx.eww
· Rebuild this project
In workspace select the Cstartup
project with Debug option. This project generate library using by the basic
application, this library use only files for AT91 initialisation
In workspace select the basic
project select option Debug for debug the basic application under ICE/JTAG
(J-Link,...). This application includes Cstatup libary and uses the specific
linker file for memory definition
·In
first build the Cstartup library
·Next
build the Main Project
· Connect on You board
through ICE JTAG interface
For the choice of JTAG you must
select the debugger option and choice your ICE interface (e.i. J-Link)
· Load and debug this
application
IAR Workspace
Debug |
Generate the Cstartup Library |
RAM_Debug |
Generate a RAM application for debug |
Flash Debug |
Generate all files for Flash debug loading through IAR utility check parameters for download |
Flash Bin |
Generate all file for binary output can be load through TOOLS workspace |
Tools |
Standalone application use SemiHosting
facilities |
Compilation files
Basic.eww |
Main IAR project file |
Basic.ewp |
IAR project file common files |
Cstartup_xxxx.ewp |
Cstartup files |
resource/ |
All project Resource files |
resource/at91_lnk_Flash.xcl |
Flash Mapping memory and sections
definition. Defines the memory map for the target board |
resource/at91_lnk_ram.xcl |
Mapping memory and sections
definition. Defines the memory map for the target board |
resource/Ebxxx.mac> |
script file for set the processor
before download and debug through ICE. |
resource/Ebxxx_Flash.mac |
script file for set the processor
before download and debug through ICE without download. |
SrcIAR/ |
directory including the
specific source code |
SrcIAR/Cstartup.s79 |
Cstartup code include the
reference for INTRAMSTART_REMAP define in linker file |
SrcIAR/Cstartup_xxxx.c |
Cstartup code Linked in ARM mode
(32bits) |
Tools/ |
If present include the flash
up-loader |
settings/ |
IAR Setting directory |
Debug/ |
IAR object and list directory |
Flash/ |
IAR object and list directory
for Flash compilation |