AnsweredAssumed Answered

i use 9s12xep100 . in DFLASH area i defined a const variable,  but in S19 file,  there is no record about this const variable.

Question asked by zheng xuguang on May 2, 2017
Latest reply on May 3, 2017 by ZhangJennie

hi !

i use 9s12xep100 . in DFLASH area i defined a const variable,  but in S19 file,  there is no record about this const variable.

 

prm file like this

 

SEGMENTS

      EEPROM_00     = READ_ONLY   DATA_FAR IBCC_FAR  0x000800 TO 0x000BFF;
      EEPROM_01     = READ_ONLY   DATA_FAR IBCC_FAR  0x010800 TO 0x010BFF;
      EEPROM_02     = READ_ONLY   DATA_FAR IBCC_FAR  0x020800 TO 0x020BFF;

 

 

END

 

PLACEMENT

 CALI_DATA        INTO EEPROM_01;

END

 

main file like this

 

#pragma  DATA_SEG  __GPAGE_SEG  CALI_DATA

 

volatile const  unsigned int   test[3] = {1 , 3 , 4};

 

#pragma  DATA_SEG  DEFAULT
 

 

void main(void) {
  /* put your own code here */
 
  unsigned int  a_test = test[0];
  unsigned char cnt;
 
  for(cnt=0;cnt<3;cnt++)
  {
    a_test = test[cnt];
    a_test++;
  }
    
 
  for(;;)
   {
      a_test++;
   
  }
}

 

i use codewarrior compile this project ,  and in MAP file i checked that

- VARIABLES:
     test                                     10800       6       6       4   CALI_DATA  

 

bus the s19 file has no record about "test" variable


S123C000CF2100C6055B134A802CFE4A8000FE0000C015C051000000000000000000000051
S123C0200000000000000000000000000000000000000000000000000000000000000000FC
S116C04000000000000000000000000000000000000000E9
S105FFFEC0003D
S224FE8000C6105B1018FC040069ADE6808759180B100010B74518ECE204006C811862816235
S224FE802080E680C10325E318628120FBFEC011FDC00F270E35ED31EC3169700434FB3103F5
S219FE804026F2FEC013EC31270BED31180A30700434F920F10AC4
S9030000FC

 

my question is:   why there is no record information about DFLASH const variable "test" in s19 file.1

 

thanks all!

Outcomes