This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

.bss won't fit in RAM

Other Parts Discussed in Thread: MSP430FR5739

Hi, Archaeologist!

I'm very hope for your help. I'm confused how to manage work of linker. Can you detail how to split RAM? My problem is very similar with topic problem. CCS console message:

"../lnk_msp430fr5739.cmd", line 159: error #10099-D: program will not fit into available memory.  run placement with alignment fails for section ".bss" size 0x720 .  Available memory ranges:
   RAM          size: 0x400        unused: 0x394        max hole: 0x394

  • I don't think splitting is going to help. .bss needs to go in read/write memory, and your .bss section is larger than all of RAM for that device. You need to try to make some of your global variables const, or make them smaller.
  • Archaeologist said:
    I don't think splitting is going to help. .bss needs to go in read/write memory, and your .bss section is larger than all of RAM for that device.

    The linker command file suggests that a MSP430FR5739 device is in use. The FRAM memory is read/write, but variables in FRAM may have slower access (wait states) and causes a higher power consumption  than variables in RAM.

    Therefore, section splitting could help - or even just place all of the .bss section in FRAM rather than RAM.