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.

TMS320F28388D: error #10099-D: program will not fit into available memory

Part Number: TMS320F28388D
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I am starting a new project, only working through configuration of the peripherals, and I get the following error message : 

Fullscreen
1
2
3
4
<Linking>
"../2838x_FLASH_CLA_lnk_cpu1.cmd", line 78: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment/blocking fails for section ".cinit" size 0x20 page 0. Available memory ranges:
FLASH1 size: 0x2000 unused: 0x0 max hole: 0x0
error #10010: errors encountered during linking; "2205-CTC-CHRG7K-SW-CPU1.out" not built
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The source code could not be any smaller : 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
void main(void)
{
//
// Initializes system control, device clock, and peripherals
//
Device_init();
//
// Initializes PIE and clear PIE registers. Disables CPU interrupts.
// and clear all CPU interrupt flags.
//
Interrupt_initModule();
//
// Initialize the PIE vector table with pointers to the shell interrupt
// Service Routines (ISR).
//
Interrupt_initVectorTable();
while(status == SFO_INCOMPLETE)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

The line causing the issue is : 

Fullscreen
1
HRPWM_setCounterCompareValue(PWM_PFC_BASE, HRPWM_COUNTER_COMPARE_A, compA);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

When I comment it, the code builds and runs. 

I have read that the issue could be due to the EABI format, but if I change it to COFF, a load of compilation errors appear, I would prefer not to go down this rabbit hole if possible. 

Thanks in advance for your help,

Adrien