RAM initalization

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RAM initalization

1,756 Views
NZ_Design
Contributor I
I have external RAM on my system. It is being automaticaly intialized when the system starts up. It is battery backed.

I whish it not to be altered. I are assuming there is a setting to stop this from happening. But where is it.

The memory is decleared as such

c file
#pragma DATA_SEG __GPAGE_SEG BATTERY_RAM
  volatile Prog_Layout   Program[MAX_PROGRAMS + 2];

prm file
      BATTERY_RAM       INTO  NO_INIT     0x200000'G TO 0x3FFFFF'G;   // CS1 BatteryRAM;

yet when the system is rebooted it has 64 in every byte.


anyone got any surgestions.


Labels (1)
0 Kudos
1 Reply

257 Views
CompilerGuru
NXP Employee
NXP Employee
Are you sure it the compiler startup code which inits your RAM?
I would guess it is something else, the NO_INIT should stop the linker from init your data, and also the startup code would 0-init it, and not write 0x40.
So I would guess that something in your battery backed RAM setup is not working properly and look in that direction.

Daniel

0 Kudos