Here are the basic steps to uploading programs:
•
Configure the dspstak 21262sx to operate in Mode 6.
•
Connect to an ASCII Terminal Program via RS-232 or USB. USB is faster.
o
If RS-232 is used, a 9 pin to 9 pin cable with no twists is appropriate on PC
compatible computers. The default serial configuration is 19.2K, N, 8, 1.
Handshaking lines are ignored. There is a command to change the baud rate to
higher speeds. If you don’t know the current baud rate, you can reset the baud via
Mode 7 to 19.2K.
o
If USB is used, the baud settings are ignored and the interface will operate like a very
fast COM port.
•
Power Up or Reset the dspstak 21262sx. You should see a
DSP>
prompt followed by
moving
#
symbols. After about 5 seconds, the application program will boot unless you press
a key to interrupt the boot process. This will bring a new
DSP>
prompt signifying
Command Mode.
•
Type
?
to view a list of available commands.
•
Type
U
to upload a new program file. Your program must be a *.ldr (ADI loader file) with
the following parameters:
o
Boot Type = SPI Slave
o
Format = Binary
o
Width = 8
You may also use the
UA
command to upload a similar file in ASCII format. This will take
longer.
After you confirm the upload, the bootloader will erase all user flash memory space. At the
"Ready:" prompt use your ASCII terminal program to send the .ldr file. Make sure you
enable the "binary transfer" option.
In Tera Term Pro, choose "Send File..." from the "File" menu. Click the "Binary" checkbox,
and then open your .ldr file.
As the file transfers, you will see one progress mark for every 32 bytes transferred. Data
transfer must be continuous. If the host stops sending data for more than approximately
500ms, the bootloader will assume that the code upload is complete and terminate the
transfer.
dspstak™ 21262sx User Manual
Page 19