User guide

REM -DUSE_SERIAL_PORT
REM armcc -c -g -O1 retarget.c -DUSE_SERIAL_PORT
armcc -c -g -O1 uart.c -I..\include
armcc -c -g -O1 serial.c -I..\include
armcc -c -g -O1 int_handler.c -I..\include
armlink vectors.o init.o main.o retarget.o uart.o serial.o stack.o heap.o
int_handler.o -scatter scat_c.scf -o rps_irq.axf
-entry 0x24000000 -info totals -info unused
fromelf rps_irq.axf -bin -o rps_irq.bin
6.8.3 Scatter-load description file
The scatter-load description file is listed below.
FLASH 0x24000000 0x4000000
{
FLASH 0x24000000 0x4000000
{
init.o (Init, +First)
* (+RO)
}
32bitRAM 0x0000
{
vectors.o (Vect, +First)
* (+RW,+ZI)
}
HEAP +0 UNINIT
{
heap.o (+ZI)
}
STACKS 0x40000 UNINIT
{
stack.o (+ZI)
}
UART0 0x16000000 UNINIT
{
uart.o (+ZI)
}
}
6.8.4 Sample code
The retargetting code is the same as the code used in Loading the ROM image at address 0. The source is available
in install_directory\Examples\Embedded\rps_irq.
Writing Code for ROM
Copyright ?1999 2001 ARM Limited 6-23