MCUXPresso V11.5.0

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

MCUXPresso V11.5.0

Jump to solution
585 Views
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 Kudos
Reply
1 Solution
547 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
548 Views
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 Kudos
Reply