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.

RE: User Experience Code on MSP430 Exp Board

Other Parts Discussed in Thread: MSP430F5438A, MSPWARE

I am having the same problem with new MSP-EXP430F5438 board and latest version of ccs

Version: 6.0.1.00040 and MSP-EXP430F5438_User_Experience_16KB program downloaded via "Getting Started" option in CCS.

Below is console output:

**** Build of configuration Debug for project MSP-EXP430F5438_User_Experience_16KB ****

"c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all

'Building target: MSP-EXP430F5438UserExperience.out'

'Invoking: MSP430 Linker'

"c:/ti/ccsv6/tools/compiler/msp430_4.3.3/bin/cl430" -vmspx --code_model=large -O2 --opt_for_speed=5 -g --define=__MSP430F5438A__ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal -z --stack_size=160 -m"MSP-EXP430F5438UserExperience.map" --heap_size=160 --use_hw_mpy=F5 -i"c:/ti/ccsv6/tools/compiler/msp430_4.3.3/lib" -i"c:/ti/ccsv6/tools/compiler/msp430_4.3.3/include" -i"c:/ti/ccsv6/ccs_base/msp430/include" -i"c:/ti/ccsv6/msp430/include" -i"c:/ti/ccsv6/tools/compiler/msp430_4.3.3/lib" -i"c:/ti/ccsv6/tools/compiler/msp430_4.3.3/include" -i"C:/Users/Frank/workspace_v6_0/MSP-EXP430F5438_User_Experience_16KB" --reread_libs --warn_sections --xml_link_info="link_details.xml" --rom_model -o "MSP-EXP430F5438UserExperience.out" "./main.obj" "./system_pre_init.obj" "./UserExperienceDemo/5xx_ACTIVE_test.obj" "./UserExperienceDemo/FFT.obj" "./UserExperienceDemo/FFT_430.obj" "./UserExperienceDemo/LPM.obj" "./UserExperienceDemo/PMM.obj" "./UserExperienceDemo/PowerTest.obj" "./UserExperienceDemo/UserExperienceGraphics.obj" "./UserExperienceDemo/UserExperience_F5438A.obj" "./UserExperienceDemo/adcTemp.obj" "./UserExperienceDemo/audio.obj" "./UserExperienceDemo/balanceBall.obj" "./UserExperienceDemo/clock.obj" "./UserExperienceDemo/flashUtils.obj" "./UserExperienceDemo/menuSetting.obj" "./UserExperienceDemo/usbTest.obj" "./MSP-EXP430F5438_HAL/hal_adc.obj" "./MSP-EXP430F5438_HAL/hal_board.obj" "./MSP-EXP430F5438_HAL/hal_buttons.obj" "./MSP-EXP430F5438_HAL/hal_lcd.obj" "./MSP-EXP430F5438_HAL/hal_lcd_fonts.obj" "./MSP-EXP430F5438_HAL/hal_rf.obj" "./MSP-EXP430F5438_HAL/hal_rtc.obj" "./MSP-EXP430F5438_HAL/hal_usb.obj" "./F5xx_F6xx_Core_Lib/HAL_FLASH.obj" "./F5xx_F6xx_Core_Lib/HAL_PMAP.obj" "./F5xx_F6xx_Core_Lib/HAL_PMM.obj" "./F5xx_F6xx_Core_Lib/HAL_TLV.obj" "./F5xx_F6xx_Core_Lib/HAL_UCS.obj" "../MSP-EXP430F5438_User_Experience_Lib.lib" "../lnk_msp430f5438a_mod.cmd" -l"libc.a" -lMSP-EXP430F5438_User_Experience_Lib.lib

<Linking>

"../lnk_msp430f5438a_mod.cmd", line 139: warning #10424-D: Linker command file

has no sections of type=VECT_INIT, but does contain .intXX sections. This

file may be out of date. Generating interrupt pointers for all .intXX

sections. The default handler provided in the RTS will be used if no other

handler is found. It is recommend that you update your linker command file

to the latest version.

error #10269: output file "MSP-EXP430F5438UserExperience.out" exceeds code size

>> Compilation failure

limit

error #10010: errors encountered during linking;

"MSP-EXP430F5438UserExperience.out" not built

gmake: *** [MSP-EXP430F5438UserExperience.out] Error 1

gmake: Target `all' not remade because of errors.

**** Build Finished ****

Thanks for any help you can provide.

Frank T

  • Hi Frank,

    I could not reproduce this here.  I went to examples -> mspware-> imported the code size limited user experience project for the msp4305438.   

    I got 3 warnings but no errors or issues.   Given the error seems to be the code size

    - > Are you sure you imported the example from the latest mspware version?

    - > In Help->Code composer studio licensing information what do you see?    You should be on the msp430 code limited license or the full license.   Otherwise this is possibly the issue.

    Best Regards,

    Lisa

  • CCS is giving the error as the linker has detected that more than 16KB of code is present which is not allowed with the free 16KB code size limited license.  It certainly looks like the project was intended to fit within that limit but no longer does.

    When I look at the optimization settings for the project they are set to optimize for speed.  Perhaps changing this will help fit within the limit.  If you go to the project options change the option below from 5 to 0.

    I would confirm that this works but unfortunately I am hitting other build errors.

  • I fixed the other problem I was having.

    Even changing to optimize for size I still get the same error as you.  I suspect that the example was written with one version of the compiler and the current version must produce slightly bigger code for his specific project.  I will need to get someone from the compiler side to look at it.

    John

  • I ran the Optimizer Assistant in CCS and was able to determine that having optimize for speed set to 0 and the optimization level set to 4 gives the best code size for this project.  This allows it to fit within the limit.

    John

  • Thanks for all your help and suggestions. I have worked around the problem by signing up for the 90 day license. Works fine.