Generating An S-Record File; Loading The S-Record File - Motorola Digital dna MSC8101ADS Manual

Table of Contents

Advertisement

4

Generating an S-record File

The following steps generate an S-record file from an application that is later loaded into Flash memory.
1.
2.
3.
5

Loading the S-record File

The following steps outline the procedure for programming the Flash memory in the MSC8101ADS with
an S-record file. The S-records are sent to the MSC8101ADS for the PC over an RS-232 connection
using the HyperTerminal application on the PC. There is also an MSC8101 application running on the
MSC8101ADS to service this link with the PC. This application is provided with the CodeWarrior
program production release 1.5 (see step 3).
1.
2.
Freescale Semiconductor, Inc.
Create a project for the application.
Using the
Project->Add Files
include all the relevant files for the application.
Set the CodeWarrior build settings.
Set up the project so that the generated S-records can execute out of Flash memory. Note that the
settings are not necessarily used for applications built to execute from internal SRAM memory:
a.
Set up the proper environment and code generation options:
Target → StarCore Environment
StarCore Compiler → Enterprise Compiler
b.
Use the proper linker command file and C start-up file:
Linker → Enterprise Linker → Start-Up File
c.
Generate an S-record file:
Target → Target Settings → Post-Linker
Post-Linker → SC100 ELF to S-Record
Post-Linker → SC100 ELF to S-Record
file
Build the application.
Building the application generates an S-record file. Refer to the C:\Program
Files\Metrowerks\CodeWarrior\CodeWarrior
Manuals\PDF\Targeting_Starcore.pdf file for information on this S-record generation
utility.
Set up the HyperTerminal application.
The HyperTerminal application is set up with the following parameters:
— Baud rate: 115200
— Data bits: 8
— Stop bits: 1
— Parity: none
— Handshaking: XON/XOFF
— <ASCII Setup...>, Line delay: 5 milliseconds.
It is important to verify that the PC can support the 115200 baud rate. If another data rate is used,
change it here and in the Flash loader application (calc.h).
Set up the serial connection.
For More Information On This Product,
Go to: www.freescale.com
menu option, create a project within the CodeWarrior directory and
. Enable Big Memory mode
. Enable Init Variables from ROM
. Point to the flash_crt140b.eln file
. SC100 ELF to S-Record
. Enable Long Word Addressability
. Enter the desired Output File Name for the S-record
Generating an S-record File
3

Advertisement

Table of Contents
loading

Table of Contents