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/TMS320F28379D: Unresolved symbols remain: code_start

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi all,

This is my first day working with a TI C2000 MCU and I have a question regarding building the project and the errors.

I have followed the step by step instruction guide: F2837xD Firmware Development Package to get stated with a fresh new blinky project. I followed each step and did everything properly (I guess). And then when I build it, it shows the following error. 

Building target: "PWM_Test.out"
Invoking: C2000 Linker
"/home/pc/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --advice:performance=all --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"PWM_Test.map" --warn_sections -i"/home/kartikeya/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.1.LTS/lib" -i"/home/kartikeya/ti/C2000Ware_3_02_00_00_Software/device_support/f2837xd/common/cmd" -i"/home/kartikeya/ti/C2000Ware_3_02_00_00_Software/device_support/f2837xd/headers/cmd" -i"/home/kartikeya/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="PWM_Test_linkInfo.xml" --entry_point=code_start --rom_model -o "PWM_Test.out" "./F2837xD_GlobalVariableDefs.obj" "./F2837xD_Gpio.obj" "./F2837xD_Ipc.obj" "./F2837xD_SysCtrl.obj" "./F2837xD_usDelay.obj" "./main.obj"  -l"/home/kartikeya/ti/C2000Ware_3_02_00_00_Software/device_support/f2837xd/common/cmd/2837xD_RAM_lnk_cpu1.cmd" -l"/home/kartikeya/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.12.1.LTS/lib/rts2800_fpu32.lib" -l"/home/kartikeya/ti/C2000Ware_3_02_00_00_Software/device_support/f2837xd/headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd"
<Linking>
 
 undefined  first referenced
  symbol        in file     
 ---------  ----------------
 code_start                 
 
error #10234-D: unresolved symbols remain
warning #10062-D: entry-point symbol "code_start" undefined
error #10010: errors encountered during linking; "PWM_Test.out" not built
 
>> Compilation failure
makefile:145: recipe for target 'PWM_Test.out' failed
makefile:141: recipe for target 'all' failed
gmake[1]: *** [PWM_Test.out] Error 1
gmake: *** [all] Error 2

**** Build Finished ****

I have attached various configurations on various windows (especially of the linker) and I am unable to decipher what it says and am unsure on how to proceed. Any help would be greatly appreciated!

Processor Options Pane:

 

Linker File Paths:

Main Project Window:

 

Symbol Management Pane:


  • Kartikeya,

    It looks like you forgot "F2837xD_CodeStartBranch.asm".  See step 8 on page 28.  Also, to learn about the F28379D please see the following workshop:

    https://training.ti.com/c2000-f2837xd-microcontroller-workshop?context=1137791-1137781

    I think you will find the above workshop very helpful.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken

  • Ken,

    Thank you very much for pointing out the mistake. I went ahead and added that file onto the project folder. Now, a new error comes up whenevr I try building it. It is as follows:

    line 66: error #10099-D: program will not fit into available memory.  run placement with alignment/blocking fails for section ".stack" size 0x400 page 1.  Available memory ranges:
       RAMM1        size: 0x3f8        unused: 0x3f8        max hole: 0x3f8     
    warning #10063-D: entry-point symbol other than "_c_int00" specified:  "code_start"
    error #10010: errors encountered during linking; "PWM_Test.out" not built
     
    >> Compilation failure
    makefile:146: recipe for target 'PWM_Test.out' failed
    gmake[1]: *** [PWM_Test.out] Error 1
    gmake: *** [all] Error 2
    makefile:142: recipe for target 'all' failed

    **** Build Finished ****

    Not sure what I am doing wrong.

  • Kartikeya,

    You are receiving linking errors.  Please try importing and running the following example:

    C:\ti\c2000\C2000Ware_3_02_00_00\device_support\f2837xd\examples\cpu1\blinky\cpu01\ccs

    This should be very similar to the getting started example in the F2837xD Firmware Development Package user's guide.  Let me know if this works.  If so, then you can compare the build settings.  I noticed that the getting started example tells you to use 'Generic' for the device rather than specifying a device variant type.  This means you need to configure all of the build options instead of them being prepopulated, which can lead to errors.  So double check your steps.  Also, could you please let me know if you are using a LaunchPad or Experiment Kit?

    Again, I strongly suggest using the workshop materials and lab exercises for learning how to use the device.  Lab 2 covers the very basics the linker command file, building a project, target configuration, and using CCS.  Then starting with Lab 5 you will learn about configuring CCS build options and using the bit-field header files.  Please try the workshop lab exercises and I am sure it will be a better learning experience.

    I hope this helps. If this answers your question, please click the green "Verified Answer" button. Thanks.

    - Ken

  • Ken,

    Thank you very much for pointing out the issues in my settings and more thanks, for pointing out the workshop series. It has been immensely useful!