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/TMDS570LS31HDK: Release version does not produce a .out file

Part Number: TMDS570LS31HDK
Other Parts Discussed in Thread: HALCOGEN,

Tool/software: Code Composer Studio

After developing and debugging a project ok in Debug mode  I thought I would do a Release version.

After adding some missing include paths to match the Debug settings the project seemed to build ok.

But there is no .out file in the Release directory like there is in the Debug directory and no other feedback.

Any ideas?

  • Hello,

    Thomas Pikett said:
    But there is no .out file in the Release directory like there is in the Debug directory and no other feedback.

    It sounds like the build was not successful. Can you provide the full build output in your build console?

    Thanks

    ki

  • Thanks. The build log shows that nearly everything failed to compile. When I changed from a Debug to a Release version the compiler changed! Release uses the TMS470 Compiler and Linker; Debug uses the ARM Compiler and Linker. Another difference is in the include paths with nearly all of them disappearing when I changed to Release mode. Only C:/ti/ccsv6/tools/compiler/arm_5.1.6/include remains in the Includes project folder. I have 3 folders for my project demo-app, HALCoGen and 02.02.02 (for flash operations) - all have include and source folders.

    Update:

    I set the paths incorrectly. Now i have set them correctly it is much better. I have one error (albeit with another compiler) :

    In demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io makefsdata.c the include file dir.h is not found. I cannot find dir.h anywhere.

  • Set the same compiler tools and other products for both debug and release versions.
  • The problem remains the same. The Release version uses a different compiler and this produces errors not seen in the Debug version.
    Incidentally the errors are in the included httpserver_raw_io folder and I do not want any http facilities.
  • Use Project Properties -> General to change a compiler tools for a release version.
  • Thomas - it is hard to determine what the root issue is without the project.

    Can you compile both Debug and Release configurations. Make sure you capture all the build output in the console to a text file. Then attach both text files to this thread.

    Thanks
    ki
  • Attached is the log for the Debug and Release versions. Thanks.

    CCS 6.0.1.0040 kit is TMDS570LS31HDK (2014 vintage)TMS570LS3x_demo_software.build.logTMS570LS3x_demo_software.build.log

  • Looks like both attachments are for the Debug configuration. Can you post the one for Release?
  • Apologies see attached.

    5123.TMS570LS3x_demo_software.build.log
    **** Build of configuration Release for project TMS570LS3x_demo_software ****
    
    "c:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c'
    'Invoking: TMS470 Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -O2 --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/HALCoGen/include" --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include/ipv4" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include" --diag_warning=225 --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.pp" --obj_directory="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io"  "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c"
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 9: warning #179-D: variable "dummy_align__images_hercules_extranet_landing_page_png" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 16355: warning #179-D: variable "dummy_align__images_ti_logo_gif" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 16586: warning #179-D: variable "dummy_align__images_tms570_blockdiagram_small_gif" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 18888: warning #179-D: variable "dummy_align__404_html" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 18933: warning #179-D: variable "dummy_align__BreadCrumbs_css" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 18961: warning #179-D: variable "dummy_align__IE60Fixes_css" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 19098: warning #179-D: variable "dummy_align__index_html" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c", line 20931: warning #179-D: variable "dummy_align__main_css" was declared but never referenced
    'Finished building: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/_fsdata.c'
    ' '
    'Building file: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fs.c'
    'Invoking: TMS470 Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -O2 --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/HALCoGen/include" --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include/ipv4" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include" --diag_warning=225 --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fs.pp" --obj_directory="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io"  "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fs.c"
    'Finished building: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fs.c'
    ' '
    'Building file: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c'
    'Invoking: TMS470 Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -O2 --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/HALCoGen/include" --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include/ipv4" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include" --diag_warning=225 --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.pp" --obj_directory="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io"  "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c"
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 9: warning #179-D: variable "dummy_align__images_hercules_extranet_landing_page_png" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 16355: warning #179-D: variable "dummy_align__images_ti_logo_gif" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 16586: warning #179-D: variable "dummy_align__images_tms570_blockdiagram_small_gif" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 18888: warning #179-D: variable "dummy_align__404_html" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 18933: warning #179-D: variable "dummy_align__BreadCrumbs_css" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 18961: warning #179-D: variable "dummy_align__IE60Fixes_css" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 19098: warning #179-D: variable "dummy_align__index_html" was declared but never referenced
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c", line 20931: warning #179-D: variable "dummy_align__main_css" was declared but never referenced
    'Finished building: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/fsdata.c'
    ' '
    'Building file: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/httpd_io.c'
    'Invoking: TMS470 Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -O2 --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/HALCoGen/include" --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include/ipv4" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include" --diag_warning=225 --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/httpd_io.pp" --obj_directory="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io"  "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/httpd_io.c"
    'Finished building: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/httpd_io.c'
    ' '
    'Building file: C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/makefsdata.c'
    'Invoking: TMS470 Compiler'
    "c:/ti/ccsv6/tools/compiler/arm_5.1.6/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --abi=eabi -O2 --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/HALCoGen/include" --include_path="c:/ti/ccsv6/tools/compiler/arm_5.1.6/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/netif" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include/ipv4" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/ports/hdk/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/src/include" --diag_warning=225 --display_error_number --enum_type=packed --preproc_with_compile --preproc_dependency="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/makefsdata.pp" --obj_directory="demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io"  "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/makefsdata.c"
    "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/makefsdata.c", line 16: fatal error #1965: cannot open source file "dir.h"
    
    >> Compilation failure
    1 catastrophic error detected in the compilation of "C:/ti/Hercules/Hercules Safety MCU Demos/TMS570LS3x_target_sources/demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/makefsdata.c".
    Compilation terminated.
    gmake: *** [demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io/makefsdata.obj] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

  • Thomas, 

    I see no errors in your last Console log file. 

    Thomas Pikett said:
    Incidentally the errors are in the included httpserver_raw_io folder and I do not want any http facilities.

    if you do not want any http facilities just exclude (or delete) that files from the project. 

  • Thanks. I know what the issue is. You are building TMS570LS3x demo software project from the Hercules Safety MCU Demos package. That demo project was only configured for the Debug configuration. It appears the Release configuration was never correctly set up since it only has the default options. This is why it won't build out of the box. It is missing a bunch of build options. The main difference between the default Debug and Release configurations is the Debug is built with the "-g" option while Release is configured for "-O2" optimization. Hence you can theoretically copy your options from Debug to Release and swap the "-g" for "-O2". But really, the example should have only had one build configuration (Debug) and removed the other one that was not being used at all (Release).

    Thanks
    ki
  • As for why you got this error:

    Thomas Pikett said:
    In demo-app/3P/lwip-1.3.2/apps/httpserver_raw_io makefsdata.c the include file dir.h is not found. I cannot find dir.h anywhere.

    I see that for the "Debug" configuration, makefsdata.c has been excluded from the build (along with some other files). Hence why you didn't see the error when you built the Debug configuration. Since the "Release" configuration was never properly configured, it is not excluding any of the files that are supposed to be excluded.

    Thanks

    ki

  • Hi,

    I think my current project is far too messy to fix. I do not need a release build immediately so I will carry on development and mark this issue as resolved.

    I will generate a new HALCogen then CCS project once I have finished - using the latest versions of them.

    Thanks for your help.