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 Example code??

Other Parts Discussed in Thread: TMS570LC4357, CONTROLSUITE, HALCOGEN

Hello,

I hope someone can help me.

I am looking for exaple code for the TMS570LC4357. Are there any example projects like blinky or something?

Does a kind of controlSUITE for the TMS570LC4357 exist? Because I do not have a Development board, the

Hercules Safety MCU Demos do not work in my case.

Greets,

Werner

  • Werner,
    Do you have HALCoGen installed? There are example projects in the HALCoGen distribution.
  • Hello Anthony,

    Thank you for your answer. I have just downloaded the HACOGen distribution pack.

    In Code Composer 6.1 I try to build a rtiblinky project. Although I have included all resources,

    I still get errors I cannot explain.

    **** Build of configuration Debug for project LC4 ****

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
    'Building file: ../main.c'
    'Invoking: ARM Compiler'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armcl" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/include" --include_path="C:/Users/motz.werner/workspace/LC4/TMS570LC4357ZWT/RTI570v000" --include_path="C:/Users/motz.werner/workspace/LC4/TMS570LC4357ZWT/GIO570v000" --include_path="C:/Users/motz.werner/workspace/LC4/include" --include_path="C:/Users/motz.werner/workspace/LC4/source" -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed --preproc_with_compile --preproc_dependency="main.pp"  "../main.c"
    'Finished building: ../main.c'
    ' '
    'Building target: LC4.out'
    'Invoking: ARM Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/bin/armcl" -mv7R5 --code_state=32 --float_support=VFPv3D16 --abi=eabi -g --display_error_number --diag_warning=225 --diag_wrap=off --enum_type=packed -z -m"LC4.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.2/include" -i"C:/Users/motz.werner/workspace/LC4/include" -i"C:/Users/motz.werner/workspace/LC4/source" -i"C:/Users/motz.werner/workspace/LC4/TMS570LC4357ZWT/GIO570v000" -i"C:/Users/motz.werner/workspace/LC4/TMS570LC4357ZWT/RTI570v000" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="LC4_linkInfo.xml" --rom_model --be32 -o "LC4.out" "./main.obj" "../TMS570LC43xxFlashLnk.cmd"  -l"rtsv7R4_T_be_v3D16_eabi.lib"
    <Linking>

     undefined              first referenced
      symbol                    in file     
     ---------              ----------------
     _enable_IRQ_interrupt_ ./main.obj      
     gioGetPort             ./main.obj      
     gioSetDirection        ./main.obj      
     gioSetPort             ./main.obj      
     rtiEnableNotification  ./main.obj      
     rtiInit                ./main.obj      
     rtiStartCounter        ./main.obj      

    error #10234-D: unresolved symbols remain

    error #10010: errors encountered during linking; "LC4.out" not built
    >> Compilation failure
    gmake: *** [LC4.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    I have the following project settings:

    All neccessary sources for the functions are included. I do not understand, why I still have undefined symols.

  • Werner,It looks like your project isn't setup correctly for HalCoGen.
    There is an appnote - a bit dated but still will give you the big picture - here www.ti.com/.../spna121a.pdf.
    Basically in HALCoGen you generate code and it's output to the 'include' and 'source' folders that you then need to include in your build.
    It looks like your project has explictly excluded these folders and instead you are copying in the template folders from under the HalCoGen's install (GIO570v000 and RTI570v000 are templates). The templates are the pre-generation files - they are populated based on your configuration input in the GUI - and the result is output to the source and incldue folders.
    Make sure you look at the HALCoGen HELP menu - under examples. The examples are documented, and in addition to the source file for the main function - in the documentation you get instructions on what options / steps need to be taken in the GUI before generation.
    If you follow these steps then the missing functions should be generated and put into the source folder. If you then have the source folder sources included in the build (rather than excluded) the build should complete.