Help for init value of SRAM in MPC 562

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown Help for init value of SRAM in MPC 562

by Sudhersan Lal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
 


     

[Non-text portions of this message have been removed]


RE: Help for init value of SRAM in MPC 562

by Randall Young :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is definitely possible to find different values in SRAM at power-on.  Some are more common than others, but short power outages can change just a few bits.

I would suggest using a 32 bit CRC rather than a single inverted byte.  That greatly reduces the chances of an error not being detected (although still not zero).

Randall Young
Sr Software Engineer
Navcom Technology, Inc.
A John Deere Company

> -----Original Message-----
> From: MPC500@... [mailto:MPC500@...] On Behalf Of
> Sudhersan Lal
> Sent: Tuesday, July 01, 2008 8:43 PM
> To: MPC500@...
> Subject: [MPC500] Help for init value of SRAM in MPC 562
>
> 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
>


fdpnmailgwapp3.dpn.deere.com made the following annotations
---------------------------------------------------------------------
CONFIDENTIALITY. This electronic mail and any files transmitted with it may contain information proprietary to NavCom Technology, Inc., or one of its affiliates, and are intended solely for the use of the individual or entity to whom they are addressed, shall be maintained in confidence and not disclosed to third parties without the written consent of the sender. If you are not the intended recipient or the person responsible for delivering the electronic mail to the intended recipient, be advised that you have received this electronic mail in error and that any use, dissemination, forwarding, printing, or copying of this electronic mail is strictly prohibited. If you have received this electronic mail in error, please immediately notify the sender by return mail.
---------------------------------------------------------------------


Re: Help for init value of SRAM in MPC 562

by Geoff Field :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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