Ramakrishna,
I think SDCC will add some initiiazation code to your executable file
which basically zeroed the data section. check it into the reference
manual for more information on this.
Add following routing into code and check if it works.
sdcc_external_startup()
{
return 1;
}
Thanks,
Saleem
On Mon, May 31, 2010 at 10:35 AM, ramakrishna reddy
<[email protected]> wrote:
> Hi everybody,
>
> This is ramakrishnareddy. i am using SDCC compiler to
> compile my CC2430 Tinyos code. There is a variable assigned to '1' in my
> code. when ever i compile and port my code on CC2430, variable value is
> taking as a '0' instead of '1'.
> That's why my code is getting wrong. when ever i erased that variable value
> and again assigned(just replacing with '1' itself) to '1', code is working
> properly. Please help me, what is the problem...........?
>
>
> --
> With Regards,
> RamakrishnaReddy.S
> CDAC,Bangalore.
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>
>
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user