![](http://datasheet.mmic.net.cn/260000/PPSMMANUAL_datasheet_15946768/PPSMMANUAL_168.png)
32-4
How to How to make ROM
Programmer’s Manual
As much executable code space in ROM as required, round to 4-
byte boundary starting from 0x401000
As much constant data space in ROM as required, round to 4-byte
boundary
As much constant strings space in ROM as required, round to 4-
byte boundary
DATA symbol to point to the downloadable address of the initialized
constants to pre-initialized variables
A LCD physical display screen of 320 pixels wide by 240 pixels high
A panning screen of 640 pixels wide by 480 pixels high
A 256 byte internal UART receive buffer
The RAM area starts at base address 0x0
As much initialized data space as required starting from an offset of
0x400, round to 4-byte boundary
As much zeroed uninitialized data space as required, round to 4-
byte boundary
512 KByte of heap space for dynamic memory allocation
128 KByte of stack space for system context switching
A STKTOP symbol to point to the address of the 128 KByte stack
32.3
Generating S-Record File
After the PPSM application has linked with the ROM spc file, the SDS tools
generates an output file in a proprietary format that is not suitable to download to
ROMs.
SDS provides a tool, the loader tool, that allows the conversion from this output
file into S-Record format.
32.3.1
Loader Options
To convert .OUT file into S-Record file, the following options are used:
Options
-d mot
generate Motorola S-Record format output file
-o
<path>\<filename>.dwn
the full name of the output file
-m data, DATA
Copy the initial values of initialized data into ROM area
-w <address>
Generate S-Record with offset <address> which is the
base address of ROM
Personal Portable System Manager
Programmer’s Manual
32-5
Loader Commands
Example 30-2 Loader command
down -d mot sample.out -m data, DATA -o sample.dwn -w 0x400000
This will convert the sample.out to S-Record format named sample.dwn which will
be burned into ROM address of 0x400000.
Example 30-3 Loader command
down -d mot sample.out -m data, DATA -o sample.dwn
This will convert the sample.out to S-Record format named sample.dwn which will
be burned into ROM address of 0x0.
Convert .OUT file format to Motorola S-Record format
down -d mot <filename>.out -m data, DATA -o <path>\<filename>.dwn -w <address>
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.