Reply by Victor Miramontes April 26, 20022002-04-26
Hmmm. I believe that I have noticed this. What I have been doing is
programming the flash with a small test program and then I would disconnect
the programming cable and then hit the rest button. My program will get
through the first few lines which have the watchdog service routines and
then I purpousely delay the next watchdog routine so that it times out and
what I believe is happening is that I seems to begin to reset but where it
goes from there is beyond me. It just seems to get stuck and doesn't seem to
jump back into main(). My best guess at this moment is that it is jumping
into some unhandled reset vector but I am unable to verfiy this without the
use of the debugger.

Any suggestions.
Victor
void main (void)
{
WatchDog();
InitializeChip();
WatchDog();
while(1)
{
WatchDog();
ioctl(PortB, GPIO_SET, gpioPin(B, 0));
Delay(250);
WatchDog();
ioctl(PortB, GPIO_CLEAR,gpioPin(B, 0));
Delay(250);
WatchDog();
ioctl(PortB, GPIO_SET, gpioPin(B, 0));
Delay(250);
WatchDog();
ioctl(PortB, GPIO_CLEAR,gpioPin(B, 0));
Delay(1000); <-------------------------------should and does expire cop
timer here.
Delay(1000);
WatchDog();
ioctl(PortB, GPIO_SET, gpioPin(B, 0));
Delay(100);
WatchDog();
ioctl(PortB, GPIO_CLEAR,gpioPin(B, 0));
Delay(100);
WatchDog();
ioctl(PortB, GPIO_SET, gpioPin(B, 0));
ioctl(PortB, GPIO_CLEAR,gpioPin(B, 1));
Delay(250);
ioctl(PortB, GPIO_SET,gpioPin(B, 1));

}
void WatchDog(void){
periphMemWrite(0x5555, &ArchIO.Cop.ServiceReg );
periphMemWrite(0xAAAA, &ArchIO.Cop.ServiceReg );

return;
}
void Delay(word delay1)
{ int i;
for(i=0; i<delay1; i++) nanosleep(&mSecond, NULL);
return;
}
-----Original Message-----
From: Motorola DSPD News [mailto:]
Sent: Friday, April 26, 2002 10:20 AM
To: vmiramont;
Subject: RE: [motoroladsp] (COP ) Module DSP56F807 Victor,

COP will not work in debug mode. If you are using CodeWarrior debugger, it
will disable COP. The only way to use COP is to run your application in
stand-along mode (without debugger attached).

Leonard N. Elevich
Motorola DSPD

-----Original Message-----
From: vmiramont [mailto:]
Sent: Thursday, April 25, 2002 2:35 PM
To:
Subject: [motoroladsp] (COP ) Module DSP56F807

Hey guys,

I am trying to use the Computer Operating Properly (COP) Module and
am having some trouble. My problem is that the DSP will not reset
when the timer expires. I just gets stuck. Does anybody know if I
missed any configuration parameters

Thanks In Advance
Victor

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/


Reply by Motorola DSPD News April 26, 20022002-04-26
Victor,

COP will not work in debug mode. If you are using CodeWarrior debugger, it
will disable COP. The only way to use COP is to run your application in
stand-along mode (without debugger attached).

Leonard N. Elevich
Motorola DSPD

-----Original Message-----
From: vmiramont [mailto:]
Sent: Thursday, April 25, 2002 2:35 PM
To:
Subject: [motoroladsp] (COP ) Module DSP56F807

Hey guys,

I am trying to use the Computer Operating Properly (COP) Module and
am having some trouble. My problem is that the DSP will not reset
when the timer expires. I just gets stuck. Does anybody know if I
missed any configuration parameters

Thanks In Advance
Victor

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of
this message will receive your answer. You need to do a "reply all" if you
want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3 ">http://docs.yahoo.com/info/terms/



Reply by vmiramont April 25, 20022002-04-25
Hey guys,

I am trying to use the Computer Operating Properly (COP) Module and
am having some trouble. My problem is that the DSP will not reset
when the timer expires. I just gets stuck. Does anybody know if I
missed any configuration parameters

Thanks In Advance
Victor