Tao Shen

How to initialize the RAM of  MC9S08SG8?

Discussion created by Tao Shen on Mar 27, 2008
Latest reply on Mar 31, 2008 by Tao Shen

I want to initialize the unused RAM with zero. I got two ideas, need you guys give me more information.

1. The RAM will be initialized in startup code which auto-created when create a new project follow the start dialog. No more hand-writtened code should be added. But i have try it. It seems doesn't work.

2.Modify the *.PRM file as follows
   RAM  =  READ_WRITE   0x0100 TO 0x027F  FILL 0x00;
   It seems has effect. But i want to ensure it is feasible and appropriate. Is there any latent unexpected side effect.

Need more experience from all of you.

Outcomes