Hi Sudhersan,
I'm not working with MPC500-series chips at the moment, but the usual
approach is to declare/use a "non-init" segment. Most compilers will
generate startup code that initialises all RAM apart from the non-init
segment.
I'm not sure of the details for doing this on your specific platform
(compiler, in particular). However, your compiler manual should
contain something on the subject.
As an alternative, you could tweak the startup code itself to skip a
certain location(s). Not recommended, but often done.
Geoff
--- In
MPC500@..., Sudhersan Lal <sudhersanl@...> wrote:
>
> Hello Everyone
> Anybody know or can help me to find out more information regarding
the initialization value of SRAM contents during power up .
> I would like to save some values in sram so that I can read that
back after a reset , for eg saving a byte value and its compliment
and check the consistency between these two variables . This would
make sure that, the value is really what I saved prior to reset and
not the garbage value which would appear in the memory after a power up.
> Any existing behavior known for mpc microcontrollers related to this?
> if it is stored like the value and its compliment , what is the
probability of the random initial values in two bytes to be compliment
of each other and mistaken as the good value
> Regards
> Sudhersan