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.

LAUNCHXL2-TMS57012: CCS Backwards compatibility

Part Number: LAUNCHXL2-TMS57012
Other Parts Discussed in Thread: BQ79616, TMS570LS1224

Tool/software:

Hello,

I am attempting to use the BQ79616 sample code and this is stated:

I am trying to install CSS Version 8.1 and having issues which may be related to IT. Should the sample code be working on the current version of CSS? I tried on V12 but it seemed like the Hercules product family was not supported when doing the setup. 

Thanks,

Jeremy

  • Hi Jeremy,

    I am trying to install CSS Version 8.1 and having issues which may be related to IT. Should the sample code be working on the current version of CSS?

    It should work. 

    May be for older versions (less than 8.1) may not work, but it will work for latest CCS.

    --
    Thanks & regards,
    Jagadish.

  • This is the error I get using CCS Theia. 

    After looking through other forum posts where device files are not found, other TI employees had said this " I suspect your copy of CCS does not have support for the Hercules family of devices."

    The customer responded "I have changed the compiler to the old version, it had cleared all the warnings."

    So what is wrong and how confident are you that it should be working.

  • Hi Jeremy,

    Can you please verify whether tms570ls1224.xml present or not in the CCS data base of your current using CCS version. Just follow below path and verify it.

    If it is not present, then can you try the below steps:

    Go to the install device support in Help section.

    Again, you will get installation steps and then you find one screen where you need to select required devices. Here make sure to select the Hercules controllers.

    --
    Thanks & regards,
    Jagadish.

  • This is the error I get using CCS Theia. 

    CCS Theia currently does not support Hercules devices. Please use CCS Eclipse. The latest version of CCS Eclipse is CCS 12.7.1.

  • Thank you Ki! I will try this. 

  • HI Ki, maybe you have the answer to this. I am no coding expert but how can there be no search directory for bq79616.h when it is in the same project folder

  • I am no coding expert but how can there be no search directory for bq79616.h when it is in the same project folder

    It's because angled brackets are being used to reference the file instead of double quotes. The former will not search in the current (same location as the source file) by default as the latter would.

  • Thanks for the help Ki,

    It has found the file but cannot open it? Any potential cause of this?

  • Please make sure you explicitly add the path to that file in your include search path project options

  • Slowly getting better! One error fixed the another pops up. Luckily I'm referencing your old answers from years ago haha. 

    This is found under 

    C:\ti\ccs1271\ccs\tools\compiler\lib

    I really appreciate the help

    Edit: 

    I referenced this old post 

    https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/653089/ccs-tms570lc4357-ccs-cannot-find-file-cannot-find-file-error

    The file was included specifically under the "file search path" just like this user's was. Was the solution to remove it from the path? I have tried to remove it and I am just getting this error now.

  • I think your issue is different. Can you provide your full build output in the build console? You can copy&paste all messages to a text file and then attach the file to this thread.

  • **** Build of configuration Debug for project BQ79616_Sample_Code ****
    
    "C:\\ti\\ccs1271\\ccs\\utils\\bin\\gmake" all 
     
    Building file: "../source/bq79616.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/bq79616.d_raw" --obj_directory="source"  "../source/bq79616.c"
    "C:\Users\JeremyTrafas\OneDrive - EnerVenue, Inc\Documents\bq79616_sample_code\include\B0_reg.h", line 312: warning: last line of file ends without a newline
    "../source/bq79616.c", line 451: warning: function "printf" declared implicitly
    "../source/bq79616.c", line 471: warning: function "printf" declared implicitly
    "../source/bq79616.c", line 478: warning: function "printf" declared implicitly
    Finished building: "../source/bq79616.c"
     
    Building file: "../source/dabort.asm"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/dabort.d_raw" --obj_directory="source"  "../source/dabort.asm"
    Finished building: "../source/dabort.asm"
     
    Building file: "../source/esm.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/esm.d_raw" --obj_directory="source"  "../source/esm.c"
    Finished building: "../source/esm.c"
     
    Building file: "../source/gio.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/gio.d_raw" --obj_directory="source"  "../source/gio.c"
    Finished building: "../source/gio.c"
     
    Building file: "../source/notification.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/notification.d_raw" --obj_directory="source"  "../source/notification.c"
    Finished building: "../source/notification.c"
     
    Building file: "../source/pinmux.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/pinmux.d_raw" --obj_directory="source"  "../source/pinmux.c"
    Finished building: "../source/pinmux.c"
     
    Building file: "../source/rti.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/rti.d_raw" --obj_directory="source"  "../source/rti.c"
    Finished building: "../source/rti.c"
     
    Building file: "../source/sci.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sci.d_raw" --obj_directory="source"  "../source/sci.c"
    Finished building: "../source/sci.c"
     
    Building file: "../source/sys_core.asm"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_core.d_raw" --obj_directory="source"  "../source/sys_core.asm"
    Finished building: "../source/sys_core.asm"
     
    Building file: "../source/sys_dma.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_dma.d_raw" --obj_directory="source"  "../source/sys_dma.c"
    Finished building: "../source/sys_dma.c"
     
    Building file: "../source/sys_intvecs.asm"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_intvecs.d_raw" --obj_directory="source"  "../source/sys_intvecs.asm"
    Finished building: "../source/sys_intvecs.asm"
     
    Building file: "../source/sys_main.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_main.d_raw" --obj_directory="source"  "../source/sys_main.c"
    "C:\Users\JeremyTrafas\OneDrive - EnerVenue, Inc\Documents\bq79616_sample_code\include\B0_reg.h", line 312: warning: last line of file ends without a newline
    "../source/sys_main.c", line 165: warning: function "memset" declared implicitly
    "../source/sys_main.c", line 218: warning: statement is unreachable
    Finished building: "../source/sys_main.c"
     
    Building file: "../source/sys_mpu.asm"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_mpu.d_raw" --obj_directory="source"  "../source/sys_mpu.asm"
    Finished building: "../source/sys_mpu.asm"
     
    Building file: "../source/sys_pcr.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_pcr.d_raw" --obj_directory="source"  "../source/sys_pcr.c"
    Finished building: "../source/sys_pcr.c"
     
    Building file: "../source/sys_phantom.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_phantom.d_raw" --obj_directory="source"  "../source/sys_phantom.c"
    Finished building: "../source/sys_phantom.c"
     
    Building file: "../source/sys_pmm.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_pmm.d_raw" --obj_directory="source"  "../source/sys_pmm.c"
    Finished building: "../source/sys_pmm.c"
     
    Building file: "../source/sys_pmu.asm"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_pmu.d_raw" --obj_directory="source"  "../source/sys_pmu.asm"
    Finished building: "../source/sys_pmu.asm"
     
    Building file: "../source/sys_selftest.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_selftest.d_raw" --obj_directory="source"  "../source/sys_selftest.c"
    Finished building: "../source/sys_selftest.c"
     
    Building file: "../source/sys_startup.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_startup.d_raw" --obj_directory="source"  "../source/sys_startup.c"
    Finished building: "../source/sys_startup.c"
     
    Building file: "../source/sys_vim.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/sys_vim.d_raw" --obj_directory="source"  "../source/sys_vim.c"
    Finished building: "../source/sys_vim.c"
     
    Building file: "../source/system.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code/include" --include_path="C:/ti/ccs1271/ccs/tools/compiler/include" --include_path="C:/Users/JeremyTrafas/OneDrive - EnerVenue, Inc/Documents/bq79616_sample_code" --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="source/system.d_raw" --obj_directory="source"  "../source/system.c"
    Finished building: "../source/system.c"
     
    Building target: "BQ79616_Sample_Code.out"
    Invoking: ARM Linker
    "C:/ti/ccs1271/ccs/tools/compiler/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --enum_type=packed --abi=eabi -z --heap_size=0x800 --stack_size=0x800 --reread_libs --warn_sections --rom_model --be32 -o "BQ79616_Sample_Code.out" "./source/bq79616.obj" "./source/dabort.obj" "./source/esm.obj" "./source/gio.obj" "./source/notification.obj" "./source/pinmux.obj" "./source/rti.obj" "./source/sci.obj" "./source/sys_core.obj" "./source/sys_dma.obj" "./source/sys_intvecs.obj" "./source/sys_main.obj" "./source/sys_mpu.obj" "./source/sys_pcr.obj" "./source/sys_phantom.obj" "./source/sys_pmm.obj" "./source/sys_pmu.obj" "./source/sys_selftest.obj" "./source/sys_startup.obj" "./source/sys_vim.obj" "./source/system.obj" "../source/sys_link.cmd"  
    <Linking>
     
     undefined            first referenced        
      symbol                  in file             
     ---------            ----------------        
     __TI_auto_init       ./source/sys_startup.obj
     __TI_decompress_lzss                         
     __TI_decompress_none                         
     __TI_zero_init                               
     exit                 ./source/sys_startup.obj
     floor                ./source/sci.obj        
     memset               ./source/bq79616.obj    
     printf               ./source/bq79616.obj    
     
    error: unresolved symbols remain
    error: errors encountered during linking; "BQ79616_Sample_Code.out" not built
     
    >> Compilation failure
    makefile:153: recipe for target 'BQ79616_Sample_Code.out' failed
    gmake: *** [BQ79616_Sample_Code.out] Error 1
    
    **** Build Finished ****
    

    Thank you

  • I don't see the RTS lib being passed to the linker. Did you specify it in the sys_link.cmd file?

  • I added the RTS lib to the arm linker file search path and I am not getting any errors in the debugger now. I think all is well? I am going to try the code with the devices linked shortly. 

  • Ki, you are a genius. Another tip I'd suggest you recommend to forum users is disabling optimizer. It was running the functions completely wrong. I had to work with my firmware team to figure that one out. I really appreciate your guidance! 

  • Another tip I'd suggest you recommend to forum users is disabling optimizer. It was running the functions completely wrong.

    That would be a bug. Can you start a new thread for just this issue and provide more details and a test case? I will then have the compiler experts investigate.

    I will close this thread for now.

  • I have created the thread! Thanks again