IAR 4.11A Compilation

 

 
 

 

Introduction

The goal of this demonstration project is to describe the IAR compilation with an AT91-based target.

In this case the all code processes always in Internal RAM.

The conditional assembly it’s used to compile or not compile the Remap instruction in the Cstarup .s79 file.

 

No support the software reset

 

The Cstartup are change to include a Flast to RAM copy.

- RAM:

Assembler

-         The Remap is not allowed the “RAM_DEBUG” is defined in the assembler parameter

Linker

Use the a”t91SAM7S64_16KRAM.xcl” this file include new definition to internal high address

Debugger

Use the a SAM7_RAM.mac”

- FLASH.

Assembler

-         The Remap is process allowed the “RAM_DEBUG” must be not defined in the assembler parameter

Linker

Use the at91SAM7S64_16KRAM.xcl” this file include new definition to internal high address same for FLASH and RAM

Debugger

Use the a” SAM7.mac”

-          

IAR Workspace

Debug

Cstartup Library generation

RAM_Debug

RAM application for debug

Flash Debug

Flash application for debug to be loaded using the IAR utility

 Compilation files

Basic.eww

IAR main project file (Workspace)

Basic.ewp

IAR workbench project file

Cstartup_xxxx.ewp

Cstartup file

resource/

Project resource files directory

resource/at91_lnk_Flash.xcl

Linker file for the Flash application which defines the memory mapping and sections for the target board Unused

resource/at91_lnk_ram.xcl

Linker file for the RAM application which defines the memory mapping and sections for the target board new NEW

resource/Ebxxx.mac>

Script file for setting the processor before to download and to debug the RAM application using a JTAG ICE interface new

resource/Ebxxx_Flash.mac

Script file for setting the processor before to download and to debug the Flash application using a JTAG ICE interface new

SrcIAR/

Specific source code directory

SrcIAR/Cstartup.s79

Cstartup code which includes the reference for INTRAMSTART_REMAP define in linker file New

SrcIAR/Cstartup_xxxx.c

Cstartup code Linked in ARM mode (32bits)

settings/

IAR Setting directory

Debug/

IAR object and list directory

Flash/

IAR object and list directory for the Flash application