PROGDSC User Manual
PROGDSC User Manual
PROGDSC
1 OVERVIEW..................................................................................................... 1
1.1 Programming Algorithms (.DSP Files) ........................................................... 2
1.2 Start-Up Configuration.................................................................................... 2
1.3 Manual Programming ..................................................................................... 2
1.4 Scripted Programming.................................................................................... 3
1.5 Hardware Interfaces ....................................................................................... 3
2 PROGRAMMING ALGORITHMS ................................................................... 4
2.1 Algorithm File Contents .................................................................................. 4
3 PROGRAMMING COMMANDS...................................................................... 7
3.1 Listing of Commands...................................................................................... 8
3.2 Legacy Commands ...................................................................................... 12
4 START-UP CONFIGURATION..................................................................... 14
5 CONNECTION MANAGER........................................................................... 18
5.1 Additional Settings........................................................................................ 20
5.2 Connect and Choose Algorithm ................................................................... 21
6 MANUAL PROGRAMMING .......................................................................... 23
6.1 Manual Programming Procedure ................................................................. 23
7 SCRIPTED PROGRAMMING (CPROGDSC)............................................... 25
8 HARDWARE INTERFACES ......................................................................... 26
8.1 Multilink and Multilink FX.............................................................................. 26
8.2 Cyclone LC and Cyclone FX ........................................................................ 28
1 OVERVIEW
PROGDSC is PEmicro’s programming software for Flash/EEPROM modules that are
attached to a DSC processor. PROGDSC talks to the processor's background debug
module using one of PEmicro’s compatible hardware interfaces. These interfaces
connect a PC running Windows 7/8/10 to a debug connector on the target system.
This connector provides access to the debug signals of the processor chip mounted
on your target system hardware board.
As part of the programming procedure, the user will need to select a programming
algorithm that will enable the PROGDSC software to properly manage their specific
target device during programming. The user may also choose to set certain
programming parameters before beginning to program. This chapter presents a brief
overview of the programming procedure.
An up-to-date list of ARM devices supported by PROGACMP where users can locate
1
PROGDSC User Manual
2
PROGDSC User Manual
3
PROGDSC User Manual
2 PROGRAMMING ALGORITHMS
PEmicro’s .DSP programming algorithm files define the functions necessary for
PROGDSC to program a DSC processor’s internal flash or connected external Flash/
EEPROM. After you choose the appropriate algorithm, it will appear in the
Configuration Window.
2.1.1 Comments
Comments are usually placed in the file to identify the target system for which the
.DSP file was written and what module on the target system it programs, as well as
other useful information. If a specific .DSP file is selected in PROGDSC, these
comments are shown in the window at the bottom of the PC screen. Within the
algorithm file a semicolon is used to designate the beginning of a comment.
4
PROGDSC User Manual
USER=uuuuuuuuuuuuuuuuuuuuuuNpppppppppp/llllllll/
uuuuuuuu/
Where:
USER= is the keyword to identify the line
uuuuuuuuuuuuuuuuuuuuuu is the 22 character string placed in the selection
menu window on the PC screen. The first few characters define the menu select
function and should be unique.
N is a single numeric digit between 0 and 4. If it is zero, the program will not ask
for a user parameter. If it is non-zero, the user will be asked for a parameter with
N hexadecimal digits. This parameter will be passed to the corresponding user
routine in RAM.
pppppppppp is the 10 character prompt used to solicit the user input parameter.
/ is required for error checking.
llllllll is an 8 hex character lower bound on the user parameter.
uuuuuuuu is an 8 hex character upper bound on the user parameter.
2.1.4 S-Records
Any line in the programming algorithm file starting with an "S" in column 1 is
considered an S-record. S1, S2 and S3 records are allowed. S7, S8 and S9
termination records are ignored. PROGDSC uses the address field on the first S
record detected in the file as the starting address of target RAM. Each .DSP file in the
library contains a programming algorithm for a particular device.
The S records are loaded into on chip RAM on the DSC microcontroller and provide
the functions necessary to carry out the functions specified. All other records are
written to the screen when the .DSP file is selected for programming. PROGDSC
programming algorithm files must have the DOS filename extension ".DSP" in order
for PROGDSC to find them. The files are in ASCII and are thus readable using most
5
PROGDSC User Manual
text editors. The S records for a .DSP file can be generated using most assemblers.
6
PROGDSC User Manual
3 PROGRAMMING COMMANDS
When the user performs manual programming, commands are executed by selecting
them from the Choose Programming Function Window pick list. The user may either
use the up/down arrow keys or type the two-letter abbreviation for the command
(listed below) on the command line to select a command. Pressing ENTER causes the
selected command to execute. Commands can also be executed from the Menus or
from the Button Bar. If there is any additional information needed in order to execute
the command, the user will be prompted for this information in a new window. Errors
caused by a command or any other responses will be presented in the Status Window.
Below is a representation of a typical PROG Choose Programming Function Window,
with commands organized by category.
7
PROGDSC User Manual
Note: At any given time, or for a particular module, some of the commands may not
be active. Inactive commands are indicated as such in the Choose
Programming Functions Window and will not execute.
8
PROGDSC User Manual
address of the module. This address is used as the beginning address for the module
during programming and verification. Certain .DSP files, such as those for external
flash algorithms, will prompt the user for the base address of the module.
3.1.9 Erase a specific page of memory. Please read the chip's reference manual to
determine the size of each flash page.HE - Help
Opens this PROGDSC user manual.
9
PROGDSC User Manual
This command should be used with care to avoid mis-programming. Most users
should use the QO command instead.
10
PROGDSC User Manual
Before programming, all queued data files are combined into a single data file. QO
replaces the legacy SS command. The CQ command clears this queue. A more
detailed description is available at:
https://www.pemicro.com/blog/index.cfm?post_id=250
3.1.14 QU - Quit
Terminates PROGDSC and returns to Windows.
3.1.16 RELAYSOFF - Turn off the relays that provide power to the target
(Multilink FX & Cyclone only)
Includes a power down delay if specified. Especially useful for users who want to
power cycle their board before running tests, allow their bootloader to run, or have the
application code run after programming.
11
PROGDSC User Manual
12
PROGDSC User Manual
In addition, there is one function that is allowed to be unique to the module being
programmed. The selection menu name and the length of up to one hexadecimal
parameter may be specified in a supporting .DSP file.
13
PROGDSC User Manual
14
PROGDSC User Manual
4 START-UP CONFIGURATION
The PROGDSC software may be started in a way that enables certain optional
parameters, which can assist the programming process. To set these command-line
parameters, highlight the Windows Icon for the PROGDSC executable, right-click, and
select “Properties” from the pop-up File Menu. The “General” Properties tab should
open by default. There are several parameters that you may then include on the
command line. A description of each is listed below, followed by specific examples of
how these parameters are used.
Syntax:
PROGDSC [bdm_speed n] [reset_delay][interface=x]
[port=y] [-usebyteaddr]
Where:
Optional parameters are in brackets [ ]. The parameters are described as follows:
14
PROGDSC User Manual
PARALLEL
[port=y] Where the value of y is one of the following (see the
showports command-line parameter for a list of
connected hardware; always specify the "interface" type
as well):
15
PROGDSC User Manual
Examples:
INTERFACE=CYCLONE
PORT=MyCyclone99
INTERFACE=CYCLONE "PORT=Joe's Max"
UNIQUEID USB Multilink products all have a unique
serial number assigned to them, such as
PE5650030. The Multilink may be referred
to this number. This is useful in the case
where multiple units are connected to the
same PC.
Examples:
INTERFACE=USBMULTILINK
PORT=PE5650030
16
PROGDSC User Manual
Example
CPROGDSC C:\ENGINE.CFG Interface=USBMULTILINK Port=USB1
Example
CPROGDSC C:\ENGINE.CFG Interface=CYCLONE Port=209.61.110.251
Example 3
CPROGDSC C:\ENGINE.CFG Interface=USBMULTILINK Port=USB1 bdm_speed 0
17
PROGDSC User Manual
5 CONNECTION MANAGER
Before programming your device, you will need to connect to your target using a
compatible PEmicro hardware interface. Interface options for PROGDSC are
discussed in Section 8 - HARDWARE INTERFACES
Once you have physically connected your PC to your target using the hardware
interface, and the appropriate drivers are installed, the following Connection Manager
dialog will appear:
The Connection Manger allows you to choose the interface that you wish to use and
configure the connection.
Use the Interface drop-down menu to choose the type of interface that you plan to
use.
16
PROGDSC User Manual
Then select the interface from those available, which are listed in the Port drop-down
list. The Refresh List button to the right may be used to update the list of available
interfaces:
Next, you should select the appropriate CPU from the Target CPU Information drop-
down menu:
17
PROGDSC User Manual
18
PROGDSC User Manual
19
PROGDSC User Manual
With the appropriate algorithm selected, you are ready to begin programming.
20
PROGDSC User Manual
6 MANUAL PROGRAMMING
The Choose Programming Function Window (see Figure 3-1) lists commands that are
available to execute. Any of the programmer’s enabled features can be selected using
the mouse, the up and down arrow keys, or by typing the two-letter command
abbreviations that appear to the left of the list of programming functions into the Status
Window. The Status Window also displays any error messages that might result from
the commands that you perform.
Pressing ENTER or double clicking the mouse in the Choose Programming Function
Window will execute the highlighted entry if it is enabled. The user will be prompted
for any additional information that is required to execute the selected function. Before
you can program a module from an S record file, you must select such a file. If you try
to execute a program module function and you have not selected a file, you will be
asked to select one.
20
PROGDSC User Manual
4. a) Use the "EM" (Erase Module) command to erase the module at that
location. The process of erasing the module will vary according to the
size of the flash, but should take no longer than 30 seconds. If this proce-
dure seems to be taking much longer than 30 seconds, then the computer
is probably not getting a proper response from the board. If this is the
case:
b) Check the jumper setting on your target board, as well as the
programming voltage.
5. Some programming algorithms have a special command, such as "BE,"
for block erase. If you are unable to double-click the "EM" (Erase Module)
command, try using the "BE" (Block Erase) command. Some commands
are hidden and you may need to use the scroll bar to scroll down to these
commands.
6. You may check to see whether or not the module has been erased by
double-clicking the "BM" command (Blank Check Module). If the flash is
not properly erased then this command will give you an error message.
You may also check the contents of the memory locations by double-click-
ing the "SM" (Show Module) command. If the flash has been erased
properly then all the memory locations will display "FF".
7. Now use the "SS" command (Specify S Record) to load the object file
(.S19), which you should have generated previously by using a compiler
or an assembler. This command will ask for the name of the .S19 file.
8. Now you ready to program the flash. Double click the "PM" command
(Program Module) to begin the programming process.
9. In order to check the results, use the "SM" command (Show Module) with
the appropriate base address to view the contents of the flash. You should
see that the flash has been correctly programmed. You may also double-
click the “VM” command (Verify Module) to verify that all the bytes of the
flash are correctly programmed.
21
PROGDSC User Manual
For complete instructions on how to configure and execute the CPROGDSC scripted
programmer, please see the CPROGDSC User Guide.
22
PROGDSC User Manual
8 HARDWARE INTERFACES
PEmicro’s Multilink Universal, Multilink Universal FX, and Cyclone LC/FX Universal
are compatible hardware interfaces for use with PROGDSC. The USB Multilink
Universal and USB Multilink Universal FX are development tools that communicate
via USB and will enable you to debug your code and program it onto your target. The
Cyclone LC/FX Universal are more versatile and robust development tools that
communicate via Ethernet, USB, or Serial Port, and include advanced features and
production programming capabilities, as well as Ethernet support.
Below is a review of their features and intended usage.
Multilink Universal enables you to debug, program, and test your code on your board.
8.1.3 Software
Multilink debug probes work with NXP’s MCUXpresso, Kinetis and S32 Design
Studios, Codewarrior, as well as PEmicro’s flash programmer, PROGDSC.
8.2.4 Software
The Cyclone LC and Cyclone FX come with intuitive configuration software and
interactive programming software, as well as easy to use automated control software
call. These Cyclones also function as full-featured debug interfaces, and are
supported by software from PEmicro and third-party vendors.