Hi !
I try to use MCU Settings in MCUXpresso ( I use LPS55S69 SDK and etc.) for define FLASH and RAM sections with NOINIT attributes.
But looks like any section what was added is added to common pool with .bss and etc attributes.
How-to via MCU settings or via Freemaker scripts define NOLOAD sections what looks like this in final linker file:
.text_Flash3 0x10090000 (NOLOAD) :
{
PROVIDE (__flash3_start = .);
KEEP(*(.flash3_storage*))
PROVIDE (__flash3_end = .);
}
.data_SRAM4 0x30042000 (NOLOAD) :
{
__sram4_start = .;
KEEP(*(.sram4*))
__sram4_end = .;
}
Regards,
Eugene
Hi,
Please check the following link and let me know if this helps,
GNU Linker, can you NOT Initialize my Variable? | MCU on Eclipse
Regards
Soledad
Hi soledad !
How to define NOLOAD by direct modifcation of linker script is not cause any problems.
But would be nice to use MCU setting in Xpresso IDE and Freemaker genarator.
In this case section will be inserted to automaticly generated script like it done for other type of sections
in SDK example freertos_mpu_ns.
Does it possible ?
Now any new ram area is included in bss and etc . sections what is not expected.
Regards,
Eugene
Hello Eugene,
Unfortunately, that is not possible since this is dependent on the way the linker+compiler works.