AN2157 Freescale Semiconductor / Motorola, AN2157 Datasheet - Page 7

no-image

AN2157

Manufacturer Part Number
AN2157
Description
MSC8101 Programming the MSC8101ADS Flash Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
5.
6.
Note:
7.
8.
9.
10. Verify that the HRCW is programmed correctly.
Edit the calc.h file for the corresponding crystal oscillator frequency on the MSC8101ADS (U18)
and the baud rate used with the HyperTerminal application. Build the application if the calc.h file
was modified.
Start the HyperTerminal application on the PC and then run the Flash programmer application on the
MSC8101ADS.
The following display appears on the HyperTerminal window:
MSC8101ADS Flash Loader Utility
print dump load_flash sec_erase program_word help sec_addr
-->
Erase the first two sectors of the Flash memory.
Use the following commands:
-->0 sec_erase
-->1 sec_erase
Verify that the sectors in Flash memory are erased.
Sector 0 starts at 0xFF800000, which is where the HRCW starts. Sector 1 starts at 0xFF840000,
which is the starting address of the LEDblinker application. Use the dump command on the
HyperTerminal window, as follows:
-->hff800000 dump
This displays the following:
Hit return for next sixteen, q to quit
FF800000 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
-->
Additional <return> key strokes display more memory locations.
FF800010
FF800020
FF800030
-->
Pressing ‘q’ ends the memory display.
Verify that the application memory is erased.
-->hff840000 dump
Hit return for next sixteen, q to quit
FF840000
FF840010
FF840020
-->
Program the HRCW with the following commands:
-->h2c000000 hff800000 program_word
-->h00000000 hff800008 program_word
-->h02000000 hff800010 program_word
-->h0a000000 hff800018 program_word
The HyperTerminal commands can also be run from a script, as shown in Appendix E.
Freescale Semiconductor, Inc.
For More Information On This Product,
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
Go to: www.freescale.com
Application Example
................
................
................
................
................
................
................
7

Related parts for AN2157