MCUXPresso V11.5.0

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
450件の閲覧回数
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 解決策
412件の閲覧回数
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 返信
413件の閲覧回数
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 件の賞賛
返信