Part Number: LP-AM243
Hello,
I'm seeking a method to maintain a struct variable in RAM persistently across warm resets of the main domain.
To achieve this, I've designated the variable with the attribute __attribute__((section(".noinit"))). In the linker script, I've defined a section for this purpose, ensuring that a distinct memory segment is allocated.
Here's a snippet from the linker script:
.noinit (NOLOAD): {
*(.noinit*)
} > NOINIT_MEMNOINIT_MEM: ORIGIN = 0x70100000 - 0x480, LENGTH = 0x480
Aside from this, I have tried attribute noinit and persistent, all results in the same thing.
Upon invoking SOC_generateSwWarmResetMainDomain();, the memory location resets to zeroes.
Could you advise on the appropriate steps to maintain variable retention across resets?
