Hi,
i am using the Global Variable Address Modifier (@address) to place eeprom variables at a specific location like:
const uint8 EEP_LOWER_TEMP @0x100000U = 85;
const uint8 EEP_UPPER_TEMP_MTR @0x100004U = 100;
const uint8 EEP_UPPER_TEMP_LED @0x100008U = 100;
We are using 4 byte aligement in the eeprom to simplify the writing. My question is how to fill the memory
between two variables? In my example i am using a 1 byte variable. The linker generates a section for each variable
witch is excatly as big as the variable. If i am using the linker to fill my whole eeprom i get conflicts with overlapping segments. If i do not fill there will be gabs in the .sx file.
EEPROM | = READ_ONLY 0x100000 TO 0x1007FF FILL 0xFF; |
...
EEPROM_PARAM | INTO EEPROM; |
is there a solution to combine the global variable adress modifier with the fill comand?
Regards Axel
I forgot to say that i am using a S12Z processor.
Hello Axel,
Could you please tell me which version of CW do you used ?
BR
Alice
Hello Alice,
i am using CW 10.6.4
BR
Axel
Hello Axel,
What data do you want to fill between two variable ?
And i think you do not need fill it, it will be 0 , does 0 can not meet your demand ?
If yes, please tell me why do you want fill it .
BR
Alice