56800E Flash Programmer User Guide, Rev. 0
22
Freescale Semiconductor
Appendix A
Generating the S–Record File Using the CodeWarrior
Development Tool
This section describes how to set up the CodeWarrior development tool to generate an S-Record file
accepted by the application. The S-Record file is provided based on linker setup. The correct linker setup
is shown in
Figure A-1.
Figure A-1. Linker Set-Up
The linker will generate three different S-Record files:
•
output_file.p.S
–contains data and code to be stored in program memory locations
•
output_file.x.S
–contains data and code to be stored in data memory locations
•
output_file.S –
combination of the two previous files
In the combined S-Record file, data memory locations are distinguished from program memory locations
by having addresses greater then 0x02000000 (Word Address). The combined file is the accepted format
for the application. The 56800E Flash Programmer will accept any combination of options that the
Linker
set-up
dialog will support except the
Generate Byte Addresses
must remain unchecked.