extern FreezeFrameRecType* FreezeFrameMirrorBuffer[];\r
static ExtDataRecType priMemExtDataBuffer[DEM_MAX_NUMBER_EXT_DATA_PRI_MEM] __attribute__ ((section (".dem_eventmemory_pri")));\r
AgingRecType priMemAgingBuffer[DEM_MAX_NUMBER_AGING_PRI_MEM] __attribute__ ((section (".dem_eventmemory_pri")));\r
-AgingRecType AgingMirrorBuffer[DEM_MAX_NUMBER_AGING_PRI_MEM] __attribute__ ((section (".")));\r
+extern AgingRecType HealingMirrorBuffer[DEM_MAX_NUMBER_AGING_PRI_MEM];\r
\r
/* block in NVRam, use for freezeframe */\r
extern const NvM_BlockIdType FreezeFrameBlockId[DEM_MAX_NUMBER_FF_DATA_PRI_MEM];\r
NvM_GetErrorStatus(AgingBlockId, &requestResult);\r
/* if writing is not busy,copy priMemFreezeFrameBuffer to NVRam permanent RAM*/\r
if (requestResult != NVM_REQ_PENDING){\r
- memcpy(AgingMirrorBuffer, priMemAgingBuffer, sizeof(priMemAgingBuffer));\r
- (void)NvM_WriteBlock(AgingBlockId, (const uint8 *)AgingMirrorBuffer);\r
+ memcpy(HealingMirrorBuffer, priMemAgingBuffer, sizeof(priMemAgingBuffer));\r
+ (void)NvM_WriteBlock(AgingBlockId, (const uint8 *)HealingMirrorBuffer);\r
AgingIsModified = FALSE; \r
}\r
else{\r
//judge whether NVM is busy\r
if(!(requestResult & NVM_REQ_PENDING)){\r
//copy the permanent RAM to priMemAgingBuffer\r
- memcpy(priMemAgingBuffer, AgingMirrorBuffer, sizeof(priMemAgingBuffer));\r
+ memcpy(priMemAgingBuffer, HealingMirrorBuffer, sizeof(priMemAgingBuffer));\r
}\r
else{\r
\r