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.

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

Other Parts Discussed in Thread: MSP430FG437

Hej

I'm using a MSP430FG437 and when I try to use a timer, I get an error: #10099 programm will not fit into available memory, placement with alignment fails for section Timer... size0x4.

I tried some timers A and B.

I cleaned and rebuilt the project ... no results.

#pragma vector=TIMERA3_VECTOR    // Timer1 Ax interrupt service routine

  __interrupt void Timer_A3 (void) {...}
.
.
.
main...
.
.
.
TA0CCR0 = 1200;                 // Count limit
TA0CCTL0 = 0x10;                 // Enable Timer 
TA0CTL = TASSEL_1 + MC_1;        // count UP

  • Somewhere else in your project, there is a definition of a named section called Timer which has placed code in this section that probably is being targeted by the interrupt service routine Timer_A3().  You will need to find this and either remove/replace or try another mechanism.

    I don't have any specific here, but this type of error is generally something that you need to hunt for other culprits that were included in the project.

  • Thanks for your help.

    Eclipse/CC shows me an error in the msp430...cmd- File in the section-part, this row:

        TIMERA0      : { * ( .int06 ) } > INT06 type = VECT_INIT

    (I tried this with the TimerA0)

    But the file is just for read, and I haven't found some other sections with Timer_Ax.

    At the beginning of the main.c is an instruction of the vectors, I don't know if that is correct. Is there something missing, I get an other error when I add TIMERA3_VECTOR.

    #pragma vector=USART0RX_VECTOR,\
        USART0TX_VECTOR,\
        ADC12_VECTOR,\
        TIMERA0_VECTOR,\
        TIMERA1_VECTOR,\
        TIMERB0_VECTOR, \
        TIMERB1_VECTOR, \
        BASICTIMER_VECTOR, \
        COMPARATORA_VECTOR, \
        DAC12_DMA_VECTOR, \
        NMI_VECTOR, \
        WDT_VECTOR

  • What code base are you working with?  I'm not familiar with what you are copying-and-pasting into the thread.

    When you compile the code, what do you see getting allocated into the Timer section you originally mentioned?

  • I'm using CCS5.4. I only want  to use a timer with an ISR.

    When I compile the code with the Timer_A3, I get the error "TIMERA3_VECTOR is undefined". Why doesn't Timer3 exist, I only found TimerA3 and TimerB3 in the manual of the MSP430FG437, but in the Linker File I only see TimerA/B 0/1. ?? What is right? I'm confused.

    So, I tried the TIMERA0, but then I got the error D-10099 ...(this problem with the memory, TimerA0 size 0x4 etc.) And it referred me to the Linker File to this line:

        TIMERA0      : { * ( .int06 ) } > INT06 type = VECT_INIT

    When I make this file writable and delete that line, then it compiles without an error but a warning. But the error comes later in the debugger.

    Anyway, I have created a new project with only a timer and this is running. But I would like to know why it does not go in the other project.

  • Ok, now it works. I had to delete the instruction TIMERA0_VECTOR from my vector table. I didn't know why there is this vector table, it was from a previous employee.