Reply by Amit Nayak May 22, 20032003-05-22
Hi
I am looking forward to any suggestions for the
problem i am currently facing
with Code composer studio 'c5416 ver 2.10.05 for the
TMS320VC5416 DSK.

I have included the math.h file in the program and it
still turns out that the
cos and the sin function are not referenced properly.
I keep getting the symbol
referencing errors for the "_cos_Fd" and "_sin_Fd" in
the .obj file for the
project.

Also in my .cmd file I am getting an error for the
arguements.
"The Application Argument Memory (.args) is not found"
in the .cmd file
what could be going wrong there?

hope some of you might give some insight.
thanks
amit j.
__________________________________



Reply by michel memeteau May 20, 20032003-05-20
Hi there

I would say that the arg section in your cmd file is missing , so try to take
another cmd file as an example , so I
guess you math functions are using constant in this args sections which is in
the ROM of the DSP ..... hope I
help!!!

22/05/03 23:49:35, Amit Nayak <> a rit:

>Hi
>I am looking forward to any suggestions for the
>problem i am currently facing
>with Code composer studio 'c5416 ver 2.10.05 for the
>TMS320VC5416 DSK.
>
>I have included the math.h file in the program and it
>still turns out that the
>cos and the sin function are not referenced properly.
>I keep getting the symbol
>referencing errors for the "_cos_Fd" and "_sin_Fd" in
>the .obj file for the
>project.
>
>Also in my .cmd file I am getting an error for the
>arguements.
>"The Application Argument Memory (.args) is not found"
>in the .cmd file
>what could be going wrong there?
>
>hope some of you might give some insight.
>thanks
>amit j. >
>__________________________________ >_____________________________________
>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: Send an email to
>
>To Post: Send an email to
>
>To Leave: Send an email to
>
>Archives: http://www.yahoogroups.com/group/c54x
>
>Other Groups: http://www.dsprelated.com >">http://docs.yahoo.com/info/terms/
____****************______

Michel memeteau
Bat 24A Les vallons du roy
13821 La Penne/ Huveaune

0624808051
0491886375 www.freechelmi.fr.fm

ICQ : 138498950
____****************______



Reply by Tony Zampini March 11, 20032003-03-11
Amit,
As I was looking into your problem, I ran accross a problem of my own!
I am unable to open a watch window in the DSK5416 CCS IDE. I don't
have the option for it in the View Menu, nor do I have the toolbar
button. What am I missing here.

Back to your problem. I don't seem to have the problem you are
having. How did you come to the conclusion that the values are
wrong? Did you see wrong values in a watch window? Did you look at the
memory locations where the array is stored? Or some other way.

Just for kicks, try moving your "myarray" initialization statment
outside of main(), and see if you have the same problem.

Let us know what happens.

Tony

----- Original Message -----
From: "Amit Nayak" <>
To: "Tony Zampini" <>; <>
Sent: Monday, March 10, 2003 5:34 PM
Subject: Re: [c54x] array problems! > hi
> thanks for ur mail. sorry about the typo in my mail.
> yes i have the curly brackets in the original program.
>
> but the problem persists regarding the incorrect
> values in the variable once it encounters a negative
> one or lower decimal value.
> did u experience such an anomaly before?
> hope to hear soon
> thanks
> --- Tony Zampini <> wrote:
> > Hi,
> >
> > I think you want to use curly braces instead of
> > square braces
> > when you initialize arrays. For example:
> >
> > float
> >
> myarray[7]={-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89};
> >
> > How did you get away without getting a compiler
> > error???
> >
> > Tony
> >
> > ----- Original Message -----
> > From: "nayakam" <>
> > To: <>
> > Sent: Monday, March 10, 2003 1:55 PM
> > Subject: [c54x] array problems!
> >
> >
> > > Hello everybody,
> > > I am looking forward to any suggestions for the
> > problem i am
> > > currently facing with Code composer studio 'c5416
> > ver 2.10.05 for the
> > > TMS320VC5416 DSK.
> > >
> > > I am using a few pre-initialised arrays in the
> > program and though the
> > > arrays are defined as float values, whenever the
> > value goes lower
> > > than -1(negative one), the corresponding values
> > stored in the array
> > > variables are in error.
> > >
> > > example: include files:
> > dsk5416.h,stdlib.h,stdio.h,dsplib.h,tms320.h
> > >
> > > void main()
> > > {
> > > int i;
> > > float
> >
> myarray[7]=[-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89];
> > > float myaction[7];
> > > float mudata;
> > > ....
> > >
> > > for(i=0;i<7;i++)
> > > myaction[i]=myarray[i]*mudata;
> > > ....
> > > }
> > >
> > >
> > > in the above sample when i am checking the values
> > stored in the
> > > variable "myarray" during the execution of the
> > program, the values
> > > are in error starting from the fourth value
> > corresponding to -1.04.
> > > All other values after that are also in error.
> > >
> > > kindly suggest if there is something which I am
> > missing.
> > >
> > > thanks in anticipation.
> > > sincerely,
> > >
> > > amit j.
> > >
> > >
> > >
> > > _____________________________________
> > > 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: Send an email to
> >
> > >
> > > To Post: Send an email to
> > >
> > > To Leave: Send an email to
> >
> > >
> > > Archives: http://www.yahoogroups.com/group/c54x
> > >
> > > Other Groups: http://www.dsprelated.com
> > >
> > >
> > > ">http://docs.yahoo.com/info/terms/
> > >
> > >
> >
> >
> >
> > _____________________________________
> > 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: Send an email to
> >
> >
> > To Post: Send an email to
> >
> > To Leave: Send an email to
> >
> >
> > Archives: http://www.yahoogroups.com/group/c54x
> >
> > Other Groups: http://www.dsprelated.com
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> > __________________________________________________ > _____________________________________
> 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: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/




Reply by Jeff Brower March 11, 20032003-03-11
Amit-

You just say "error". When you expect -1.04, what value do you actually see?

I don't normally use floating-point libraries in C54x code, but I might guess is
that
one possibility is that some type of 16-bit fractional notation is enabled. In
that
case the range would be something like -1 to +0.999969 (or -1 to 32767/32768).

Jeff Brower
DSP sw/hw engineer
Signalogic

Amit Nayak wrote:
>
> hi
> thanks for ur mail. sorry about the typo in my mail.
> yes i have the curly brackets in the original program.
>
> but the problem persists regarding the incorrect
> values in the variable once it encounters a negative
> one or lower decimal value.
> did u experience such an anomaly before?
> hope to hear soon
> thanks
> --- Tony Zampini <> wrote:
> > Hi,
> >
> > I think you want to use curly braces instead of
> > square braces
> > when you initialize arrays. For example:
> >
> > float
> >
> myarray[7]={-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89};
> >
> > How did you get away without getting a compiler
> > error???
> >
> > Tony
> >
> > ----- Original Message -----
> > From: "nayakam" <>
> > To: <>
> > Sent: Monday, March 10, 2003 1:55 PM
> > Subject: [c54x] array problems!
> >
> >
> > > Hello everybody,
> > > I am looking forward to any suggestions for the
> > problem i am
> > > currently facing with Code composer studio 'c5416
> > ver 2.10.05 for the
> > > TMS320VC5416 DSK.
> > >
> > > I am using a few pre-initialised arrays in the
> > program and though the
> > > arrays are defined as float values, whenever the
> > value goes lower
> > > than -1(negative one), the corresponding values
> > stored in the array
> > > variables are in error.
> > >
> > > example: include files:
> > dsk5416.h,stdlib.h,stdio.h,dsplib.h,tms320.h
> > >
> > > void main()
> > > {
> > > int i;
> > > float
> >
> myarray[7]=[-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89];
> > > float myaction[7];
> > > float mudata;
> > > ....
> > >
> > > for(i=0;i<7;i++)
> > > myaction[i]=myarray[i]*mudata;
> > > ....
> > > }
> > >
> > >
> > > in the above sample when i am checking the values
> > stored in the
> > > variable "myarray" during the execution of the
> > program, the values
> > > are in error starting from the fourth value
> > corresponding to -1.04.
> > > All other values after that are also in error.
> > >
> > > kindly suggest if there is something which I am
> > missing.
> > >
> > > thanks in anticipation.
> > > sincerely,
> > >
> > > amit j.



Reply by Amit Nayak March 10, 20032003-03-10
hi
thanks for ur mail. sorry about the typo in my mail.
yes i have the curly brackets in the original program.

but the problem persists regarding the incorrect
values in the variable once it encounters a negative
one or lower decimal value.
did u experience such an anomaly before?
hope to hear soon
thanks
--- Tony Zampini <> wrote:
> Hi,
>
> I think you want to use curly braces instead of
> square braces
> when you initialize arrays. For example:
>
> float
>
myarray[7]={-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89};
>
> How did you get away without getting a compiler
> error???
>
> Tony
>
> ----- Original Message -----
> From: "nayakam" <>
> To: <>
> Sent: Monday, March 10, 2003 1:55 PM
> Subject: [c54x] array problems! > > Hello everybody,
> > I am looking forward to any suggestions for the
> problem i am
> > currently facing with Code composer studio 'c5416
> ver 2.10.05 for the
> > TMS320VC5416 DSK.
> >
> > I am using a few pre-initialised arrays in the
> program and though the
> > arrays are defined as float values, whenever the
> value goes lower
> > than -1(negative one), the corresponding values
> stored in the array
> > variables are in error.
> >
> > example: include files:
> dsk5416.h,stdlib.h,stdio.h,dsplib.h,tms320.h
> >
> > void main()
> > {
> > int i;
> > float
>
myarray[7]=[-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89];
> > float myaction[7];
> > float mudata;
> > ....
> >
> > for(i=0;i<7;i++)
> > myaction[i]=myarray[i]*mudata;
> > ....
> > }
> >
> >
> > in the above sample when i am checking the values
> stored in the
> > variable "myarray" during the execution of the
> program, the values
> > are in error starting from the fourth value
> corresponding to -1.04.
> > All other values after that are also in error.
> >
> > kindly suggest if there is something which I am
> missing.
> >
> > thanks in anticipation.
> > sincerely,
> >
> > amit j.
> >
> >
> >
> > _____________________________________
> > 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: Send an email to
>
> >
> > To Post: Send an email to
> >
> > To Leave: Send an email to
>
> >
> > Archives: http://www.yahoogroups.com/group/c54x
> >
> > Other Groups: http://www.dsprelated.com
> >
> >
> > ">http://docs.yahoo.com/info/terms/
> >
> >
> _____________________________________
> 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: Send an email to > To Post: Send an email to
>
> To Leave: Send an email to > Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/


__________________________________________________


Reply by Tony Zampini March 10, 20032003-03-10
Hi,

I think you want to use curly braces instead of square braces
when you initialize arrays. For example:

float myarray[7]={-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89};

How did you get away without getting a compiler error???

Tony

----- Original Message -----
From: "nayakam" <>
To: <>
Sent: Monday, March 10, 2003 1:55 PM
Subject: [c54x] array problems! > Hello everybody,
> I am looking forward to any suggestions for the problem i am
> currently facing with Code composer studio 'c5416 ver 2.10.05 for the
> TMS320VC5416 DSK.
>
> I am using a few pre-initialised arrays in the program and though the
> arrays are defined as float values, whenever the value goes lower
> than -1(negative one), the corresponding values stored in the array
> variables are in error.
>
> example: include files: dsk5416.h,stdlib.h,stdio.h,dsplib.h,tms320.h
>
> void main()
> {
> int i;
> float myarray[7]=[-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89];
> float myaction[7];
> float mudata;
> ....
>
> for(i=0;i<7;i++)
> myaction[i]=myarray[i]*mudata;
> ....
> } > in the above sample when i am checking the values stored in the
> variable "myarray" during the execution of the program, the values
> are in error starting from the fourth value corresponding to -1.04.
> All other values after that are also in error.
>
> kindly suggest if there is something which I am missing.
>
> thanks in anticipation.
> sincerely,
>
> amit j. >
> _____________________________________
> 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: Send an email to
>
> To Post: Send an email to
>
> To Leave: Send an email to
>
> Archives: http://www.yahoogroups.com/group/c54x
>
> Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/



Reply by nayakam March 10, 20032003-03-10
Hello everybody,
I am looking forward to any suggestions for the problem i am
currently facing with Code composer studio 'c5416 ver 2.10.05 for the
TMS320VC5416 DSK.

I am using a few pre-initialised arrays in the program and though the
arrays are defined as float values, whenever the value goes lower
than -1(negative one), the corresponding values stored in the array
variables are in error.

example: include files: dsk5416.h,stdlib.h,stdio.h,dsplib.h,tms320.h

void main()
{
int i;
float myarray[7]=[-0.67,-0.89,-0.34,-1.04,-1.34,-1.67,-0.89];
float myaction[7];
float mudata;
....

for(i=0;i<7;i++)
myaction[i]=myarray[i]*mudata;
....
} in the above sample when i am checking the values stored in the
variable "myarray" during the execution of the program, the values
are in error starting from the fourth value corresponding to -1.04.
All other values after that are also in error.

kindly suggest if there is something which I am missing.

thanks in anticipation.
sincerely,

amit j.