Tool comand language for ADSP-BF561

来源:互联网 发布:linux uuidgen 编辑:程序博客网 时间:2024/05/18 19:42


#===================================================================
# 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

原创粉丝点击