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/MSP-EXP430F5438: Code Composer Version error with MSP-FET

Part Number: MSP-EXP430F5438
Other Parts Discussed in Thread: MSP-FET, MSP430F5438A

Tool/software: Code Composer Studio

Hi ,

I have been sing MSP-EXP430F5438 with latest Code Composer Version 7.

However, Example user experience code(SLAC227L) is not compiling with this Version.

I get error of "

fatal error #6001: cannot open file

"C:\ti\ccsv7\tools\compiler\ti-cgt-msp430_16.9.1.LTS\lib\rts430x_lc_ld_eabi.

lib": Permission denied "

As suggested by TI Team, I have installed CCS V5.5 and code is compiled. But, I am unable to load code into board as MSP-FET is not recognised  by older Version5.5.

Please suggest what to do here.

Let me know the alternate Option to Flash the code or reset MSP-FET firware.

Regards,

Raju

  • Hi Raju

    VR said:

    fatal error #6001: cannot open file

    "C:\ti\ccsv7\tools\compiler\ti-cgt-msp430_16.9.1.LTS\lib\rts430x_lc_ld_eabi.

    lib": Permission denied "

    Odd, it is complaining about a permissions issue when you are trying to link the library in. Also odd that CCSv5.5 does not have the issue. Did you also install CCSv7 the same way?

    VR said:
    But, I am unable to load code into board as MSP-FET is not recognised  by older Version5.5.

    It could be that the newer FETs do not support CCSv5.x. I suppose you could always build with CCSv5.5 and debug with CCSv7. But that is a headache. You should be able to build with CCSv7.

    VR said:
    As suggested by TI Team, I have installed CCS V5.5 and code is compiled

    Did the team give a reason why the suggested CCSV5.5? Is there some dependency on it?

    Thanks

    ki

  • Hi Ki,

    Thanks for quick reply.
    I have been using CCSv7 for Long time. Only this particular example code gives this error, all other example codes working good with V7.
    with CCSv5.5, i dont see any commpiling erro, just it says No US FET even though it is conneted and it was working with CCSv7 with other programs.

    user experience Exmaple code is very old code last checked in 2013.
    I think, it was not checked with later Versions. When I asked it was not working, they have mentioned it is working with old Version and asked me to try with old Version.
    Then I ended up thiw FET issue.

    Regards,
    Raju
  • I would like to try building it myself but I can't find the code (SLAC227L). Can you send me a link to where you got yours?

    Thanks
    ki
  • Hi Ki,

    Please find below links for it.

    www.ti.com/.../slac227

    www.ti.com/.../MSP-EXP430F5438

    regards,
    Raju
  • Thanks. I see the project uses a pretty old version of the compiler. Can you point your CCSv7 install to use the MSP430 compiler from your CCSv5 install? The one that comes in CCSv5 is close enough. See the below link on how to do this:
    processors.wiki.ti.com/.../Compiler_Installation_and_Selection

    Thanks
    ki
  • Hi Ki,

    I have tried by adding CCSv7 in CCSv5 and vice versa.

    Results are same it were. No cahnge.

    Rgds,

    Raju

  • So you tried building the project in v7 using the MSP430 4.2.1 compiler from v5 and got the same error? Can your provide your build output?

    Thanks
    ki
  • Yes,
    Do I Need to delete other Compilers to use MS430 4.2.1?

    Regards,
    Raju
  • Total Error message as below: May give some more clues.

    <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.

    fatal error #6001: cannot open file

      "C:\ti\ccsv7\tools\compiler\ti-cgt-msp430_16.9.1.LTS\lib\rts430x_lc_ld_eabi.

      lib":  Permission denied

    >> Compilation failure

    makefile:169: recipe for target 'MSP-EXP430F5438UserExperience.out' failed

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

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

  • VR said:
      "C:\ti\ccsv7\tools\compiler\ti-cgt-msp430_16.9.1.LTS\lib\rts430x_lc_ld_eabi.

    It looks like you are still using the newer compiler that comes from v7, or you are explicitly referencing that library in your project. Please have v7 use the older compiler from v5 as I mentioned earlier and have your project autoselect the library to use

  • Here you can see , I have enabled only V5 complier.

    Still I get the same error, I dont know why it is referring to V7.

    Regards,

    Raju

  • your screenshot didn't get posted

    If you did configure your project for the older compiler from v5, then your project properties should looks like:

    And the build tools from the compiler from v5 should be getting invoked like so:

    'Invoking: MSP430 Compiler'
    "C:/ti/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmspx --code_model=large --data_model=large -O2 --opt_for_speed=5 -g --include_path="C:/ti/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/include" --include_path="C:/ti/ccsv7.2.0.00013/ccsv7/ccs_base/msp430/include" --include_path="C:/Users/a0389327/Desktop/slac227l/5438UE_1_52_00/src/F5xx_F6xx_Core_Lib" --include_path="C:/Users/a0389327/Desktop/slac227l/5438UE_1_52_00/src/MSP-EXP430F5438_HAL" --include_path="C:/Users/a0389327/Desktop/slac227l/5438UE_1_52_00/src/UserExperienceDemo" --define=__MSP430F5438A__ --diag_warning=225 --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --printf_support=minimal --preproc_with_compile --preproc_dependency="UserExperienceDemo/usbTest.d" --obj_directory="UserExperienceDemo"  "C:/Users/a0389327/Desktop/slac227l/5438UE_1_52_00/src/UserExperienceDemo/usbTest.c"
    'Finished building: C:/Users/a0389327/Desktop/slac227l/5438UE_1_52_00/src/UserExperienceDemo/usbTest.c'
    ' '
    'Building target: MSP-EXP430F5438UserExperience.out'
    'Invoking: MSP430 Linker'
    "C:/ti/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/bin/cl430" -vmspx --code_model=large --data_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/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/lib" -i"C:/ti/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/include" -i"C:/ti/ccsv7.2.0.00013/ccsv7/ccs_base/msp430/include" -i"C:/ti/ccsv7.2.0.00013/ccsv7/msp430/include" -i"C:/ti/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/lib" -i"C:/ti/ccsv5.5.0.00077/ccsv5/tools/compiler/msp430_4.2.1/include" --reread_libs --warn_sections --xml_link_info="link_details.xml" --rom_model -o "MSP-EXP430F5438UserExperience.out" "./main.obj" "./system_pre_init.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_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" "./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" "../lnk_msp430f5438a_mod.cmd"  -llibc.a
    <Linking>
    'Finished building target: MSP-EXP430F5438UserExperience.out'

  • Yes,

    I have checked it again, it Shows as per your screenshot.

    Regards,
    raju
  • please post all your complete build output.
  • Hi Ki,

    Finally, it worked after CCS reboot.

    Thanks for all your help.

    regards,
    Raju
  • Ok, good to hear. Thanks for the update!