DSPRelated.com
Forums

Reset of TI DSP

Started by Daniel April 6, 2005
Hi everybody!

I use the TI DSP C6713 with the CCS Compiler and have a (hopefully)
simple question? Is there a way to reset the whole DSP automatically
from the C-Code, maybe periodically?

I burnt the program I want to use in the flash, so a reset would
restart the program, but re-initialize all the variables. Is that
right?

Thanks a lot
Daniel
d.lohausen@freenet.de (Daniel) writes:

> Hi everybody! > > I use the TI DSP C6713 with the CCS Compiler and have a (hopefully) > simple question? Is there a way to reset the whole DSP automatically > from the C-Code, maybe periodically?
Sure - branch to the reset interrupt vector. It's location is implementation-defined.
> I burnt the program I want to use in the flash, so a reset would > restart the program, but re-initialize all the variables. Is that > right?
Yes. -- Randy Yates Sony Ericsson Mobile Communications Research Triangle Park, NC, USA randy.yates@sonyericsson.com, 919-472-1124
Daniel wrote:

> I use the TI DSP C6713 with the CCS Compiler and have a (hopefully) > simple question? Is there a way to reset the whole DSP automatically > from the C-Code, maybe periodically?
This one worked for me, but I'm not sure that it is a valid solution (still in alpha state): call a function at address 0x0. In C-code this is done so: void (*Reset)(void) = 0; Reset();
> I burnt the program I want to use in the flash, so a reset would > restart the program, but re-initialize all the variables. Is that > right?
Yes, *if* you use autoinitialization at runtime (linker option). Auto- initialization at load time does not reinitialize all variables. bye Andreas -- Andreas H�nnebeck | email: ah@despammed.com ----- privat ---- | www : http://www.huennebeck-online.de Fax/Anrufbeantworter: 0721/151-284301 GPG-Key: http://www.huennebeck-online.de/public_keys/andreas.asc
I have a secret key press that will soft boot my product.  This turns
off ints, and jumps to the program's entry point.  Thru some trickery I
made it so my program's entry point is always 0x80000000. This does not
reload the program from flash though.

To reaload the program, you could just simulate the first steps of the
bootloader, for example load the first 1K of your bootloader from ROM
and jump to that.

-howy

On 6 Apr 2005 01:31:00 -0700, d.lohausen@freenet.de (Daniel) wrote in
comp.dsp:

> Hi everybody! > > I use the TI DSP C6713 with the CCS Compiler and have a (hopefully) > simple question? Is there a way to reset the whole DSP automatically > from the C-Code, maybe periodically? > > I burnt the program I want to use in the flash, so a reset would > restart the program, but re-initialize all the variables. Is that > right? > > Thanks a lot > Daniel
I haven't used this TI DSP, but use the 2812. Does yours have a watchdog timer built in? On the 2812, one periodically has to write 0xAA, 0x55 to the watchdog to keep it from timing out. The really nice thing is that writing any value other than those two causes it to generate an immediate hardware reset of the chip. See if your C6713 has the same feature. -- Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/ alt.comp.lang.learn.c-c++ http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html