AN2157 Freescale Semiconductor / Motorola, AN2157 Datasheet - Page 8

no-image

AN2157

Manufacturer Part Number
AN2157
Description
MSC8101 Programming the MSC8101ADS Flash Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Running LEDblinker from Internal SRAM
8
8
Running LEDblinker from Internal SRAM
11. Program the address table entry to 0xFF840000, which is the starting address of the LEDblinker
12. Verify that the address table entry is correctly programmed.
13. Program the application.
14. Verify that the application is programmed.
15. Run the LEDblinker application from Flash memory.
The LEDblinker application listed in Appendix B flashes two LEDs on the MSC8101ADS. The amount
of time the LEDs stay on and off depends on the
application resides. An application runs much faster from internal SRAM than from external memory.
Note that the HRCW is four bytes and is every eighth byte starting at 0xFF800000.
-->hff800000 dump
Hit return for next sixteen, q to quit
FF800000 2C
FF800010
application code.
-->hff840000 hff800110 program_word
Recall that the start of the application depends on how the linker command file is set up and also on
the ISB bits in the HRCW. Thus, it must match the _CodeStart, _ROMStart labels in the
linker command file. In this application, flash.lcf is used and the application is set to
0xff840000. Refer to Appendix A listing of the flash.lcf.
-->hff800110 dump
Press return for next sixteen, q to quit
FF800110
-->
-->0 load_flash
Then use the HyperTerminal menu
S-record file.
A “.” is printed for every 20 lines of S-records read. When the load
finishes, a status message displayed as follows:
-->0 load_flash...
Flash programed without error
-->
-->hff840000 dump
Hit return for next sixteen, q to quit
FF840000
-->
Change SW10-1 (DBG) to OFF. Press the PRESET switch (SW8) or reapply power to the
MSC8101ADS. The MSC8101ADS LEDs (LD10, LD9) should flash.
Freescale Semiconductor, Inc.
For More Information On This Product,
31 1C 22 44 BF 84 90 C0 90 C0 90 C0 90 C0 90 C0
2
FF 84 00
0
0
Go to: www.freescale.com
0
0
0 FF FF FF FF
0 FF FF FF FF
0 FF FF FF FF FF FF FF FF FF FF FF FF
Transfer -> Send Text File
CLKIN
0
A
0
0
frequency, mode number, and where the
0
0
0 FF FF FF FF
0 FF FF FF FF
to point to the LEDblinker.s
................
................
1."D............
...............

Related parts for AN2157