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/MSP430G2553: program will not fit into available memory

Part Number: MSP430G2553


Tool/software: TI C/C++ Compiler

Hi Everybody, 

I have msp430g2553 Microcontroller and i'm using CCS6.1.3

when i try to build the program i wrote it shows me the following error:

error #10099-D: program will not fit into available memory.  placement with alignment fails for section ".text" size 0x16b2

I understand that the section .text is the code i wrote and  0x16b2 (5810) is the size in bits?

The msp430g2553, the RAM  is 0.5KB and Non-volatile Memory is 16KB

so ,if i'm not mistaken about what i wrote, from that i can conclude that there's still memory left.

i used Optimizer Assistant but all levels shows red.

in the linker > Advanced Options > Runtime Environment i choose ROM and RAM  in initialization model but nothing is working

so, i have two questions:

1. does ccs limit the code size? if so, how can i change/disable it?

2. what other ways should i check to solve this problem.

Thank you all.

  • For MSP430, the linker expresses all sizes in bytes (8 bit units).
    Please show us the linker map file. You can generate the linker map file with the --map_file linker option.
  • Thank you for the reply

    Here's the test.map generated in the debug folder:

    ******************************************************************************
    MSP430 Linker PC v15.12.1
    ******************************************************************************
    >> Linked Mon Dec 26 09:29:01 2016

    OUTPUT FILE NAME: <test.out>
    ENTRY POINT SYMBOL: "_c_int00_noargs_noexit" address: 000016f2


    MEMORY CONFIGURATION

    name origin length used unused attr fill
    ---------------------- -------- --------- -------- -------- ---- --------
    SFR 00000000 00000010 00000000 00000010 RWIX
    PERIPHERALS_8BIT 00000010 000000f0 00000000 000000f0 RWIX
    PERIPHERALS_16BIT 00000100 00000100 00000000 00000100 RWIX
    RAM 00000200 00000100 00000088 00000078 RWIX
    INFOD 00001000 00000040 00000000 00000040 RWIX
    INFOC 00001040 00000040 00000000 00000040 RWIX
    INFOB 00001080 00000040 00000000 00000040 RWIX
    INFOA 000010c0 00000040 00000000 00000040 RWIX
    FLASH 0000f800 000007de 00000040 0000079e RWIX
    BSLSIGNATURE 0000ffde 00000002 00000002 00000000 RWIX ffff
    INT00 0000ffe0 00000002 00000002 00000000 RWIX
    INT01 0000ffe2 00000002 00000000 00000002 RWIX
    INT02 0000ffe4 00000002 00000002 00000000 RWIX
    INT03 0000ffe6 00000002 00000002 00000000 RWIX
    INT04 0000ffe8 00000002 00000000 00000002 RWIX
    INT05 0000ffea 00000002 00000002 00000000 RWIX
    INT06 0000ffec 00000002 00000002 00000000 RWIX
    INT07 0000ffee 00000002 00000002 00000000 RWIX
    INT08 0000fff0 00000002 00000002 00000000 RWIX
    INT09 0000fff2 00000002 00000002 00000000 RWIX
    INT10 0000fff4 00000002 00000002 00000000 RWIX
    INT11 0000fff6 00000002 00000002 00000000 RWIX
    INT12 0000fff8 00000002 00000002 00000000 RWIX
    INT13 0000fffa 00000002 00000002 00000000 RWIX
    INT14 0000fffc 00000002 00000002 00000000 RWIX
    RESET 0000fffe 00000002 00000002 00000000 RWIX


    SECTION ALLOCATION MAP

    output attributes/
    section page origin length input sections
    -------- ---- ---------- ---------- ----------------
    .text 0 00000000 0000180e FAILED TO ALLOCATE
    .data 0 00000200 00000034 UNINITIALIZED
    00000200 00000016 main.obj (.data)
    00000216 00000010 Keypad.obj (.data:matrix)
    00000226 00000008 LCD.obj (.data:buf$1)
    0000022e 00000006 WeightScale.obj (.data)

    .bss 0 00000234 00000004 UNINITIALIZED
    00000234 00000004 LCD.obj (.bss:buf$2)

    .stack 0 000002b0 00000050 UNINITIALIZED
    000002b0 00000002 rts430_eabi.lib : boot.obj (.stack)
    000002b2 0000004e --HOLE--

    .cinit 0 0000f800 00000040
    0000f800 0000002b (.cinit..data.load) [load image, compression = rle]
    0000f82b 00000001 --HOLE-- [fill = 0]
    0000f82c 00000008 (.cinit..bss.load) [load image]
    0000f834 00000004 (__TI_handler_table)
    0000f838 00000008 (__TI_cinit_table)

    .init_array
    * 0 0000f800 00000000 UNINITIALIZED

    TRAPINT 0 0000ffe0 00000002
    0000ffe0 00000002 rts430_eabi.lib : int00.obj (.int00)

    $fill000 0 0000ffde 00000002
    0000ffde 00000002 --HOLE-- [fill = ffff]

    PORT1 0 0000ffe4 00000002
    0000ffe4 00000002 main.obj (.int02)

    PORT2 0 0000ffe6 00000002
    0000ffe6 00000002 rts430_eabi.lib : int03.obj (.int03)

    ADC10 0 0000ffea 00000002
    0000ffea 00000002 rts430_eabi.lib : int05.obj (.int05)

    USCIAB0TX
    * 0 0000ffec 00000002
    0000ffec 00000002 rts430_eabi.lib : int06.obj (.int06)

    USCIAB0RX
    * 0 0000ffee 00000002
    0000ffee 00000002 rts430_eabi.lib : int07.obj (.int07)

    TIMER0_A1
    * 0 0000fff0 00000002
    0000fff0 00000002 rts430_eabi.lib : int08.obj (.int08)

    TIMER0_A0
    * 0 0000fff2 00000002
    0000fff2 00000002 rts430_eabi.lib : int09.obj (.int09)

    WDT 0 0000fff4 00000002
    0000fff4 00000002 rts430_eabi.lib : int10.obj (.int10)

    COMPARATORA
    * 0 0000fff6 00000002
    0000fff6 00000002 rts430_eabi.lib : int11.obj (.int11)

    TIMER1_A1
    * 0 0000fff8 00000002
    0000fff8 00000002 rts430_eabi.lib : int12.obj (.int12)

    TIMER1_A0
    * 0 0000fffa 00000002
    0000fffa 00000002 rts430_eabi.lib : int13.obj (.int13)

    NMI 0 0000fffc 00000002
    0000fffc 00000002 rts430_eabi.lib : int14.obj (.int14)

    .reset 0 0000fffe 00000002
    0000fffe 00000002 rts430_eabi.lib : boot.obj (.reset)

    MODULE SUMMARY

    Module code ro data rw data
    ------ ---- ------- -------
    .\
    main.obj 0 2 22
    +--+-------------------+------+---------+---------+
    Total: 0 2 22

    .\Includes\
    Keypad.obj 0 0 16
    LCD.obj 0 0 12
    WeightScale.obj 0 0 6
    +--+-------------------+------+---------+---------+
    Total: 0 0 34

    C:\Texas Instruments\ccsv6\tools\compiler\ti-cgt-msp430_15.12.1.LTS\lib\rts430_eabi.lib
    boot.obj 0 2 0
    int00.obj 0 2 0
    int03.obj 0 2 0
    int05.obj 0 2 0
    int06.obj 0 2 0
    int07.obj 0 2 0
    int08.obj 0 2 0
    int09.obj 0 2 0
    int10.obj 0 2 0
    int11.obj 0 2 0
    int12.obj 0 2 0
    int13.obj 0 2 0
    int14.obj 0 2 0
    +--+-------------------+------+---------+---------+
    Total: 0 26 0

    Stack: 0 0 80
    Linker Generated: 0 63 0
    +--+-------------------+------+---------+---------+
    Grand Total: 0 91 136


    LINKER GENERATED COPY TABLES

    __TI_cinit_table @ 0000f838 records: 2, size/record: 4, table size: 8
    .data: load addr=0000f800, load size=0000002b bytes, run addr=00000200, run size=00000034 bytes, compression=rle
    .bss: load addr=0000f82c, load size=00000008 bytes, run addr=00000234, run size=00000004 bytes, compression=copy


    LINKER GENERATED HANDLER TABLE

    __TI_handler_table @ 0000f834 records: 2, size/record: 2, table size: 4
    index: 0, handler: __TI_decompress_rle24
    index: 1, handler: __TI_decompress_none


    GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name

    address name
    ------- ----
    0000004a ADC10AE0
    000001b0 ADC10CTL0
    000001b2 ADC10CTL1
    00000048 ADC10DTC0
    00000049 ADC10DTC1
    000001b4 ADC10MEM
    000001bc ADC10SA
    00000057 BCSCTL1
    00000058 BCSCTL2
    00000053 BCSCTL3
    000017fc C$$EXIT
    00000059 CACTL1
    0000005a CACTL2
    000010fb CALBC1_12MHZ
    000010f9 CALBC1_16MHZ
    000010ff CALBC1_1MHZ
    000010fd CALBC1_8MHZ
    000010fa CALDCO_12MHZ
    000010f8 CALDCO_16MHZ
    000010fe CALDCO_1MHZ
    000010fc CALDCO_8MHZ
    0000005b CAPD
    00001086 CalculateAvg
    000017b6 ClearFlags
    00000056 DCOCTL
    00000128 FCTL1
    0000012a FCTL2
    0000012c FCTL3
    00001618 GetByte
    000017d4 HasRequest
    00000000 IE1
    00000001 IE2
    00000002 IFG1
    00000003 IFG2
    000017c0 InitADC
    00001452 InitLCD
    000015c8 InitSerialCommunication
    000017ca IsReady
    00000022 P1DIR
    00000025 P1IE
    00000024 P1IES
    00000023 P1IFG
    00000020 P1IN
    00000021 P1OUT
    00000027 P1REN
    00000026 P1SEL
    00000041 P1SEL2
    0000002a P2DIR
    0000002d P2IE
    0000002c P2IES
    0000002b P2IFG
    00000028 P2IN
    00000029 P2OUT
    0000002f P2REN
    0000002e P2SEL
    00000042 P2SEL2
    0000001a P3DIR
    00000018 P3IN
    00000019 P3OUT
    00000010 P3REN
    0000001b P3SEL
    00000043 P3SEL2
    000017dc ReadyToSend
    0000170c ReenableClock
    00000c0e ScanKey
    00001664 SendResponse
    00001688 SendToLcd
    0000179c SetOutputLow
    000016ac StartLCD
    00000172 TA0CCR0
    00000174 TA0CCR1
    00000176 TA0CCR2
    00000162 TA0CCTL0
    00000164 TA0CCTL1
    00000166 TA0CCTL2
    00000160 TA0CTL
    0000012e TA0IV
    00000170 TA0R
    00000192 TA1CCR0
    00000194 TA1CCR1
    00000196 TA1CCR2
    00000182 TA1CCTL0
    00000184 TA1CCTL1
    00000186 TA1CCTL2
    00000180 TA1CTL
    0000011e TA1IV
    00000190 TA1R
    000010db TLV_ADC10_1_LEN
    000010da TLV_ADC10_1_TAG
    000010c0 TLV_CHECKSUM
    000010f7 TLV_DCO_30_LEN
    000010f6 TLV_DCO_30_TAG
    0000005d UCA0ABCTL
    00000062 UCA0BR0
    00000063 UCA0BR1
    00000060 UCA0CTL0
    00000061 UCA0CTL1
    0000005f UCA0IRRCTL
    0000005e UCA0IRTCTL
    00000064 UCA0MCTL
    00000066 UCA0RXBUF
    00000065 UCA0STAT
    00000067 UCA0TXBUF
    0000006a UCB0BR0
    0000006b UCB0BR1
    00000068 UCB0CTL0
    00000069 UCB0CTL1
    0000006c UCB0I2CIE
    00000118 UCB0I2COA
    0000011a UCB0I2CSA
    0000006e UCB0RXBUF
    0000006d UCB0STAT
    0000006f UCB0TXBUF
    00000120 WDTCTL
    00000eec WriteToLCD
    00000e56 WriteToSerial
    00000300 __STACK_END
    00000050 __STACK_SIZE
    UNDEFED __TI_BINIT_Base
    UNDEFED __TI_BINIT_Limit
    0000f838 __TI_CINIT_Base
    0000f840 __TI_CINIT_Limit
    0000f834 __TI_Handler_Table_Base
    0000f838 __TI_Handler_Table_Limit
    UNDEFED __TI_INITARRAY_Base
    UNDEFED __TI_INITARRAY_Limit
    000017e4 __TI_ISR_TRAP
    00001736 __TI_decompress_none
    00001802 __TI_decompress_rle24
    00000776 __TI_frcaddd
    00000000 __TI_frcdivd
    0000ffe0 __TI_int00
    0000ffe4 __TI_int02
    0000ffe6 __TI_int03
    0000ffea __TI_int05
    0000ffec __TI_int06
    0000ffee __TI_int07
    0000fff0 __TI_int08
    0000fff2 __TI_int09
    0000fff4 __TI_int10
    0000fff6 __TI_int11
    0000fff8 __TI_int12
    0000fffa __TI_int13
    0000fffc __TI_int14
    ffffffff __TI_pprof_out_hndl
    ffffffff __TI_prof_data_size
    ffffffff __TI_prof_data_start
    00000cec __TI_renormd
    ffffffff __c_args__
    0000048e __mspabi_addd
    000009d6 __mspabi_divd
    00001362 __mspabi_divul
    000010fc __mspabi_fixdul
    000017aa __mspabi_fltid
    00000daa __mspabi_fltlid
    00000f78 __mspabi_fltuld
    00001798 __mspabi_func_epilog_1
    00001796 __mspabi_func_epilog_2
    00001794 __mspabi_func_epilog_3
    00001792 __mspabi_func_epilog_4
    00001790 __mspabi_func_epilog_5
    0000178e __mspabi_func_epilog_6
    0000178c __mspabi_func_epilog_7
    00001722 __mspabi_mpyi
    00001722 __mspabi_mpyi_sw
    0000163e __mspabi_mpyl
    0000163e __mspabi_mpyl_sw
    00001362 __mspabi_remul
    0000159c __mspabi_slli
    000015c4 __mspabi_slli_1
    000015b2 __mspabi_slli_10
    000015b0 __mspabi_slli_11
    000015ae __mspabi_slli_12
    000015ac __mspabi_slli_13
    000015aa __mspabi_slli_14
    000015a8 __mspabi_slli_15
    000015c2 __mspabi_slli_2
    000015c0 __mspabi_slli_3
    000015be __mspabi_slli_4
    000015bc __mspabi_slli_5
    000015ba __mspabi_slli_6
    000015b8 __mspabi_slli_7
    000015b6 __mspabi_slli_8
    000015b4 __mspabi_slli_9
    0000177c __mspabi_slll
    0000150a __mspabi_slll_1
    000014e6 __mspabi_slll_10
    000014e2 __mspabi_slll_11
    000014de __mspabi_slll_12
    000014da __mspabi_slll_13
    000014d6 __mspabi_slll_14
    000014d2 __mspabi_slll_15
    00001506 __mspabi_slll_2
    00001502 __mspabi_slll_3
    000014fe __mspabi_slll_4
    000014fa __mspabi_slll_5
    000014f6 __mspabi_slll_6
    000014f2 __mspabi_slll_7
    000014ee __mspabi_slll_8
    000014ea __mspabi_slll_9
    00001570 __mspabi_srai
    00001598 __mspabi_srai_1
    00001586 __mspabi_srai_10
    00001584 __mspabi_srai_11
    00001582 __mspabi_srai_12
    00001580 __mspabi_srai_13
    0000157e __mspabi_srai_14
    0000157c __mspabi_srai_15
    00001596 __mspabi_srai_2
    00001594 __mspabi_srai_3
    00001592 __mspabi_srai_4
    00001590 __mspabi_srai_5
    0000158e __mspabi_srai_6
    0000158c __mspabi_srai_7
    0000158a __mspabi_srai_8
    00001588 __mspabi_srai_9
    0000176c __mspabi_sral
    000014cc __mspabi_sral_1
    000014a8 __mspabi_sral_10
    000014a4 __mspabi_sral_11
    000014a0 __mspabi_sral_12
    0000149c __mspabi_sral_13
    00001498 __mspabi_sral_14
    00001494 __mspabi_sral_15
    000014c8 __mspabi_sral_2
    000014c4 __mspabi_sral_3
    000014c0 __mspabi_sral_4
    000014bc __mspabi_sral_5
    000014b8 __mspabi_sral_6
    000014b4 __mspabi_sral_7
    000014b0 __mspabi_sral_8
    000014ac __mspabi_sral_9
    00001406 __mspabi_srli
    0000144c __mspabi_srli_1
    00001428 __mspabi_srli_10
    00001424 __mspabi_srli_11
    00001420 __mspabi_srli_12
    0000141c __mspabi_srli_13
    00001418 __mspabi_srli_14
    00001414 __mspabi_srli_15
    00001448 __mspabi_srli_2
    00001444 __mspabi_srli_3
    00001440 __mspabi_srli_4
    0000143c __mspabi_srli_5
    00001438 __mspabi_srli_6
    00001434 __mspabi_srli_7
    00001430 __mspabi_srli_8
    0000142c __mspabi_srli_9
    00001748 __mspabi_srll
    00001300 __mspabi_srll_1
    000012ca __mspabi_srll_10
    000012c4 __mspabi_srll_11
    000012be __mspabi_srll_12
    000012b8 __mspabi_srll_13
    000012b2 __mspabi_srll_14
    000012ac __mspabi_srll_15
    000012fa __mspabi_srll_2
    000012f4 __mspabi_srll_3
    000012ee __mspabi_srll_4
    000012e8 __mspabi_srll_5
    000012e2 __mspabi_srll_6
    000012dc __mspabi_srll_7
    000012d6 __mspabi_srll_8
    000012d0 __mspabi_srll_9
    00001170 _auto_init
    000016f2 _c_int00_noargs_noexit
    0000fffe _reset_vector
    000002b0 _stack
    0000180c _system_post_cinit
    00001808 _system_pre_init
    000017fc abort
    000013ba bitbang_data_in
    00001308 copy_in
    0000020a counter
    0000022e currentAvg
    00000232 elementsCount
    00001542 length
    00001002 main
    00000216 matrix
    00000202 max
    0000175a memcpy
    00000206 min
    000016d0 port_1
    00001510 pow
    00000200 slaveAddr
    000015f0 switchFrom8To4Bits
    00000210 timeSeconds
    0000020e timerCount
    00000212 tsize
    000011de write2x4Bits
    000017ec writeCommand
    000017f4 writeData


    GLOBAL SYMBOLS: SORTED BY Symbol Address

    address name
    ------- ----
    00000000 IE1
    00000000 __TI_frcdivd
    00000001 IE2
    00000002 IFG1
    00000003 IFG2
    00000010 P3REN
    00000018 P3IN
    00000019 P3OUT
    0000001a P3DIR
    0000001b P3SEL
    00000020 P1IN
    00000021 P1OUT
    00000022 P1DIR
    00000023 P1IFG
    00000024 P1IES
    00000025 P1IE
    00000026 P1SEL
    00000027 P1REN
    00000028 P2IN
    00000029 P2OUT
    0000002a P2DIR
    0000002b P2IFG
    0000002c P2IES
    0000002d P2IE
    0000002e P2SEL
    0000002f P2REN
    00000041 P1SEL2
    00000042 P2SEL2
    00000043 P3SEL2
    00000048 ADC10DTC0
    00000049 ADC10DTC1
    0000004a ADC10AE0
    00000050 __STACK_SIZE
    00000053 BCSCTL3
    00000056 DCOCTL
    00000057 BCSCTL1
    00000058 BCSCTL2
    00000059 CACTL1
    0000005a CACTL2
    0000005b CAPD
    0000005d UCA0ABCTL
    0000005e UCA0IRTCTL
    0000005f UCA0IRRCTL
    00000060 UCA0CTL0
    00000061 UCA0CTL1
    00000062 UCA0BR0
    00000063 UCA0BR1
    00000064 UCA0MCTL
    00000065 UCA0STAT
    00000066 UCA0RXBUF
    00000067 UCA0TXBUF
    00000068 UCB0CTL0
    00000069 UCB0CTL1
    0000006a UCB0BR0
    0000006b UCB0BR1
    0000006c UCB0I2CIE
    0000006d UCB0STAT
    0000006e UCB0RXBUF
    0000006f UCB0TXBUF
    00000118 UCB0I2COA
    0000011a UCB0I2CSA
    0000011e TA1IV
    00000120 WDTCTL
    00000128 FCTL1
    0000012a FCTL2
    0000012c FCTL3
    0000012e TA0IV
    00000160 TA0CTL
    00000162 TA0CCTL0
    00000164 TA0CCTL1
    00000166 TA0CCTL2
    00000170 TA0R
    00000172 TA0CCR0
    00000174 TA0CCR1
    00000176 TA0CCR2
    00000180 TA1CTL
    00000182 TA1CCTL0
    00000184 TA1CCTL1
    00000186 TA1CCTL2
    00000190 TA1R
    00000192 TA1CCR0
    00000194 TA1CCR1
    00000196 TA1CCR2
    000001b0 ADC10CTL0
    000001b2 ADC10CTL1
    000001b4 ADC10MEM
    000001bc ADC10SA
    00000200 slaveAddr
    00000202 max
    00000206 min
    0000020a counter
    0000020e timerCount
    00000210 timeSeconds
    00000212 tsize
    00000216 matrix
    0000022e currentAvg
    00000232 elementsCount
    000002b0 _stack
    00000300 __STACK_END
    0000048e __mspabi_addd
    00000776 __TI_frcaddd
    000009d6 __mspabi_divd
    00000c0e ScanKey
    00000cec __TI_renormd
    00000daa __mspabi_fltlid
    00000e56 WriteToSerial
    00000eec WriteToLCD
    00000f78 __mspabi_fltuld
    00001002 main
    00001086 CalculateAvg
    000010c0 TLV_CHECKSUM
    000010da TLV_ADC10_1_TAG
    000010db TLV_ADC10_1_LEN
    000010f6 TLV_DCO_30_TAG
    000010f7 TLV_DCO_30_LEN
    000010f8 CALDCO_16MHZ
    000010f9 CALBC1_16MHZ
    000010fa CALDCO_12MHZ
    000010fb CALBC1_12MHZ
    000010fc CALDCO_8MHZ
    000010fc __mspabi_fixdul
    000010fd CALBC1_8MHZ
    000010fe CALDCO_1MHZ
    000010ff CALBC1_1MHZ
    00001170 _auto_init
    000011de write2x4Bits
    000012ac __mspabi_srll_15
    000012b2 __mspabi_srll_14
    000012b8 __mspabi_srll_13
    000012be __mspabi_srll_12
    000012c4 __mspabi_srll_11
    000012ca __mspabi_srll_10
    000012d0 __mspabi_srll_9
    000012d6 __mspabi_srll_8
    000012dc __mspabi_srll_7
    000012e2 __mspabi_srll_6
    000012e8 __mspabi_srll_5
    000012ee __mspabi_srll_4
    000012f4 __mspabi_srll_3
    000012fa __mspabi_srll_2
    00001300 __mspabi_srll_1
    00001308 copy_in
    00001362 __mspabi_divul
    00001362 __mspabi_remul
    000013ba bitbang_data_in
    00001406 __mspabi_srli
    00001414 __mspabi_srli_15
    00001418 __mspabi_srli_14
    0000141c __mspabi_srli_13
    00001420 __mspabi_srli_12
    00001424 __mspabi_srli_11
    00001428 __mspabi_srli_10
    0000142c __mspabi_srli_9
    00001430 __mspabi_srli_8
    00001434 __mspabi_srli_7
    00001438 __mspabi_srli_6
    0000143c __mspabi_srli_5
    00001440 __mspabi_srli_4
    00001444 __mspabi_srli_3
    00001448 __mspabi_srli_2
    0000144c __mspabi_srli_1
    00001452 InitLCD
    00001494 __mspabi_sral_15
    00001498 __mspabi_sral_14
    0000149c __mspabi_sral_13
    000014a0 __mspabi_sral_12
    000014a4 __mspabi_sral_11
    000014a8 __mspabi_sral_10
    000014ac __mspabi_sral_9
    000014b0 __mspabi_sral_8
    000014b4 __mspabi_sral_7
    000014b8 __mspabi_sral_6
    000014bc __mspabi_sral_5
    000014c0 __mspabi_sral_4
    000014c4 __mspabi_sral_3
    000014c8 __mspabi_sral_2
    000014cc __mspabi_sral_1
    000014d2 __mspabi_slll_15
    000014d6 __mspabi_slll_14
    000014da __mspabi_slll_13
    000014de __mspabi_slll_12
    000014e2 __mspabi_slll_11
    000014e6 __mspabi_slll_10
    000014ea __mspabi_slll_9
    000014ee __mspabi_slll_8
    000014f2 __mspabi_slll_7
    000014f6 __mspabi_slll_6
    000014fa __mspabi_slll_5
    000014fe __mspabi_slll_4
    00001502 __mspabi_slll_3
    00001506 __mspabi_slll_2
    0000150a __mspabi_slll_1
    00001510 pow
    00001542 length
    00001570 __mspabi_srai
    0000157c __mspabi_srai_15
    0000157e __mspabi_srai_14
    00001580 __mspabi_srai_13
    00001582 __mspabi_srai_12
    00001584 __mspabi_srai_11
    00001586 __mspabi_srai_10
    00001588 __mspabi_srai_9
    0000158a __mspabi_srai_8
    0000158c __mspabi_srai_7
    0000158e __mspabi_srai_6
    00001590 __mspabi_srai_5
    00001592 __mspabi_srai_4
    00001594 __mspabi_srai_3
    00001596 __mspabi_srai_2
    00001598 __mspabi_srai_1
    0000159c __mspabi_slli
    000015a8 __mspabi_slli_15
    000015aa __mspabi_slli_14
    000015ac __mspabi_slli_13
    000015ae __mspabi_slli_12
    000015b0 __mspabi_slli_11
    000015b2 __mspabi_slli_10
    000015b4 __mspabi_slli_9
    000015b6 __mspabi_slli_8
    000015b8 __mspabi_slli_7
    000015ba __mspabi_slli_6
    000015bc __mspabi_slli_5
    000015be __mspabi_slli_4
    000015c0 __mspabi_slli_3
    000015c2 __mspabi_slli_2
    000015c4 __mspabi_slli_1
    000015c8 InitSerialCommunication
    000015f0 switchFrom8To4Bits
    00001618 GetByte
    0000163e __mspabi_mpyl
    0000163e __mspabi_mpyl_sw
    00001664 SendResponse
    00001688 SendToLcd
    000016ac StartLCD
    000016d0 port_1
    000016f2 _c_int00_noargs_noexit
    0000170c ReenableClock
    00001722 __mspabi_mpyi
    00001722 __mspabi_mpyi_sw
    00001736 __TI_decompress_none
    00001748 __mspabi_srll
    0000175a memcpy
    0000176c __mspabi_sral
    0000177c __mspabi_slll
    0000178c __mspabi_func_epilog_7
    0000178e __mspabi_func_epilog_6
    00001790 __mspabi_func_epilog_5
    00001792 __mspabi_func_epilog_4
    00001794 __mspabi_func_epilog_3
    00001796 __mspabi_func_epilog_2
    00001798 __mspabi_func_epilog_1
    0000179c SetOutputLow
    000017aa __mspabi_fltid
    000017b6 ClearFlags
    000017c0 InitADC
    000017ca IsReady
    000017d4 HasRequest
    000017dc ReadyToSend
    000017e4 __TI_ISR_TRAP
    000017ec writeCommand
    000017f4 writeData
    000017fc C$$EXIT
    000017fc abort
    00001802 __TI_decompress_rle24
    00001808 _system_pre_init
    0000180c _system_post_cinit
    0000f834 __TI_Handler_Table_Base
    0000f838 __TI_CINIT_Base
    0000f838 __TI_Handler_Table_Limit
    0000f840 __TI_CINIT_Limit
    0000ffe0 __TI_int00
    0000ffe4 __TI_int02
    0000ffe6 __TI_int03
    0000ffea __TI_int05
    0000ffec __TI_int06
    0000ffee __TI_int07
    0000fff0 __TI_int08
    0000fff2 __TI_int09
    0000fff4 __TI_int10
    0000fff6 __TI_int11
    0000fff8 __TI_int12
    0000fffa __TI_int13
    0000fffc __TI_int14
    0000fffe _reset_vector
    ffffffff __TI_pprof_out_hndl
    ffffffff __TI_prof_data_size
    ffffffff __TI_prof_data_start
    ffffffff __c_args__
    UNDEFED __TI_BINIT_Base
    UNDEFED __TI_BINIT_Limit
    UNDEFED __TI_INITARRAY_Base
    UNDEFED __TI_INITARRAY_Limit

    [292 symbols]

  • Joe Shoshana said:
    Here's the test.map generated in the debug folder:

    <snip>

    MEMORY CONFIGURATION

    name origin length used unused attr fill
    ---------------------- -------- --------- -------- -------- ---- --------
    <snip>
    RAM 00000200 00000100 00000088 00000078 RWIX
    <snip>
    FLASH 0000f800 000007de 00000040 0000079e RWIX

    The map file shows a device with 256 bytes of RAM and 2 Kbytes of FLASH has been selected, which is why the linker reports that your program will not fit into the available memory.

    When you create a project in CCS, and select the MSP430G2553 device, CCS should automatically add a linker command file named lnk_msp430g2553.cmd to the project where the lnk_msp430g2553.cmd specifies 512 bytes of RAM and 16 Kbytes of FLASH.

    Can you check the CCS project properties to ensure a MSP430G2553 device and lnk_msp430g2553.cmd linker command file have been selected:

  • thank you for the reply

    i've check if MSP430G2553 and lnk_msp430g2553.cmd has been selected. and they are, see below

  • Joe Shoshana said:
    i've check if MSP430G2553 and lnk_msp430g2553.cmd has been selected. and they are, see below

    The screen shot shows a MSP430G2253 and lnk_msp430g2253.cmd have been selected, rather than MSP430G2553 and lnk_msp430g2553.cmd

  • thank you for your help
    i didn't see the little mistake, now after checking with the optimizer and the memory allocation it looks very good
    thank you again for your help