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 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
Reply by Andreas Huennebeck●April 6, 20052005-04-06
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
Reply by ●April 6, 20052005-04-06
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
Reply by Daniel●April 6, 20052005-04-06
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