Cross-compiling for AT91SAM7 using ARM ADS 1.2

 

 
 

 


1         Cross compiling using ARM ADS 1.2

 

A default MCP file is delivered with this example.

 

The processor selected must be ARM7TDMI for compiler and assembler.

The compiler option “Enable debug inline function” must be enabled.

 

The first object file to be linked is cstartup.o. Then entry point symbol is __ENTRY.

 

2         Specific ARM ADS file

ARM ADS Use specific format file for assembler file and Macro file. These files are grouped in the directory:SrcARM and the standard extension are:

.s to assembly file and .mac to Assembly macro file

ARM ADS need also a specific initialization file for set the Heap and C setting retarget.c and the standard microcontroller file Cstartup_SAM7.c

3         Debugging using AXD

Run multi-ice server.

Run AXD and load project.axf

In the Project Interface you can select the debugger icon in this case one specific file is sent to the debugger for primary initialization (these files are .dat extension)