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/UCD3138: ucd3138 gmake[1]: *** [clear_program_flash.obj] Error 1

Part Number: UCD3138

Tool/software: Code Composer Studio

I have a programm "UCD3138HSFBEVM_029" and CCS  Version: 6.2.0.00050 with compiler version TI v5.2.4

2 mounth ago, all be ok. But now, i compile project and have errors:

Project "Lab_1" :

I see this post  But its dont work. Can you help me?

  • The recent version of HSFB code was compiled using compiler version TI v5.2.9

    Could you please install compiler version TI v5.2.9 through the help-> Install new software menu and see if it helps? 

    Regards,

  • Hello Sergey,

    I have actually downloaded the HSFB code from TI.COM and compiled it using compiler version TI v5.2.4 on several machines.

    The program compiled fine. Do you have the support for Digital power products or ARM7 in the downloaded version of your CCS?

    Regards,

  • Hello, i try to compile this project on the other PC and all ok. But what are the problems with this machine?

    I am reinstall CCS, and its dont work. it looks like the compiler did not install.

    And this warning: "This project contains 9 unresolved buildable linked resource(s). The project may not build as expected. "


  • Please uninstall CCS.

    Reboot your PC.

    Install the CCS again and make sure in the process of installation you choose to add the support for "Digital Power Products".

    Try to compile gain. Hope this will fix the issue your facing.

    Regards,

  • Hi,

    Yitzhak asked me to provide some comments. 

    Just after installing CCSv9.2, I tried to build Lab1 but ran into the following error.

    .

    console said:

    Buildfile generation error occurred..
    This project was created using a version of compiler that is not currently installed - 5.2.7 [ARM]:
    - See 'Help > Install New Software' and select 'Code Generation Tools Updates' to check if this compiler is available through a CCS update.
    - Visit CCS App Center to get the latest compiler support.
    - Or download and install the compiler [http://software-dl.ti.com/codegen/non-esd/downloads], then register it with CCS through 'Preferences > CCS > Build > Compilers'.
    Build stopped..

    I then followed the instructions in the error message to install the older compiler (check this reference) and selected a compatible ARM compiler version 5.2.x

    The project then built fine and witihout errors.

    **** Build of configuration UCD3138 for project Lab_1 ****
    
    "C:\\CCSv9_2_0\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "../cyclone_global_variables_defs.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../cyclone_global_variables_defs.c"
    Finished building: "../cyclone_global_variables_defs.c"
     
    Building file: "../interrupts.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../interrupts.c"
    Finished building: "../interrupts.c"
     
    Building file: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Linker Files/load_UCD3138.asm"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Linker Files/load_UCD3138.asm"
    Finished building: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Linker Files/load_UCD3138.asm"
     
    Building file: "../main.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../main.c"
    Finished building: "../main.c"
     
    Building file: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_command_indexes.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_command_indexes.c"
    Finished building: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_command_indexes.c"
     
    Building file: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_common.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_common.c"
    Finished building: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_common.c"
     
    Building file: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_driver.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_driver.c"
    Finished building: "C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common/pmbus_driver.c"
     
    Building file: "../pmbus_topology.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../pmbus_topology.c"
    Finished building: "../pmbus_topology.c"
     
    Building file: "../software_interrupt.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --opt_for_speed=5 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../software_interrupt.c"
    Finished building: "../software_interrupt.c"
     
    Building file: "../software_interrupt_wrapper.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../software_interrupt_wrapper.c"
    Finished building: "../software_interrupt_wrapper.c"
     
    Building file: "../standard_interrupt.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../standard_interrupt.c"
    Finished building: "../standard_interrupt.c"
     
    Building file: "../zero_out_integrity_word.c"
    Invoking: ARM Compiler
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 --include_path="C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Header Files" --include_path="C:/ti/UCD3138/traininglabs-1.0/Training-labs/Pmbus_common" --include_path="C:/Users/a0356111/workspace_v9_2/Lab_1/" -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138"  "../zero_out_integrity_word.c"
    Finished building: "../zero_out_integrity_word.c"
     
    Building target: "Lab_1_UCD3138.out"
    Invoking: ARM Linker
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armcl" -mv4 --code_state=16 --abi=ti_arm9_abi -O3 -g --preproc_with_comment --preproc_with_compile --define=UCD3138=1 --diag_warning=225 --display_error_number --printf_support=full -k --asm_listing --pp_directory="C:/Users/a0356111/workspace_v9_2/Lab_1/UCD3138" -z -m"Lab_1_UCD3138.map" --stack_size=400 --heap_size=400 -i"C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/lib" -i"C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/include" --reread_libs --define=UCD3138=1 --display_error_number --warn_sections --xml_link_info="Lab_1_linkInfo.xml" --entry_point=c_int00 --rom_model -o "Lab_1_UCD3138.out" "./cyclone_global_variables_defs.obj" "./interrupts.obj" "./load_UCD3138.obj" "./main.obj" "./pmbus_command_indexes.obj" "./pmbus_common.obj" "./pmbus_driver.obj" "./pmbus_topology.obj" "./software_interrupt.obj" "./software_interrupt_wrapper.obj" "./standard_interrupt.obj" "./zero_out_integrity_word.obj" "C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Linker Files/cyclone.cmd" "C:/ti/UCD3138/traininglabs-1.0/Training-labs/UCD3138_Linker Files/cyclone_headers.cmd"  -llibc.a 
    <Linking>
    warning #10366-D: automatic library build: using library
       "C:\CCSv6_2_0\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\lib\rtsv4_T_be_tiarm9.li
       b" for the first time, so it must be built.  This may take a few minutes.
    warning #10063-D: entry-point symbol other than "_c_int00" specified:
       "c_int00"
    Finished building target: "Lab_1_UCD3138.out"
     
    Tektronix Extended format
    "C:/CCSv9_2_0/ccs/tools/compiler/ti-cgt-arm_5.2.5/bin/armhex.exe" -x "Lab_1_UCD3138.out" -o "Lab_1_UCD3138.x0" -memwidth 8
    Translating to Extended Tektronix format...
       "Lab_1_UCD3138.out" .vectors ==> .vectors
       "Lab_1_UCD3138.out" .text ==> .text
       "Lab_1_UCD3138.out" .const ==> .const
       "Lab_1_UCD3138.out" .cinit ==> .cinit
       "Lab_1_UCD3138.out" .zero_out_integrity_word ==> .zero_out_integrity_word
       "Lab_1_UCD3138.out" FixedDeviceID ==> FixedDeviceID
     
    
    **** Build Finished ****
    

    Looking at your screenshots, the build output shows a great deal of strange characters in between the gmake build steps. Unfortunately I can't make any sense of them but they should follow the convention below and report what is the exact error. An example is the portion highlighted in RED below. 

    console said:

    >> Compilation failure
    subdir_rules.mk:37: recipe for target 'standard_interrupt.obj' failed
    "../standard_interrupt.c", line 591 (col. 6): error #1559: Interrupt handlers must be compiled in ARM mode
    1 error detected in the compilation of "../standard_interrupt.c".
    gmake[1]: *** [standard_interrupt.obj] Error 1

    That leads me to believe there is something wrong with the command prompt settings of the faulty host, or perhaps it has utlities such as cygwin in the path (this is known to cause problems in CCS). Another possible problem is having special characters in the user home directory or temporary directory - these are all host-related issues that could differ from one machine to another. 

    To isolate the issue, open a command prompt and go to the directory UCD3138 of the Lab1 project. From that point, issue the command "gmake" (if it is in the path) and see if the project builds fine. If this does not build fine, there is something on this host that is preventing this build from happening (the cygwin on the path, a system setting). 

    Hope this helps,

    Rafael

     

  • Hello Sergey,

    If your issue is addressed, please set the status of this post to resolved.

    Regards,