Define NOINIT section by using Freemaker

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Define NOINIT section by using Freemaker

1,399 次查看
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,280 次查看
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,280 次查看
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,280 次查看
soledad
NXP Employee
NXP Employee

Hello Eugene,

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

0 项奖励