This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Uninitialized FLASH resident array

Hi,

I'm trying to declare an array, that will be located in the FLASH memory, but not initialized.
I want it to be in a special location in the FLASH, but not to be filled in the HEX file.
I've tried to define an UNINIT attribute to the relevant region, but it didn't work.
Seems like the linker always fills the array location with zeros in the hex file.

The array defined as:
char buf[100] __attribute__( (section( "sect")));

the relevant part of the scatter file:
LOAD1 0x10000 0x1000
{ EXEC1 0x10000 UNINIT { * (sect) }
}

Is it possible to define such an array?

Thanks, Isak.