#===================================================================
# dBDownload
#
# Descripion: Sets up the registers to allow external memory reads/writes
#
#===================================================================
proc dBDownload { } {
puts [ format "Starting dB Download/n" ]
# halt the target
dsphalt -wait
puts [ format "Processor Halted/n" ]
# reset the target
dspreset -wait
puts [ format "Processor Reset/n" ]
# delay
for { set i 0 } { $i < 10000 } { incr i } { }
# set the external SDRAM registers to match the EZ-KIT
dspset $/EBIU_SDRRC "0x09DA"
dspset $/EBIU_SDBCTL "0x0001"
dspset $/EBIU_SDGCTL "0x049199AD"
puts [ format "SDRAM Initialised/n" ]
}
dBDownload
//---------------------------------------------------
source "E://ky_dsp//561.TCL"
Starting dB Download
Processor Halted
Processor Reset
SDRAM Initialised