Appendix F Example Hyperterminal Script File; Appendix G Troubleshooting - Motorola Digital dna MSC8101ADS Manual

Table of Contents

Advertisement

Running LEDblinker from Internal SRAM

Appendix F Example HyperTerminal Script File

The HRCW and address table example in this application note resides in sector 0 of Flash memory. The
application resides in sector 1. Scripts can be used with HyperTerminal to program Flash memory.
Erasing sectors are not included in the script because there is a delay when these commands are run, and
HyperTerminal does not have a way to delay between sending lines out the next line. Therefore, the
following commands can be manually typed into HyperTerminal.
Text files can be sent via HyperTerminal to automatically run commands on the MSC8101ADS.
The following script can be saved in a file (ex: hrcwAddrTable.txt) and sent through the HyperTerminal
menu
The next command programs the first vector in the address table at address 0xFF800110 to 0xFF840000.

Appendix G Troubleshooting

Description
1
Application does not run from reset
or power-up.
2
Application is not running correctly.
3
LEDs are not blinking using the
application in this application note.
4
Multiple backspaces may not work.
5
HyperTerminal not outputting.
18
Freescale Semiconductor, Inc.
0 sec_erase
1 sec_erase
Transfer -> Send Text File. The first four commands program the HRCW (0x2C00020A).
h2c000000 hff800000 program_word
h00000000 hff800008 program_word
h02000000 hff800010 program_word
h0a000000 hff800018 program_word
hff840000 hff800110 program_word
Table 5. Common Problems
Check the following:
SW10-1 (DBG) must be turned off. Verify that all switches and jumpers are set correctly.
Voltage levels (5 volts, 3.3 volts, MSC8101 core voltage).
Voltage on F1 (both sides of fuse) should be 5 volts. Check the MSC8101 data sheet and errata
for MSC8101 voltage. The MSC8101 voltage is set via RP2 on the MSC8101ADS.
Check that there is a clock (P16: clkout).
Rerun this procedure.
If there is a problem in a new application, ensure that the starting address is set up in the linker
command file, the Internal Memory Map Register (IMMR) is properly set up, and any required
software structures are pointing to the same address as what is in the IMMR.
Verify that a simple application is working, as in this procedure. A common problem is:
IMMR and/or IMM pointer in software does not match. CodeWarrior release 1.5 initializes the
IMMR[0–14] to 0x1470.
Run LED (LD17) should be on (green) when the application is running. The application discussed in
this application note assumes:
20 MHz crystal oscillator (U18) for a MSC8101 external system clock.
Application is running out of Flash memory. Running the application out of internal MSC8101
SRAM makes the LEDs appear on, since the application runs much faster out of internal SRAM
than out of external Flash memory. The delay time for keeping the LEDs on / off may need to be
changed in function FlashLED( ).
The Flash program supplied by Metrowerks may not support multiple backspaces in HyperTerminal.
Single backspaces to correct typing errors should be fine.
Serial cable must be connected to the upper RS-232 interface connector.
with the proper MSC8101ADS crystal oscillator frequency or HyperTerminal baud rate.
For More Information On This Product,
Go to: www.freescale.com
Solution or Corrective Action
calc.h
file was not set up

Advertisement

Table of Contents
loading

Table of Contents