Freescale Semiconductor DSP56374 User Manual page 176

24-bit digital signal
Table of Contents

Advertisement

Using The Serial EEPROM Boot Mode
18
data in P, X and Y order -
19
must make up whole 24 bit words
-
-
-
-
PstartAddress2 00
-
PstartAddress1 04
-
PstartAddress0 00
(final word is start address of rogram to run)
The above example would store: $004567 words from P:$400
And will start running from P:$400 once all of the data has been downloaded.
Format used in EEPROM
The format that should be used to store the data on the DSP is Intel HEX format, an example and
explanation of this is given below: -
:10008000AF5F67F0602703E0322CFA92007780C361
:1000900089001C6B7EA7CA9200FE10D2AA00477D81
:0B00A00080FA92006F3600C3A00076CB
:00000001FF
Now look at the top line...
* The first character (:) indicates the start of a record.
* The next two characters indicate the record length (10h in this case).
* The next four characters give the load address (0080h in this case).
* The next two characters indicate the record type (see below).
* Then we have the actual data.
* The last two characters are a checksum (sum of all bytes + checksum = 00).
The last line of the file is special, and will always look like that above.
Record types:
* 00 - Data record
* 01 - End of file record
* 02 - Extended segment address record
* 03 - Start segment address record
* 04 - Extended linear address record
* 05 - Start linear address record
Listing of the boot code
Below is the boot code used in this mode: -
TITLE 'SerialBootloader';Name of Program
;BootROM equ
$FFFF00
HCKR
equ
$FFFF90
HCSR
equ
$FFFF91
HRX
EQU
$FFFF94
HTX
EQU
$FFFF93
if
qROM
define
mHPORT
A-6
$433521 words from X:$500
$246456 words from Y:$600
;ROM boot area.
;SHI Clock Control Register.
;SHI Control/Status Register.
;SHI Receive Data FIFO
;SHI Transmit Data Register
"x"
;need to change to X for 374
DSP56374 Users Guide, Rev. 1.2
Freescale Semiconductor

Advertisement

Table of Contents
loading

Table of Contents