Sign in

username:

password:



Not a member?

Search code-comp



Search tips

Subscribe to code-comp



code-comp by Keywords

ARM7 | BIOS | Bug | EVM | JTAG | Linker | LOG_printf | McBSP | Profiling | Relocation | RTDX | Simulator | Target | Watch

Discussion Groups

Discussion Groups | Code-Composer | setting zero as initial value for C code in CCS

Technical discussions about Code Composer Studio.

  

Post a new Thread

setting zero as initial value for C code in CCS - ahma...@yahoo.com - May 5 9:06:19 2008



Hi;
I have written a source code and tested it in visual C but when I built and ran it on C64DSK it
did not work properly. I understood that its fault was due to the initial values for my general
and static variables in code; In visual C all of these variables are set to zero but I don't
know how can I set all of my variables and arrays in Code Composer to have zero value as
initial value. Could you help me?

REGARDS

------------------------------------

OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

RE: setting zero as initial value for C code in CCS - "Shrikant Dudyal. Sangappa,Bangalore" - Jun 17 13:20:14 2008



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )

Re: setting zero as initial value for C code in CCS - Sandip Acharya - Jun 18 7:46:50 2008

Hi,

In CCS, all the global and static variables are also initialize to zero.
As i see, by defalut you are assuming all the temp variables and general
purpose variables are also zero.
Which does not work always .... Because all thses variables store into
Stack.

You have to initialize all the valiables which goes to stack to zero
manually.

The otherway to cross check, you can reset to your statck memory to zero
before executing the program.
Be careful, about initial few address ....still it is not gurentee that your
program will work properly.

Hope, you got your answer.
Please revert me back if you need any other help.

Regards,
Sandip

On 5/5/08, a...@yahoo.com <a...@yahoo.com> wrote:
>
>   Hi;
> I have written a source code and tested it in visual C but when I built and
> ran it on C64DSK it did not work properly. I understood that its fault was
> due to the initial values for my general and static variables in code; In
> visual C all of these variables are set to zero but I don't know how can I
> set all of my variables and arrays in Code Composer to have zero value as
> initial value. Could you help me?
>
> REGARDS



(You need to be a member of code-comp -- send a blank email to code-comp-subscribe@yahoogroups.com )