Contents

Cross compiling using ARM ADS 1.2
Cross compiling using ARM nmake
Debug under AXD
Loading Code using "U-boot"
Loading Code using "SAM-BA"

1         Cross compiling using ARM ADS 1.2

Software requirements:
ARM ADS v1.2
basic.zip file

Procedure :
Unzip the files to one of your hard disk drive.
Double-click on basic.mcp project file.
Once loaded with CodeWarrior, click on "Project" then "Make" or type "F7".
It should compile and create an axf and a bin file.

2         Cross compiling using ARM nmake

Software requirements:
ARM ADS v1.2
basic.zip file
nmake.exe

Procedure :
Unzip the files to one of your hard disk drive.
A default MCP project file is delivered with a makefile example project_basic.mk and with nmake.exe.
To compile with armcc and armasm type the command line :
nmake /f project_basic.mk
It should compile and create a bin file.

Note that this makefile can easily be ported for another compiler chain.

3         Debug under AXD

Software requirements:
ARM ADS v1.2
basic.axf file

Hardware requirements:
Multi-ICE Emulator

Procedure :
Connect the Multi-ICE to the JTAG connector.
Power-up the board.
Start Multi-ICE Server.
Start ARM AXD Debugger.
If "RDI Warning 00201: Cannot open target: the target is not responding" error message occurs,
from the "Fatal AXD Error" window, Click on "CONFIGURE", then from the "Target Environments" field,
select "Multi-ICE". If this option is not available, click "Add" and browse folders up to
the ARM Multi ICE installation folder and select "Multi-ICE.dll" file.
Then click on "Configure" to configure the Multi-ICE. Once done, click OK to return to AXD.
Once done double click on basic.axf file, AXD should load the code in memory.

4         Loading code using "U-boot"

Software requirements:
U-boot
basic.bin file

Procedure :
Power-up the board with J4 closed.
If programmed in Dataflash U-boot should run.
Get the base_address field in the html file.
Load the code at this address with tftp or loadb command. (Refer to U-boot manual for more details.)
Type : go "base_address" (in hex without "0x" prefix), the code starts.

5         Loading code using "SAM-BA"

Software requirements:
SAM-BA software
basic.bin file

Procedure :
Reset the board with J4 open. This boots in ROM and screens RomBOOT> in the hyperterminal.
Launch SAM-BA and choose "USB connection". In SAM-BA window choose the memory corresponding to the base_address.
Especially for the SDRAM, it should be initialized executing the script "Enable SDRAM" in the Script list.
Browse the PC to find the correct bin file and enter the correct address below.
Once done, click on "Send File". This load the file into the memory.
In the window below type : go "base_address" (in hex with "0x" prefix)
Type "Yes" or "OK" each time it is required, the code starts.