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.

TMS570LC4357: TMS570LC43x Hercules Development Kit (HDK) routine

Part Number: TMS570LC4357
Other Parts Discussed in Thread: HALCOGEN

Hi team,

Here's an issue from the customer may need your help:

Purchased the development board, downloaded HERCULES_SAFETY_MCU_DEMOS, imported the project in CCS. The engineering attributes is as follows:

Compiling failed: Nothing to build for project TMS570LC43x_demo_software

Then made the following changes:

But still report the same error. The compiler version is 20.2.5.LTS. And the demo is downloaded from here.

Could you help check this case? Thanks.

Best Regards,

Cherry

  • HI Cherry,

    The resource locations for HALCoGEN and Demo_App are not correct. Please correct them in project property:

  • After renew the locations for HALCoGen and Demo_APP, the project can be compiled without any problem:

  • Hi Wang,

    Thanks for your help.

    Compile after modifying engineering properties, now has the following problem:

    These undefined symbols are functions and are declared in sl_api.h, but they are not defined throughout the project.

    Thanks and regards,

    Cherry

  • Hi,

    May I know is there any update?

    Thanks and regards,

    Cherry

  • These undefined symbols are functions and are declared in sl_api.h, but they are not defined throughout the project.

    I was able to build the TMS570LC43_demo_software using CCS 11.1 and TI ARM 20.2.5.LTS compiler after correcting the resource locations as mentioned by QJ Wang.

    The SL_* functions are in the TMS570LC43x_target_sources/demo-app/libs/SafeTILib_TMS570LC43_BE.lib library.

    Are you able to show the complete build output from the failure case?

    The following is the build output which was successful (I haven't yet tried to run the demo):

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    **** Build of configuration Debug for project TMS570LC43x_demo_software ****
    "C:\\ti\\ccs1110\\ccs\\utils\\bin\\gmake" -k all
    Building file: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_adc.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/safety_library/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/hal/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/include" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=_TMS570LC43x_ -g --diag_warning=225 --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="HALCoGen/source/HL_adc.d_raw" --obj_directory="HALCoGen/source" "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_adc.c"
    Finished building: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_adc.c"
    Building file: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_can.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/safety_library/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/hal/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/include" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=_TMS570LC43x_ -g --diag_warning=225 --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="HALCoGen/source/HL_can.d_raw" --obj_directory="HALCoGen/source" "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_can.c"
    Finished building: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_can.c"
    Building file: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_epc.c"
    Invoking: Arm Compiler
    "C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/bin/armcl" -mv7R4 --code_state=32 --float_support=VFPv3D16 --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/safety_library/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/hal/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/demo-app/include" --include_path="C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/include" --include_path="C:/ti/ccs1110/ccs/tools/compiler/ti-cgt-arm_20.2.5.LTS/include" --define=_TMS570LC43x_ -g --diag_warning=225 --enum_type=packed --abi=eabi --preproc_with_compile --preproc_dependency="HALCoGen/source/HL_epc.d_raw" --obj_directory="HALCoGen/source" "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_epc.c"
    Finished building: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_epc.c"
    Building file: "C:/Users/mr_halfword/workspace_v11/TMS570LC43x_target_sources/HALCoGen/source/HL_esm.c"
    Invoking: Arm Compiler
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    Thanks for your help. And they've re-load the HERCULES_SAFETY_MCU_DEMOS and modify the resource location. While compiling, it comes a new problem in HL_sys_core.asm:

    ...

    Engineering attributes-general:

    Should Linker command file select TMS570LC43xxFlashLnk.cmd? (The project just imported is empty here)

    Should Runtime support library select a specific library? The following is the full building output: Error is 18 in HL_sys_core.asm:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    **** Build of configuration Debug for project TMS570LC43x_demo_software ****
    "C:\\CCS11.1.0\\ccs\\utils\\bin\\gmake" -k all
    Building file: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_adc.c"
    Invoking: Arm Compiler
    "C:/CCS11.1.0/ccs/tools/compiler/arm_5.1.5/bin/armcl" -mv7R4 --code_state=16 --abi=eabi --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/safety_library/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/hal/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/include" --include_path="C:/CCS11.1.0/ccs/tools/compiler/arm_5.1.5/include" -g --define=_TMS570LC43x_ --diag_warning=225 --gen_func_subsections=on --preproc_with_compile --preproc_dependency="HALCoGen/source/Hercules Safety MCU HL_adc.d_raw" --obj_directory="HALCoGen/source" "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_adc.c"
    Finished building: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_adc.c"
    Building file: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_can.c"
    Invoking: Arm Compiler
    "C:/CCS11.1.0/ccs/tools/compiler/arm_5.1.5/bin/armcl" -mv7R4 --code_state=16 --abi=eabi --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/safety_library/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/hal/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/include" --include_path="C:/CCS11.1.0/ccs/tools/compiler/arm_5.1.5/include" -g --define=_TMS570LC43x_ --diag_warning=225 --gen_func_subsections=on --preproc_with_compile --preproc_dependency="HALCoGen/source/Hercules Safety MCU HL_can.d_raw" --obj_directory="HALCoGen/source" "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_can.c"
    Finished building: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_can.c"
    Building file: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_epc.c"
    Invoking: Arm Compiler
    "C:/CCS11.1.0/ccs/tools/compiler/arm_5.1.5/bin/armcl" -mv7R4 --code_state=16 --abi=eabi --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/safety_library/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/hal/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/demo-app/include" --include_path="C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/include" --include_path="C:/CCS11.1.0/ccs/tools/compiler/arm_5.1.5/include" -g --define=_TMS570LC43x_ --diag_warning=225 --gen_func_subsections=on --preproc_with_compile --preproc_dependency="HALCoGen/source/Hercules Safety MCU HL_epc.d_raw" --obj_directory="HALCoGen/source" "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_epc.c"
    Finished building: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_epc.c"
    Building file: "C:/ti/Hercules/Hercules Safety MCU Demos/4.0.0/TMS570LC43x_target_sources/HALCoGen/source/HL_esm.c"
    Invoking: Arm Compiler
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Thanks and regards,

    Cherry

  • Should Runtime support library select a specific library? The following is the full building output: Error is 18 in HL_sys_core.asm:

    The errors from the failing build are due to --float_support=VFPv3D16 missing from the compiler command line.

    In the example project which I built successfully the --float_support option was specified in the CCS project properties under Build -> Arm Compiler -> Processor Options:

    Also, in the working build the code state option was --code_state=32, whereas in the failing build is --code_state=16.

    And they've re-load the HERCULES_SAFETY_MCU_DEMOS and modify the resource location.

    I'm not sure why their re-loading of the HERCULES_SAFETY_MCU_DEMOS changed the Processor Options used for the project.

  • Hi,

    Thanks for your help again. This issue is due to the wrong version of compiler and it works properly after using 20.2.5.LTS.

    And the customer have previously developed with TI's DSPs and each project has a cmd file that describes where the program and data are stored in memory. Why is the cmd file not used by default for the 570arm for engineering properties? (there is a TMS570LC43xxFlashLnk.cmd in drop-down menu, is this one right?)

    Thanks and regards,

    Cherry

  • Hi Cherry,

    Please use HL_sys_link.cmd (generated by HAL) in .\Hercules Safety MCU Demos\4.0.0\TMS570LC43x_target_sources\HALCoGen\source folder. The HL_sys_link.cmd includes the memory allocation of section LOG_DATA.