DSPRelated.com
Forums

Reg:JTAG Debug Problem

Started by venkat arvapalli September 7, 2007
Hi All,
I am using XDS560 PCI emulator inorder to debug the DSP code running on DM642. By using Parallel Debug Manager I was able to connect the DSP Board which consists of four DM642's and after that i was able to load my DSP.out file into each DM642 Processor. But While running the dsp code i am facing the following error
Error:
Error 0x00000022/-1154
Error during: Memory, Execution,
The memory at 0x01BC0000 continually indicated it was 'not ready'
The emulator was unable to regain control of the processor.
The processor must be reset.

Then immedaitely the system was rebooted because the watchdog timer was expired.

Any suggestions regarding this will be appreciated.

Thanks and Reagards
Venki

---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
Venki-

> I am using XDS560 PCI emulator inorder to debug the DSP code running
> on DM642. By using Parallel Debug Manager I was able to connect the
> DSP Board which consists of four DM642's and after that i was able
> to load my DSP.out file into each DM642 Processor. But While running
> the dsp code i am facing the following error
>
> Error:
> Error 0x00000022/-1154
> Error during: Memory, Execution,
> The memory at 0x01BC0000 continually indicated it was 'not ready'
> The emulator was unable to regain control of the processor.
> The processor must be reset.
>
> Then immedaitely the system was rebooted because the watchdog timer
> was expired.
>
> Any suggestions regarding this will be appreciated.

I assume that your board design allows the JTAG chain to be "shorted" to just one DSP, using zero-ohm Rs. Configure
your chain for just one DSP, then run CCS + Parallel Debug Manager again for one DSP, and verify all functions are
working (code download, code run, memory tests, etc).

It can be difficult to separate hardware vs. software issues in multi-DSP JTAG chain situations. It's crucial to
design the hardware so any DSP in the JTAG chain can be bypassed using zero-ohm Rs, creating a shorter chain.

-Jeff


don't you have a jumper to inhibit the Watch Dog.


If you take control over the DSP via JTAG you cannot any more be real time, DSP is halted, so it cannot refresh the watch dog, and then it resets.

If you are in this case, usually designs provide a jumper to prevent the watch dog to reset the board in case of debugging.








From: venkat arvapalli <a...@yahoo.co.in>
To: c...
Subject: [c6x] Reg:JTAG Debug Problem
Date: Fri, 7 Sep 2007 14:22:31 +0100 (BST)





Hi All,

I am using XDS560 PCI emulator inorder to debug the DSP code running on DM642. By using Parallel Debug Manager I was able to connect the DSP Board which consists of four DM642's  and after that i was able to load my DSP.out file into each DM642 Processor. But While running the dsp code i am facing the following error

Error:
Error 0x00000022/-1154
Error during: Memory, Execution,
The memory at 0x01BC0000 continually indicated it was 'not ready'
The emulator was unable to regain control of the processor.
The processor must be reset.

 

Then immedaitely the system was rebooted because the watchdog timer was expired.

 

Any suggestions regarding this will be appreciated.

 

Thanks and Reagards

Venki




5, 50, 500, 5000 - Store N number of mails in your inbox. Click" target="_blank" rel="nofollow">http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/">Click here.

__._,_.___







">http://www.dsprelated.com/groups/c6x/1.php



_____________________________________

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:



Archives:  http://www.dsprelated.com/groups/c6x/1.php



To Post:  Send an email to c...



Other DSP Related Groups: http://www.dsprelated.com/groups.php









stime89363624













__,_._,___
My suggestion...

When debugging, kill the code that enables the watchdog.
Perhaps by incorporating a Conditional Compile switch the causes the watchdog enable code to not be
produced.

Regarding "memory at 0x01BC0000"
Is that memory area mapped by your linker command file?
Is that memory area even in existence?

I would suspect a 'wild' pointer that needs correction.

suggestion:
--don't enable the watchdog while debugging
--put a breakpoint in the exception handler that is catching the problem.

When the code reaches the breakpoint, check all the register values AND the stack area to determine
in what function the error occurred and what instruction performed the error, that go to the source
code at that instruction address and debug the problem.

R. Williams
---------- Original Message -----------
From: "christophe blouet"
To: a...@yahoo.co.in, c...
Sent: Sat, 08 Sep 2007 08:37:19 +0200
Subject: RE: [c6x] Reg:JTAG Debug Problem

> don't you have a jumper to inhibit the Watch Dog.
>
> If you take control over the DSP via JTAG you cannot any more be real time, DSP is halted,
> so it cannot refresh the watch dog, and then it resets.
>
> If you are in this case, usually designs provide a jumper to prevent the watch dog to
> reset the board in case of debugging.
>
> -----------------------------------
> From: venkat arvapalli
> To: c...
> Subject: [c6x] Reg:JTAG Debug Problem
> Date: Fri, 7 Sep 2007 14:22:31 +0100 (BST)
>
> Hi All,
>
> I am using XDS560 PCI emulator inorder to debug the DSP code running on DM642. By using
> Parallel Debug Manager I was able to connect the DSP Board which consists of four DM642's
> and after that i was able to load my DSP.out file into each DM642 Processor. But While
> running the dsp code i am facing the following error
>
> Error:
> Error 0x00000022/-1154
> Error during: Memory, Execution,
> The memory at 0x01BC0000 continually indicated it was 'not ready'
> The emulator was unable to regain control of the processor.
> The processor must be reset.
>
> Then immedaitely the system was rebooted because the watchdog timer was expired.
>
> Any suggestions regarding this will be appreciated.
>
> Thanks and Reagards
>
> Venki
>
> -----------------------------------
> 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
>
>
------- End of Original Message -------


Richard,


you're right, this address looks like a peripheral register address that has been put into the address map.


try to see the map of the emulator...and paste it here








From: "Richard Williams" <r...@lewiscounty.com>
To: "christophe blouet" <c...@hotmail.com>,a...@yahoo.co.in, c...
Subject: RE: [c6x] Reg:JTAG Debug Problem
Date: Sun, 9 Sep 2007 11:52:57 -0700
>My suggestion...
>
>When debugging, kill the code that enables the watchdog.
>Perhaps by incorporating a Conditional Compile switch the causes the watchdog enable code to not be
>produced.
>
>Regarding "memory at 0x01BC0000"
>Is that memory area mapped by your linker command file?
>Is that memory area even in existence?
>
>I would suspect a 'wild' pointer that needs correction.
>
>suggestion:
>--don't enable the watchdog while debugging
>--put a breakpoint in the exception handler that is catching the
problem.
>
>When the code reaches the breakpoint, check all the register values AND the stack area to determine
>in what function the error occurred and what instruction performed the error, that go to the source
>code at that instruction address and debug the problem.
>
>
>
>R. Williams
>
>
>---------- Original Message -----------
>From: "christophe blouet" <c...@hotmail.com>
>To: a...@yahoo.co.in, c...
>Sent: Sat, 08 Sep 2007 08:37:19 +0200
>Subject: RE: [c6x] Reg:JTAG Debug Problem
>
> > don't you have a jumper to inhibit the Watch Dog.
> >
> > If you take control over the DSP via JTAG you cannot any more be real time, DSP is halted,
> > so it cannot refresh the watch dog, and then it resets.
> >
> >
If you are in this case, usually designs provide a jumper to prevent the watch dog to
> > reset the board in case of debugging.
> >
> > -----------------------------------
> > From: venkat arvapalli <a...@yahoo.co.in>
> > To: c...
> > Subject: [c6x] Reg:JTAG Debug Problem
> > Date: Fri, 7 Sep 2007 14:22:31 +0100 (BST)
> >
> > Hi All,
> >
> > I am using XDS560 PCI emulator inorder to debug the DSP code running on DM642. By using
> > Parallel Debug Manager I was able to connect the DSP Board which consists of four DM642's
> > and after that i was able to load my DSP.out file into each DM642 Processor. But While
> > running the dsp code i am facing the following error
> >
> > Error:
>
> Error 0x00000022/-1154
> > Error during: Memory, Execution,
> > The memory at 0x01BC0000 continually indicated it was 'not ready'
> > The emulator was unable to regain control of the processor.
> > The processor must be reset.
> >
> > Then immedaitely the system was rebooted because the watchdog timer was expired.
> >
> > Any suggestions regarding this will be appreciated.
> >
> > Thanks and Reagards
> >
> > Venki
> >
> > -----------------------------------
> > 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
> >
> >
>------- End of Original Message -------
>

__._,_.___







">http://www.dsprelated.com/groups/c6x/1.php



_____________________________________

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:



Archives:  http://www.dsprelated.com/groups/c6x/1.php



To Post:  Send an email to c...



Other DSP Related Groups: http://www.dsprelated.com/groups.php









stime89423980













__,_._,___