Split from: Placing data and the heap in external SDRAM

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I'm fiddling with linker script file for few days, but I'm unable to resolve why is any which is not allocated and placed in .bss_sdram section consuming flash capacity. When placing same variable to .bss section then everything is right and bss space is consumed.

below are stats from file in berkley and sysV format:

 

text       data        bss        dec        hex    filename

195374      54132       8428     257934      3ef8e    DEVICE_EXAMPLE1.elf

 

DEVICE_EXAMPLE1.elf  :
section               size         addr
.test                  200   3489792000
.reset              131080   2147516416
.rela.got                0   2147647496
.text                56584   2147647496
.exception             512   2147704320
.rodata               6496   2147704832
.dalign                  4            4
.data                 1816            8
.bss                  4104         1824
.comment                48            0
.debug_aranges        7472            0
.debug_pubnames      16852            0
.debug_info         258541            0
.debug_abbrev        35170            0
.debug_line         135022            0
.debug_frame         20208            0
.debug_str           55196            0
.debug_loc           78224            0
.debug_macinfo    43151121            0
.stack                4096        61440
.bss_sdram           52304   3489660928
.heap              1048576   3489713232
.debug_ranges         8744            0
Total             45072370

 

linker script is enclosed. Thank you for every hint.

Attachment(s): 

Last Edited: Wed. Jul 19, 2017 - 12:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Till now I don't found any solution to this problem. I will be grateful for every help.