Define NOINIT section by using Freemaker

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Define NOINIT section by using Freemaker

1,438件の閲覧回数
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

ラベル(1)
0 件の賞賛
3 返答(返信)

1,319件の閲覧回数
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 件の賞賛

1,319件の閲覧回数
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 件の賞賛

1,319件の閲覧回数
soledad
NXP Employee
NXP Employee

Hello Eugene,

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

0 件の賞賛