We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.