AN2157 Freescale Semiconductor / Motorola, AN2157 Datasheet - Page 5

no-image

AN2157

Manufacturer Part Number
AN2157
Description
MSC8101 Programming the MSC8101ADS Flash Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
6
Switch Settings to Run the Application
These steps can be verified by viewing the Flash memory addresses programmed using the dump
command on the HyperTerminal window. For details on the MSC8101ADS Flash loader utility, refer to
the C:\Program Files\Metrowerks\ CodeWarrior\CodeWarrior
Manuals\PDF\Targeting_Starcore.pdf file.
Table 1 shows MSC8101ADS switch settings if an application is running from MSC8101 internal
SRAM.
Table 2 shows specific MSC8101ADS switch settings if an application is running from Flash memory.
Table 1. MSC8101ADS Switch Settings, Application Running from MSC8101 Internal SRAM
SW10-1
SW9-7
SW10-1
SW2-5, 6
SW2-1
SW9-7
Switch
Switch
c.
d.
e.
Table 2. MSC8101ADS Switch Settings, Application Running from Flash Memory
-->h00000000 hff800008 program_word
-->h02000000 hff800010 program_word
-->h0a000000 hff800018 program_word
Program the starting address of the application in the address table at location 0xFF800110. The
address table starts at 0xFE000110. The MSC8101ADS maps this address to 0xFF800110. The
following command loads a vector of 0xFF840000:
-->hff840000 hff800110 program_word
In this example, 0xFF840000 is the location where the address table starts in Flash memory. It
must match the starting address of the application defined in the *.lcf file (
_ROMStart
Program the application into Flash memory with the following command.
-->0 load_flash
The 0 (zero) option uses the addresses in the S-record to program the Flash memory.
Alternatively, if you specify the starting address in Flash memory in place of the 0, the data is
loaded in consecutive locations starting at the specified address (ignoring addresses in the
S-record). If there are gaps in the S-record address, these gaps are ignored.
Send the S-record application file (*.s) to be programmed in the Flash memory to the
MSC8101ADS using the
Freescale Semiconductor, Inc.
For More Information On This Product,
DBG
FCFG
DBG
EE4, EE5
EE0
FCFG
Name
Name
)
. See Appendix A.
Go to: www.freescale.com
OFF
ON
OFF
ON
ON
OFF
ON, ON
ON
Setting
Setting
Transfer -> Send Text File
The MSC8101 (SC140) is placed in Debug mode immediately after reset.
Read the HRCW to come from the Altera gate array.
Read the HRCW to come from Flash memory.
Allows the application to execute the boot code after reset, which in turn
jumps to the application loaded in Flash memory.
Boot from external Flash memory (as opposed to the HI16 host port).
Normal processing mode after reset (instead of Debug mode).
Read the HRCW to come from the Altera gate array.
Read the HRCW to come from Flash memory.
Switch Settings to Run the Application
option in the HyperTerminal application.
Description
Description
CodeStart and
5

Related parts for AN2157