Hello All,
in my linker file i have defined as below
PAGEF8 0xF88000 to 0xF8BFFF
APP_CONST_DATA INTO PAGEF8
while i have define a variable in
partnumber.c as below
#pragma CONST_SEG __PPAGE_SEG APP_CONST_DATA
volatile const partnumber[3]={1,2,3};
#pragma CONST_SEG DEFAULT
and in partnumber.h
#pragma CONST_SEG __PPAGE_SEG APP_CONST_DATA
extern volatile const partnumber[3];
#pragma CONST_SEG DEFAULT
and i trying to read this variable in appfile.c as below, but it is always reading garbage value instead of above mention values. I gave included partnumber.h in appfile.c
appdata[0] = partnumber[0];
appdata[1] = partnumber[1];
appdata[2] = partnumber[2];
what could be the reason , what am i doing wrong ? I am using HCS12X family controller.
Kind regards
Ketan