DSPRelated.com
Forums

Initializing registers in VisualDSP debugger...

Started by Unknown January 3, 2001


Hi,

When I load data into external sram on my target hardware I've got to preset
SYSCON to 0x7010. If I fail to do this the portion that loads to external sram
fails to verify (ie, load properly). When I'm running from flash I have the
boot-kernal set SYSCON before it loads the program.

Anyone know if there is a way to have the VisualDSP debugger preset this
register before it loads the .dxe image? I.e., with a script file or some such?
Presently I manually set this register each time I reload.

Thanx...




I had the same problem. I don't have the manual here, but I think that
there is a section (maybe an appendix) in the VDSP Debugger Manual on
writing TCL scripts for use in the debugger. I wrote a quick script that I
call on startup of the debugger to add a menu to the toolbar that I use to
reset the processor and set the SYSCON and WAIT registers. It is shown
below (it is nearly a copy of an example in the documentation).

proc SpecReset { id } {
dspset \$SYSCON 0x00007010
dspset \$WAIT 0x35ad45a6
set sysval [ dspeval \$SYSCON ]
set waitval [ dspeval \$WAIT ]
puts [ format "Processor Reset, SYSCON = %s, WAIT = %s" $sysval $waitval ]
}

set id [ dspaddmenuitem "MV1100:Reset" SpecReset -info "Demo menu item" ]
puts [ format "Menu ID %d installed.\n" $id ] I found this to be a big time-saver. Good luck.

Derek ----- Original Message -----
From: <>
To: <>
Sent: Wednesday, January 03, 2001 4:09 PM
Subject: [adsp] Initializing registers in VisualDSP debugger...

Hi,

When I load data into external sram on my target hardware I've got to preset
SYSCON to 0x7010. If I fail to do this the portion that loads to external
sram
fails to verify (ie, load properly). When I'm running from flash I have the
boot-kernal set SYSCON before it loads the program.

Anyone know if there is a way to have the VisualDSP debugger preset this
register before it loads the .dxe image? I.e., with a script file or some
such?
Presently I manually set this register each time I reload.

Thanx...

To Join: Send an email to

To Post: Send an email to

To Leave: Send an email to

Archives: http://www.egroups.com/group/adsp

Other Groups: http://www.dsprelated.com



On Wed, 3 Jan 2001 13:09:24 -0800, wrote:

> Anyone know if there is a way to have the VisualDSP debugger preset this
> register before it loads the .dxe image? I.e., with a script file or some
such?
> Presently I manually set this register each time I reload.

The debugger has a built-in TCL interpreter, and this was greatly
enhanced with the new C++ support (although I haven't investigated the
details of the enhancements). You can specify a TCL script to invoke on
the debugger command line, and you could poke the register in that
script.

Kenneth Porter
Kensington Laboratories, Inc.
mailto:
http://www.kensingtonlabs.com