Application Note
AN2157/D
Rev. 3, 05/2002
Programming the
MSC8101ADS Flash
Memory
Donald Simon and
This application note describes how to set up and program the MSC8101ADS board to run an application
Duberly Mazuelos
out of its Flash memory so that the application can execute immediately after the board is powered up or
reset. The application is first built using CodeWarrior
CONTENTS
provided with CodeWarrior software runs on the MSC8101ADS. This application interacts with the
HyperTerminal application on a PC (using an RS-232 interface) that sends the S-record file to the
MSC8101ADS. Finally, the application running on the MSC8101ADS parses the S-records and loads
them into Flash memory.
After describing the general programming procedure, this application note walks you through a simple
File .................................. 3
example that causes two LEDs on the MSC8101ADS board to flash at power-up or reset. This application
5
note assumes you are familiar with the Metrowerks
File .................................. 3
6
and the MSC8101ADS.
7
8
1
• MSC8101 Reference Manual
• MSC8101ADS User's Manual
• CodeWarrior Flash program and documentation. The Flash program is located in C:\Program
2
On power-up, the MSC8101 goes through a power-on reset (
jumping to an address vector (
signal = 1). This application note assumes the former, and that the address vector is located in Flash
memory. To run an application from Flash memory automatically after
programmed in Flash memory:
• Hard Reset Configuration Word (HRCW)
• Address table vector
• The application
The MSC8101ADS offers an option to allow the MSC8101 to load the HRCW from the on-board Altera
FPGA. When this option is selected, the HRCW need not be programmed in Flash memory. For
completeness however, this application note assumes that the HRCW is programmed in Flash memory.
Freescale Semiconductor, Inc.
References
Files\Metrowerks\CodeWarrior\StarCore_Support\
flash_programmer_support.
Background
For More Information On This Product,
Go to: www.freescale.com
®
to generate an S-record file. Then, an application
®
CodeWarrior development tools for the MSC8101
signal = 0) or downloading code through the host interface (
HPE
) sequence followed by either
PORESET
, three sections must be
PORESET
HPE