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.

Compiler/TM4C1294NCPDT: How to place a variable into the middle of the SRAM while .bss section size is larger than half of RAM size?

Part Number: TM4C1294NCPDT

Tool/software: TI C/C++ Compiler


tm4c1294ncpdt
CCS6.1.3
tirtos_tivac_2_10_01_38
compiler: TI V5.1.11
XDC: 3.30.4.52

tm4c1294ncpdt has 256K RAM (0x40000). The size of .bss for my APP is about 200k. Now I want to add a variable at the middle of the SRAM (and actually some other fixed positions, to debug memory issue using MPU).
I konw I could use "__attribute__((location))" or "#pragma DATA_SECTION" to place a variable at a fixed address, but the linker needs an area larger than 200k, and it fails. Here is the error message:

error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".bss" size 0x34cf7 . Available memory ranges:
SRAM size: 0x40000 unused: 0x3f8a0 max hole: 0x1fca0 



I have searched the forum and read the linker user guide, and didn't find an answer. So is there a way to order the linker to put a section into discontinuous RAM area? Thanks