Define NOINIT section by using Freemaker

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Define NOINIT section by using Freemaker

1,346 Views
EugeneHiihtaja
Senior Contributor I

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

Labels (1)
0 Kudos
3 Replies

1,227 Views
soledad
NXP Employee
NXP Employee

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

0 Kudos

1,227 Views
EugeneHiihtaja
Senior Contributor I

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

0 Kudos

1,227 Views
soledad
NXP Employee
NXP Employee

Hello Eugene,

Unfortunately, that is not possible since this is dependent on the way the linker+compiler works.

0 Kudos