Technical discussions about the TI C55x DSPs (including the c5501, c5502, c5503, c5507, c5509, c5510 and OMAP5910).
I decided to write a very simple C program and then upload that to my DSK5510 only to discover that I could not assign variables; simple assignments such as C=0; did not work. Any idea why simple variable assignments will not work? I’m guessing there is something I need to include or some setting that needs to be adjusted to let the compiler work properly. Is there anything I can check for further troubleshooting? Joe
Anyone have something to say? I decided to write a very simple C program and then upload that to my DSK5510 only to discover that I could not assign variables; simple assignments such as > >C=0; > >did not work. > >Any idea why simple variable assignments will not work? I’m guessing there is something I need to include or some setting that needs to be adjusted to let the compiler work properly. > >Is there anything I can check for further troubleshooting? > >Joe
Hi,
Silly question, silly reply:
Did you do the following?
unsigned int C;
void main (void)
{
C=3D0;
}
Gwyn Evans
Mobile Video Systems
Drachenseestr 12
81373 M=FCnchen
+4989491689 (Tel)
+491733510658 (Mobile)
+498936105615 (Fax)
-----Original Message-----
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of
j...@yahoo.com
Sent: 23 September 2006 06:09
To: c...@yahoogroups.com
Subject: [c55x] Re: Silly Compiler Question (variables not working)
Anyone have something to say?=20=20
I decided to write a very simple C program and then upload that to my
DSK5510 only to discover that I could not assign variables; simple
assignments such as=20
>
>C=3D0;
>
>did not work.
>
>Any idea why simple variable assignments will not work? I=92m guessing
there is something I need to include or some setting that needs to be
adjusted to let the compiler work properly.
>
>Is there anything I can check for further troubleshooting?
>
>Joe
=20
Are you looking the values of the variable in the watch window? Sometimes with -o3 level of optimisation, watch window doesnt show the correct values. Looking up memory is advisable. Hope this helps, Namana j...@yahoo.com wrote: Anyone have something to say? I decided to write a very simple C program and then upload that to my DSK5510 only to discover that I could not assign variables; simple assignments such as > >C=0; > >did not work. > >Any idea why simple variable assignments will not work? I’m guessing there is something I need to include or some setting that needs to be adjusted to let the compiler work properly. > >Is there anything I can check for further troubleshooting? > >Joe
Hi Joe,
=20
I think you do not have code that actually does some work on c variable,
that=92s why compiler might optimizing the code. Try to declare c as volati=
le.
=20
- Prakash=20
=20
_____=20=20
From: c...@yahoogroups.com [mailto:c...@yahoogroups.com] On Behalf Of Gwyn
Evans
Sent: Tuesday, September 26, 2006 4:03 PM
To: j...@yahoo.com; c...@yahoogroups.com
Subject: RE: [c55x] Re: Silly Compiler Question (variables not working)
=20
Hi,
Silly question, silly reply:
Did you do the following?
unsigned int C;
void main (void)
{
C=3D0;
}
Gwyn Evans
Mobile Video Systems
Drachenseestr 12
81373 M=FCnchen
+4989491689 (Tel)
+491733510658 (Mobile)
+498936105615 (Fax)
-----Original Message-----
From: c55x@yahoogroups. <mailto:c55x%40yahoogroups.com> com
[mailto:c55x@yahoogroups. <mailto:c55x%40yahoogroups.com> com] On Behalf Of
joe_neophyte@ <mailto:joe_neophyte%40yahoo.com> yahoo.com
Sent: 23 September 2006 06:09
To: c55x@yahoogroups. <mailto:c55x%40yahoogroups.com> com
Subject: [c55x] Re: Silly Compiler Question (variables not working)
Anyone have something to say?=20
I decided to write a very simple C program and then upload that to my
DSK5510 only to discover that I could not assign variables; simple
assignments such as=20
>
>C=3D0;
>
>did not work.
>
>Any idea why simple variable assignments will not work? I=92m guessing
there is something I need to include or some setting that needs to be
adjusted to let the compiler work properly.
>
>Is there anything I can check for further troubleshooting?
>
>Joe
=20
=20