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!
Hello
No EEPROM content shown in S19 file is because the burner.bbl missed non-banked EEPROM. I did the modification in burner.bbl for you, see attached.
/* logical non banked EEPROM at $0C00 to logical */
len = 0x400
origin = 0x000C00
destination = 0x000C00
SENDBYTE 1 "%ABS_FILE%"
/* logical non banked EEPROM at $0800 to logical */
len = 0x100
origin = 0x000800
destination = 0x000800
SENDBYTE 1 "%ABS_FILE%"
/* logical non banked EEPROM at $0C00 to global */
len = 0x400
destination = 0x13FC00
origin = 0x000C00
SENDBYTE 1 "%ABS_FILE%"
/* logical non banked EEPROM at $0800 to global */
len = 0x100
destination = 0x100000
origin = 0x000800
SENDBYTE 1 "%ABS_FILE%"
With the new bbl file, compile the C sample code, you can see this line added in s19 file:
S11208001245486F772061726520796F7521006A
I will also attach my demo project.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------