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
解決済! 解決策の投稿を見る。
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
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