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.

CCS/TI-RTOS-MCU: #10099-D: program will not fit into available memory. run placement with alignment fails for section ".bss" size 0x5d916 .

Part Number: TI-RTOS-MCU
Other Parts Discussed in Thread: TM4C1294KCPDT

Tool/software: Code Composer Studio

Hi,

I'm working on HTTPS example for TM4C1294KCPDT. My application was working and to add few features I had to add couple of files to it and after doing so I'm getting this error.

"../tm4c1294kcpdt.cmd", line 40: error #10099-D: program will not fit into available memory. run placement with alignment fails for section ".bss" size 0x5d916 . Available memory ranges:
SRAM size: 0x40000 unused: 0x3dd8c max hole: 0x3dd88

Does anyone have any idea how to get rid of this error?

This is my .cmd file

/******************************************************************************
*
* Default Linker Command file for the Texas Instruments TM4C1294KCPDT
*
* This is derived from revision 15071 of the TivaWare Library.
*
*****************************************************************************/

--retain=g_pfnVectors

MEMORY
{
FLASH (RX) : origin = 0x00000000, length = 0x00080000
SRAM (RWX) : origin = 0x20000000, length = 0x00040000
}

/* The following command line options are set as part of the CCS project. */
/* If you are building using the command line, or for some reason want to */
/* define them here, you can uncomment and modify these lines as needed. */
/* If you are using CCS for building, it is probably better to make any such */
/* modifications in your CCS project and leave this file alone. */
/* */
/* --heap_size=0 */
/* --stack_size=256 */
/* --library=rtsv7M4_T_le_eabi.lib */

/* Section allocation in memory */

SECTIONS
{
.intvecs: > 0x00000000
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH

.vtable : > 0x20000000
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}

__STACK_TOP = __stack + 512;

Regards,

Deepak

  • The TM4C1294KCPDT has the below memory size. I think if I understand the error correctly  your .bss section is 0x5d916  which is larger than 256kB. You will need to find out where in code are these uninitialized variables are and fix the problem. I will suggest you read the .map file generated by the linker output.