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/MSP430F5529: Unable to build UART Echo sample code. Permission denied error.

Part Number: MSP430F5529
Other Parts Discussed in Thread: SYSBIOS, MSP430WARE, MSP430F5521, CONTROLSUITE, POWERSUITE, MSP430F5229

Tool/software: Code Composer Studio

Hello everybody!

I'm trying to build the sample code for UART Echo but I can't seem to get rid of the build error attached. Is there something I'm doing wrong?

I've looked as some similar problems on this forum and tried implementing their solutions, but so far I've had no luck..


**** Build of configuration Debug for project uartecho_MSP_EXP430F5529LP_TI_MSP430F5529 ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 12 all -O
making ../src/sysbios/sysbios.ae430X ...
'Building file: ../uartecho.c'
'Invoking: MSP430 Compiler'
"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="uartecho.d" --cmd_file="configPkg/compiler.opt" "../uartecho.c"

>> Compilation failure
subdir_rules.mk:14: recipe for target 'uartecho.obj' failed
Command-line error #1966: cannot open preprocessing output file "uartecho.d": Permission denied
1 catastrophic error detected in the compilation of "../uartecho.c".
Compilation terminated.
gmake: *** [uartecho.obj] Error 1
gmake[1]: Nothing to be done for 'all'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • I tried running CCS as administrator and building the code as I saw that it was a solution on a different thread with a similar problem. I once again ran into some build issues! Any help will be greatly appreciated!


    **** Build of configuration Debug for project uartecho_MSP_EXP430F5529LP_TI_MSP430F5529 ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 12 all -O
    'Building file: ../uartecho.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/tirtos_msp43x_2_20_00_06/packages;C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages;C:/ti/tirtos_msp43x_2_20_00_06/products/tidrivers_msp43x_2_20_00_08/packages;C:/ti/tirtos_msp43x_2_20_00_06/products/uia_2_00_06_52/packages;C:/ti/bios_6_75_01_05/packages;C:/ti/controlSUITE/powerSUITE/v_1_07_00_00/packages;" xdc.tools.configuro -o configPkg -t ti.targets.msp430.elf.MSP430X -p ti.platforms.msp430:MSP430F5529 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS" --compileOptions "-vmspx --use_hw_mpy=F5 --include_path=\"C:/ti/ccsv6/ccs_base/msp430/include\" --include_path=\"C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529\" --include_path=\"C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529\" --include_path=\"C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/include\" --advice:power=\"all\" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5521__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 " "../uartecho.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring uartecho.xe430X from package/cfg/uartecho_pe430X.cfg ...
    generating custom ti.sysbios library makefile ...
    generating custom ti.sysbios.family.msp430 Hwi stubs ...
    Starting build of library sources ...
    making C:/PROGRA~2/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios/sysbios.ae430X ...
    gmake[1]: Entering directory `C:/PROGRA~2/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios'
    cle430X C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages/ti/sysbios/BIOS.c ...
    asme430X C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages/ti/sysbios/family/msp430/Hwi_switch_asm.asm ...
    asme430X C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages/ti/sysbios/family/msp430/TaskSupport_asm.asm ...
    are430X BIOS.obj msp430_Hwi_switch_asm.obj msp430_TaskSupport_asm.obj ...
    gmake[1]: Leaving directory `C:/PROGRA~2/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios'
    Build of libraries done.
    cle430X package/cfg/uartecho_pe430X.c ...
    "package/cfg/uartecho_pe430X.c", line 11225: warning #112-D: statement is unreachable
    "package/cfg/uartecho_pe430X.c", line 11460: warning #112-D: statement is unreachable
    "package/cfg/uartecho_pe430X.c", line 11680: warning #112-D: statement is unreachable
    "package/cfg/uartecho_pe430X.c", line 11861: warning #112-D: statement is unreachable
    'Finished building: ../uartecho.cfg'
    ' '
    1 file(s) copied.
    making ../src/sysbios/sysbios.ae430X ...
    gmake[1]: Nothing to be done for 'all'.
    'Building file: ../uartecho.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/bin/cl430" -vmspx --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/include" --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5521__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="uartecho.d" --cmd_file="configPkg/compiler.opt" "../uartecho.c"
    'Finished building: ../uartecho.c'
    ' '
    'Building file: ../MSP_EXP430F5529LP.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/bin/cl430" -vmspx --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/include" --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5521__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="MSP_EXP430F5529LP.d" --cmd_file="configPkg/compiler.opt" "../MSP_EXP430F5529LP.c"
    'Finished building: ../MSP_EXP430F5529LP.c'
    ' '
    making ../src/sysbios/sysbios.ae430X ...
    gmake[2]: Nothing to be done for 'all'.
    'Building target: uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/bin/cl430" -vmspx --use_hw_mpy=F5 --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5521__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_18.1.6.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="uartecho_MSP_EXP430F5529LP_TI_MSP430F5529_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" "./MSP_EXP430F5529LP.obj" "./uartecho.obj" "../lnk_msp430f5521.cmd" -l"configPkg/linker.cmd" -llibmath.a -l"C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx/ccs/MSP430F5529.lib" -llibc.a
    <Linking>
    error #10269: output file "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" exceeds code size limit

    >> Compilation failure
    error #10010: errors encountered during linking; "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" not built
    makefile:144: recipe for target 'uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out' failed
    gmake[1]: *** [uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out] Error 1
    gmake: *** [all] Error 2
    makefile:140: recipe for target 'all' failed

    **** Build Finished ****

  • Hello Sanjit,

    I think you're exceeding the code size for your device.

    Sanjit Inamdar said:
    error #10269: output file "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" exceeds code size limit

    This project was built for MSP430F5529 which has 128KB Flash memory whereas you seem to be using MSP430F5521 which only has 32KB Flash memory.

    Sanjit Inamdar said:
    define=ccs --define=MSP430WARE --define=__MSP430F5521__ -g --printf_support=minimal

    I think that's why you're encountering this issue.

    Regards,

    James

  • Also, I'm not sure where this example code came from. You also seem to be using older versions of CCS, DriverLib, etc., so it may be good to update those to the latest versions.

    Regards,

    James

  • Hi James,

    Thanks for your reply! 

    Yes, I see that "error #10269..." line now.. I have a MSP430F5529 LP and my project is built for the same. Does that mean that the sample UART Echo code I have is meant for MSP430F5521? 

    If so, how can I go about changing it so that it works with MSP430F5529 LP

    Thanks for you help

    Sanjit

  • I got this code from the resource explorer within CCS itself. 

    I will update them right away!

  • Here is an updated build log after excluding 5521 .cmd file I had accidently built.

    Also attaching memory allocation for your reference..


    **** Build of configuration Debug for project uartecho_MSP_EXP430F5529LP_TI_MSP430F5529 ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 12 all -O
    'Building file: ../uartecho.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_32_01_22_core/xs" --xdcpath="C:/ti/tirtos_msp43x_2_20_00_06/packages;C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages;C:/ti/tirtos_msp43x_2_20_00_06/products/tidrivers_msp43x_2_20_00_08/packages;C:/ti/tirtos_msp43x_2_20_00_06/products/uia_2_00_06_52/packages;C:/ti/bios_6_75_01_05/packages;C:/ti/controlSUITE/powerSUITE/v_1_07_00_00/packages;" xdc.tools.configuro -o configPkg -t ti.targets.msp430.elf.MSP430X -p ti.platforms.msp430:MSP430F5529 -r release -c "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS" --compileOptions "-vmspx --data_model=restricted --use_hw_mpy=F5 --include_path=\"C:/ti/ccsv6/ccs_base/msp430/include\" --include_path=\"C:/ti/ccsv6/ccs_base/msp430/include\" --include_path=\"C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529\" --include_path=\"C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529\" --include_path=\"C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx\" --include_path=\"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include\" --advice:power=\"all\" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 " "../uartecho.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring uartecho.xe430X from package/cfg/uartecho_pe430X.cfg ...
    generating custom ti.sysbios library makefile ...
    generating custom ti.sysbios.family.msp430 Hwi stubs ...
    Starting build of library sources ...
    making C:/PROGRA~2/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios/sysbios.ae430X ...
    gmake[1]: Entering directory `C:/PROGRA~2/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios'
    cle430X C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages/ti/sysbios/BIOS.c ...
    asme430X C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages/ti/sysbios/family/msp430/Hwi_switch_asm.asm ...
    asme430X C:/ti/tirtos_msp43x_2_20_00_06/products/bios_6_46_00_23/packages/ti/sysbios/family/msp430/TaskSupport_asm.asm ...
    are430X BIOS.obj msp430_Hwi_switch_asm.obj msp430_TaskSupport_asm.obj ...
    gmake[1]: Leaving directory `C:/PROGRA~2/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529/src/sysbios'
    Build of libraries done.
    cle430X package/cfg/uartecho_pe430X.c ...
    "package/cfg/uartecho_pe430X.c", line 11225: warning #112-D: statement is unreachable
    "package/cfg/uartecho_pe430X.c", line 11460: warning #112-D: statement is unreachable
    "package/cfg/uartecho_pe430X.c", line 11680: warning #112-D: statement is unreachable
    "package/cfg/uartecho_pe430X.c", line 11861: warning #112-D: statement is unreachable
    'Finished building: ../uartecho.cfg'
    ' '
    1 file(s) copied.
    making ../src/sysbios/sysbios.ae430X ...
    gmake[1]: Nothing to be done for 'all'.
    'Building file: ../uartecho.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="uartecho.d" --cmd_file="configPkg/compiler.opt" "../uartecho.c"
    'Finished building: ../uartecho.c'
    ' '
    'Building file: ../MSP_EXP430F5529LP.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/Program Files (x86)/Work/uartecho_MSP_EXP430F5529LP_TI_MSP430F5529" --include_path="C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="MSP_EXP430F5529LP.d" --cmd_file="configPkg/compiler.opt" "../MSP_EXP430F5529LP.c"
    'Finished building: ../MSP_EXP430F5529LP.c'
    ' '
    making ../src/sysbios/sysbios.ae430X ...
    gmake[2]: Nothing to be done for 'all'.
    'Building target: uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power="all" --advice:power_severity=suppress --define=ccs --define=MSP430WARE --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_warning=255 --diag_wrap=off --display_error_number --abi=eabi --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" -i"C:/ti/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="uartecho_MSP_EXP430F5529LP_TI_MSP430F5529_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" "./MSP_EXP430F5529LP.obj" "./uartecho.obj" "../MSP_EXP430F5529LP.cmd" -l"configPkg/linker.cmd" -l"C:/ti/tirtos_msp43x_2_20_00_06/products/msp430_driverlib_2_70_01_01a/driverlib/MSP430F5xx_6xx/ccs/MSP430F5529.lib" -llibc.a -llibmath.a -llibc.a
    <Linking>
    error #10269: output file "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" exceeds code size limit
    error #10010: errors encountered during linking; "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" not built

    >> Compilation failure
    makefile:145: recipe for target 'uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out' failed
    gmake[1]: *** [uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out] Error 1
    makefile:141: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    Thanks

    Sanjit

  • Sanjit Inamdar said:
    I got this code from the resource explorer within CCS itself. 

    Can you please describe where you found it? I looked in the DriverLib and device folders inside MSP430Ware but couldn't find it. I'd like to find and build this code to duplicate your issue. What's strange is that your latest screenshot of the memory manager shows the code should fit on the MSP430F5521.

    If you're just interested in a UART echo example, you can find another code example under MSP430Ware > Devices > MSP430F5529 > Peripheral Examples > Register Level > MSP430F55xx_uscia0_uart_01.c. You can try importing that into CCS and building that project.

    Regards,

    James

  • Sanjit Inamdar said:
    error #10269: output file "uartecho_MSP_EXP430F5529LP_TI_MSP430F5529.out" exceeds code size limit

    It looks like that error is occurring because you are using CCS v6, in which without a full license the linker enforced a code size limit.

    See the Where can I get a license for Code Composer Studio v4, v5 or v6? entry on the CCS FAQs on how to get a zero-cost full licence for CCS v6.

    Alternatively, use a later version of CCS which no longer requires a licence file.

  • I imported MSP430F55xx_uscia0_uart_01.c into a default CCS project and built it. However I ran into some errors. Please take a look


    **** Build of configuration Debug for project Echo ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../MSP430F55xx_uscia0_uart_01.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power=all --define=__MSP430F5229__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="MSP430F55xx_uscia0_uart_01.d" "../MSP430F55xx_uscia0_uart_01.c"
    "../MSP430F55xx_uscia0_uart_01.c", line 103: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
    'Finished building: ../MSP430F55xx_uscia0_uart_01.c'
    ' '
    'Building file: ../main.c'
    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccsv6/ccs_base/msp430/include" --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power=all --define=__MSP430F5229__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d" "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building target: Echo.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5229__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU40 -z -m"Echo.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccsv6/ccs_base/msp430/include" -i"C:/ti/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="Echo_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "Echo.out" "./MSP430F55xx_uscia0_uart_01.obj" "./main.obj" "../lnk_msp430f5229.cmd" -llibmath.a -llibc.a
    <Linking>
    error #10056: symbol "main" redefined: first defined in "./MSP430F55xx_uscia0_uart_01.obj"; redefined in "./main.obj"
    error #10010: errors encountered during linking; "Echo.out" not built
    remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
    remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
    remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
    remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    >> Compilation failure
    makefile:142: recipe for target 'Echo.out' failed
    gmake: *** [Echo.out] Error 1
    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****

  • Hi Sanjit,

    I see you're still using CCS v6. As Chester and I have both recommended, please update your CCS version. In CCS v9.3.0, I successfully imported the 'MSP430F55xx_uscia0_uart_01.c' code example from TI Resource Explorer (with MSP430Ware v3.80.07.00 installed locally) and built the project with no errors. Please try to do this on your side.

    Regards,

    James

  • Hi James,

    Yeah sorry about that! I have updated CCS now. I installed MSP430Ware locally and tried the uart project again, however still errors! I'm new to CCS so I feel it's likely that I'm not importing in the code correctly?

    Thank you for the help!


    **** Build of configuration Debug for project echo ****

    "C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

    Building file: "../MSP430F55xx_uscia0_uart_01.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccs930/ccs/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Workspace v9/echo" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="MSP430F55xx_uscia0_uart_01.d_raw" "../MSP430F55xx_uscia0_uart_01.c"
    "../MSP430F55xx_uscia0_uart_01.c", line 103: remark #1528-D: (ULP 3.1) Detected flag polling using UCTXIFG. Recommend using an interrupt combined with enter LPMx and ISR
    Finished building: "../MSP430F55xx_uscia0_uart_01.c"

    Building file: "../main.c"
    Invoking: MSP430 Compiler
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --include_path="C:/ti/ccs930/ccs/ccs_base/msp430/include" --include_path="C:/Program Files (x86)/Workspace v9/echo" --include_path="C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
    Finished building: "../main.c"

    Building target: "echo.out"
    Invoking: MSP430 Linker
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/bin/cl430" -vmspx --data_model=restricted --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"echo.map" --heap_size=160 --stack_size=160 --cinit_hold_wdt=on -i"C:/ti/ccs930/ccs/ccs_base/msp430/include" -i"C:/ti/ccs930/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/lib" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-msp430_19.6.0.STS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="echo_linkInfo.xml" --use_hw_mpy=F5 --rom_model -o "echo.out" "./MSP430F55xx_uscia0_uart_01.obj" "./main.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
    <Linking>
    error #10056: symbol "main" redefined: first defined in "./MSP430F55xx_uscia0_uart_01.obj"; redefined in "./main.obj"
    error #10010: errors encountered during linking; "echo.out" not built
    remark #10372-D: (ULP 4.1) Detected uninitialized Port A in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
    remark #10372-D: (ULP 4.1) Detected uninitialized Port B in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
    remark #10372-D: (ULP 4.1) Detected uninitialized Port C in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.
    remark #10372-D: (ULP 4.1) Detected uninitialized Port D in this project. Recommend initializing all unused ports to eliminate wasted current consumption on unused pins.

    >> Compilation failure
    makefile:143: recipe for target 'echo.out' failed
    gmake[1]: *** [echo.out] Error 1
    makefile:139: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

    Regards,

    Sanjit

  • Hello Sanjit,

    Thanks for updating your CCS version. This is definitely a strange issue. It's good that you installed MSP430Ware too. What version did you install? Did you happen to restart CCS after installing MSP430Ware, so CCS could find the new installation?

    Perhaps there's an issue with your CCS workspace. Can you try making a new folder under C: such as C:\ccs_workspace? Then, switch to this workspace when you open CCS.

    For me, there's a green checkmark next to MSP430Ware in the TI Resource Explorer indicating it's installed locally.

    Then, after navigating to the UART code example for the MSP430F5529, I click "Import" in the upper right-hand side of the TI Resource Explorer window.

    Next, I select what device I'm using.

    Then, the project gets imported into CCS Project Explorer.

    Clicking the hammer icon to build the project results in no errors.

    I hope this helps.

    Regards,

    James

  • Hi James,

    I had installed a different version of MSP430Ware, however on rolling back to your version and importing the UART code, the project builds and the program executes! Still not really sure what the issue was, but I'm glad that it's fixed..

    Thank you so much for your time and help!

    Regards,

    Sanjit

  • Hi Sanjit,

    That's good news! Thanks for letting us know and marking the thread "Resolved". We appreciate it.

    Regards,

    James

**Attention** This is a public forum