Other Parts Discussed in Thread: AM3359
Hi,
We have a piece of internal SRAM on the AM3359 being used as a reboot check and we have mapped it using the following define in the "c" file:
u32_t boot_image[4] __attribute__((section (".bootvars")));
The bootvars section is defined in the AM3359.cmd file as:
SECTIONS
{
#ifndef M3_CORE /* A8 memory map */
.bootvars: SRAM_END /* End of internal SRAM for reboot logic */
The problem we are having is that the linker is putting .bootvars in the .cinit area as you can see from the map file:
800868c8 00000008 (.cinit..bootvars.load) [load image, compression = zero_init]
We don't want the memory cleared but left alone. Is there a linker command we can add to the .cmd file that will
keep the linker from zero initializing it?
Thanks,
John C.