MCUXPresso V11.5.0

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

MCUXPresso V11.5.0

跳至解决方案
477 次查看
a8Chcx
Contributor V

Hi,

I am using MCUXpreeso V11.5.0 and try to add the SDRAM Section in link file. I did the following:

In link file:

.....

SDRAM_00 (RW) : ORIGIN = 0x70000000, LENGTH = 0x400000 /* 4M bytes (alias RAM4) */

...

.SDRAM_00_data :
{
. = ALIGN(4);

KEEP(*(.SDRAM_00_data .SDRAM_00_data.*))
. = ALIGN(4);

} > SDRAM_00

In my main.c:

char test_array[1024] __attribute__((section(".SDRAM_00_data")));

memset(test_array, 0x00, 1024);

 

It works fine after compiling because I can see 1K is in SDRAM range.

But, when I generate the *.S19 file, this area is also included in *.S19 file.

Can you tell me how to remove it from *.S19 file?

Thanks,

Christie

0 项奖励
回复
1 解答
439 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

To exclude the .SDRAM_00_data section from the generated .S19 file in MCUXpresso, you can modify your linker script to mark this section as NOLOAD. This tells the linker not to include this section in the output file.

Best regards,
Omar

在原帖中查看解决方案

0 项奖励
回复
1 回复
440 次查看
Omar_Anguiano
NXP TechSupport
NXP TechSupport

To exclude the .SDRAM_00_data section from the generated .S19 file in MCUXpresso, you can modify your linker script to mark this section as NOLOAD. This tells the linker not to include this section in the output file.

Best regards,
Omar

0 项奖励
回复