When defining initialized structure in FLASH: is somehow possible to redefine value of bytes not mentioned in initialization clause? Such values are defined as 0x00. But when variable is supposed as FLASH configuration structure which may be partially rewritten later directly from code then 0xFF is needed to do it without segment erase. Solution is to define thoroughly all parts as 0xFF of course but prone to forget something.
Example:
struct foo {
struct {
char x;
char y;
} bar[16];
};
const struct foo foo = {
bar: {
{x: 0},
{x: 1, y: 2},
{x: 3, y: 3}
}
};
Generated image:
00 00 01 02 03 03 00 00 00 00 00 00 00 00 ...
I need:
00 FF 01 02 03 03 FF FF FF FF FF FF FF FF ...