2024年4月17日发(作者:)

TI Downloader Program

The Downloader program must be installed using the program.

Follow the prompts and complete the

installation. If the installation doesn’t

complete, run the program a

second time.

The Downloader program can be

programmed with command line

arguments. This can be done by setting

up a shortcut to the program and then

setting the properties. The

program is placed in the Windows

directory so you will not have to include

the path to .

[/Ffilename] [/Xfrequency] [/Pport] [/Bbaud(download)] [/H] [/T[baud]] [/S] [/D]

All operands should immediately follow the switch character with no spaces. i.e.:

/ /B9600 /P1

If the filename, crystal frequency or port are not included then a screen will prompt for the values.

/Ffile hex file, #H in the Keil environment will substitute the hex file (required).

/Xfeq MSC1210 Clock frequency (required)

/Pport PC Comm port 1, 2, 3 or 4 (required)

/Bbaud Baud rate computed from xtal otherwise, standard rates

/H If this flag is present the configuration bytes will be erased

/Tbaud Requests a terminal window at 0ptional (baud) rate

/S Skip downloading and go directly to the terminal

/D Debug, Provides a small terminal of commands during download

/Esize Only erase (size K bytes) portion of program memory, This has no effect on

Data Flash in the Y2, Y3, and Y4 devices since the Data Flash is not accessible

during programming on those devices

/M Manual Reset (wait for confirmation before download)

If the /Xxx or /Pn command line parameters are not supplied, the Downloader program will wait for the

arguments with the following screen and open a dialog box for the file name. The Baud rates for Terminal

and Download are only shown if they are selected.

After these arguments have been supplied the program will attempt to download the Intel Hex file to the

MSC1210EVM. The serial communications with the MSC1210EVM board uses the connector for SIO0.

Using the information provided the Downloader program selects a baud rate, initializes the registers in the

MSC1210 and then transfers each line of the Hex file to the MSC1210 while showing the progress with the

following display.

When the downloading is finished, if the /T parameter is specified (or show terminal selected), the program

opens a terminal program which can be used to communicate with the MSC1210.

The buttons have the following functions

Open Log File Provides a method to log the activity to a file

Close Log File End logging and close the file

Properties Change Comm Port or properties

Load Basic File Used to retrieve a File and send it to the Comm port. Starts with NEW command

Save Basic Prog Issues LIST command and copies results to a file.

Reload Hex File Sends again the Hex file previously sent to the MSC1210

Reset Resets the MSC1210EVM by toggling the DTR signal.

Power Cycle Turns off the power for the MSC1210-DAQ-EVM which is powered from RS232 signals

Clear Screen Clears the terminal display

Under the File menu is listed the last command line arguments supply. Any argument can be selected,

edited and then used to restart the Downloader program with the new parameters.

The uVision Keil environment provides a method to call the program when it finished a

successful compilation. Simply select “Run User Program #1” and fill in the parameters desired.

It is also useful to define a command in the uVision Tools menu to perform the download operation. Then

the download can be invoked without first doing a compilation. Just create a command name „download‟,

then enter the parameters for that command in the fields specified.

The /H flag provides a means to program the Hardware Configuration Registers. They are located in a

separate 128 bytes of Flash memory. During serial programming these bytes are mapped from address

0x8000 to 0x807F. The /H flag directs that these bytes be erased so that they can then be programmed with

new values.

By adding an assembly language file to the project, these can be specified as follows:

; Define HCR0 and HCR1 while download Flash Programming

CSEG AT 0807EH

DB 0FCH ; 76:DBLSEL 54:ABLSEL 3:DAB 2:DDB 1:EGP0 0:EGP23

DB 0FFH ; 7:EPMA 6:PML 5:RSL 4:EBR 3:EWDR 210:DFSEL

END

While downloading the file this screen is displayed. The Total Lines are the number of lines in the Hex file.

The baud rate used is the baud rate specified in the /B parameter or the baud rate calculated from the /X

parameter. If a terminal is specified, then it will default to the same baud rate that is used to download the

program unless the /T is followed by a number to represent the desired baud rate.