Reply by Richard Williams July 25, 20072007-07-25
Jeff,

Ammara stated that the program gets stuck in "in any other position".

This strongly hints that something is being clobered.
Probably the stack. Though it may be some random variables in memory.

I already replied to Ammara as to my suggestions for debugging the problem.

R. Williams

---------- Original Message -----------
From: "Jeff Brower"
To: "Ammara" <4...@niit.edu.pk>
Cc: c...
Sent: Mon, 23 Jul 2007 11:56:21 -0500 (CDT)
Subject: Re: [c6x] Implementing SS7 protocol stack in C on C6713 but it doesn't run completely!

> Ammara-
>
> > I am implementing SS7 protocol stack in C on C6713. I am
> > doing filing in it and I am dealing with arrays and strings. Problem
> > is that my program gets stuck in the middle or in any other position
> > during running condition. When I run the same program in C compiler
> > separately, it runs fine but in the Code Composer Studio v3.1, it gets
> > stuck and doesn't show the complete output.
> >
> > Could anyone help me telling what the real problem could be.
> > Is something wrong with the filing or with arrays, strings etc. or
> > some extra processing power or memory is needed?
>
> Your program gets stuck where? On which line of C code? Making what function call or C
> statement? You have to be specific.
>
> -Jeff
------- End of Original Message -------
Reply by Jeff Brower July 24, 20072007-07-24
Ammara-

> I am implementing SS7 protocol stack in C on C6713. I am
> doing filing in it and I am dealing with arrays and strings. Problem
> is that my program gets stuck in the middle or in any other position
> during running condition. When I run the same program in C compiler
> separately, it runs fine but in the Code Composer Studio v3.1, it gets
> stuck and doesn't show the complete output.
>
> Could anyone help me telling what the real problem could be.
> Is something wrong with the filing or with arrays, strings etc. or
> some extra processing power or memory is needed?

Your program gets stuck where? On which line of C code? Making what function call or C statement? You have to be
specific.

-Jeff
Reply by Richard Williams July 24, 20072007-07-24
ammara,

I cannot be sure with out detailed info (like the source code)
But from your description I suspect a few things are contributing to the problem.

First, the functions are not written in a re-entrant manner.
Second, some stack or heap area is being corrupted.
Third, another operation is being initiated before the prior operation is complete.

Some things that might help are...
double or triple buffering.
keeping 'busy' flags for buffers, setting when the buffer is in use and clearing afterward.
look for overrunning the end of buffers

Finally, if it works on one system but not another, it is almost certainly a coding problem
either with buffer reuse or pointer corruption.

R. Williams

---------- Original Message -----------
From: "ammara_67" <4...@niit.edu.pk>
To: c...
Sent: Sat, 21 Jul 2007 08:21:07 -0000
Subject: [c6x] Implementing SS7 protocol stack in C on C6713 but it doesn't run completely!

> Hi everybody,
>
> I am implementing SS7 protocol stack in C on C6713. I am
> doing filing in it and I am dealing with arrays and strings. Problem
> is that my program gets stuck in the middle or in any other position
> during running condition. When I run the same program in C compiler
> separately, it runs fine but in the Code Composer Studio v3.1, it gets
> stuck and doesn't show the complete output.
>
> Could anyone help me telling what the real problem could be.
> Is something wrong with the filing or with arrays, strings etc. or
> some extra processing power or memory is needed?
>
> Please I need help urgently.
>
> Thankyou all in advance
------- End of Original Message -------
Reply by ammara_67 July 23, 20072007-07-23
Hi everybody,

I am implementing SS7 protocol stack in C on C6713. I am
doing filing in it and I am dealing with arrays and strings. Problem
is that my program gets stuck in the middle or in any other position
during running condition. When I run the same program in C compiler
separately, it runs fine but in the Code Composer Studio v3.1, it gets
stuck and doesn't show the complete output.

Could anyone help me telling what the real problem could be.
Is something wrong with the filing or with arrays, strings etc. or
some extra processing power or memory is needed?

Please I need help urgently.

Thankyou all in advance