This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to assign flash section address to sequence of variables.

Hi Team,

we need assign sequence of flash address to variables and we need to access the same with address.

Eg:

 0x3e000 is the flash address not used by application.

__root const uint16_t FLA_kold_version @ (0x3e000) = 0x0000;

// Days date rollover started (Day only, not Ticks)
__root const uint16_t FLA_rollover_started @ (0x3e000+ 0x10) = 0x0000;

// Days date kold expires (Day only, not Ticks)
__root const uint16_t FLA_kold_day_expires @ (0x3e000+ 0x20) = 0x0000;  etc..  like that we need to create the sequence of variables with fixed base address.

Is there any provision to create the variable in above manner, instead of assign combined sections.

Regards,

Srinivas.V

Related