DSPRelated.com
Forums

random problem-- need help

Started by sandeep kumar December 3, 2003
Hi
i am workin on Sharc 21060 blacktip Ex board.

i am facing a problem which is quite random in nature. In
Visual DSP enviorment whenever i go in to debugger and loads my
program on procesor, i expect the processor
to halt at main(), as i have selcted it in options.

but many a times it contnues to show running the program. also
when i halt it, i am able to see the dm variables in memory without
any data(intialsied to 0). also debugger dont show the window for C
program(source) it gives an error as "There is no source for
current PC". also i am not able to hardware reset the board.

though sometimes things goes very fine but most of time i face
this problem.

if anybody has ever faced a similar problem please help me out. what
can be the potential causes for it? i am relatively new to DSP
processors.

thanks in anticipation
sandeep



--- In , "sandeep kumar" <sandeep1980@h...> wrote:
> Hi
> i am workin on Sharc 21060 blacktip Ex board.
>
> i am facing a problem which is quite random in nature. In
> Visual DSP enviorment whenever i go in to debugger and loads my
> program on procesor, i expect the processor
> to halt at main(), as i have selcted it in options.
>
> but many a times it contnues to show running the program.
also
> when i halt it, i am able to see the dm variables in memory
without
> any data(intialsied to 0). also debugger dont show the window for C
> program(source) it gives an error as "There is no source for
> current PC". also i am not able to hardware reset the board.
>
> though sometimes things goes very fine but most of time i face
> this problem.
>
> if anybody has ever faced a similar problem please help me out.
what
> can be the potential causes for it? i am relatively new to DSP
> processors.

Firstly, if you have the emulator plugged in, you can't reset the
board (hard reset). This is a limitation of the emulator. If you
unplug the emulator pod and then reset, it should be fine.

Your symptoms seem to indicate that you have some interrupts occuring
that are unhandled. So before the processor can get to main(), it
jumps to what is popularly known as 'la la' land. So there is no
source associated with wherever the current PC is when you stop it.

Hope that explains things. You'll have to figure out what causes this
to happen, by disabling the run-to-main option. Try single stepping
after loading until you reach main(). Repeat as often as needed until
you can reproduce the behaviour.

Cheers
Bhaskar >
> thanks in anticipation
> sandeep