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.

LAUNCHXL-F28069M: Error encountered

Genius 9880 points
Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

Hi Team,

Customer encountering an error using our LAUNCHXL-F28069M, below is the inquiry.

"

Im getting the following error when building my program. 

I have included all of the source and header files but i dont know what im missing.

Project file: Testbench.zip

"

Thank you and looking forward for your kind response.

Regards,

Maynard

  • Hello Maynard,

    You are getting a common linker error. See the below link for more details on the error:

    https://software-dl.ti.com/ccs/esd/documents/sdto_ccs_build-errors.html#linker-diagnostics

    In your case, the missing symbols looks related to C2000Ware. You are likely missing some source or libraries from C2000Ware. I will bring this thread to the attention of the C2000 experts. They can assist further.

    Thanks

    ki 

  • HI Ki,

    Thank you for your kind response.

    I just received a response from customer that they have tried the link you have provided but still they encountering the same issue.

    Regards,

    Maynard

  • Hi Maynard, 

    Can you check if all the include header file path are available on the customer's pc. Looks like either the header files are missing or the path specified in the projects are incorrect which is causing this compilation error.

    Best Regards

    Siddharth

  • HI Siddharth,

    Below is the customer response.

    I am now able to type in the reply box but it wouldnt let me respond due to an error message I get asking to contact admin. However, can you respond to Siddharth and ask him to open the Testbench.zip file of my project that you posted for me. I tried including all of the headers and sources I was aware of.

    Regards,

    Maynard

  • Hi Maynard,

    Can you request the customer to add the C files located in C:\ti\controlSUITE\device_support\f2806x\v151\F2806x_common\source to the project and try to compile?

    The missing functions are available in the C files located in this directory.

    Best Regards

    Siddharth

  • Hi Siddharth,

    Below is the customer response.

    I had already had that library added to my project but may I have it in the wrong location. I attached that exact folder to the "Build->XDCtools->Basic Options" and in the "C2000 Linker->File Search Path" locations.

    Regards,

    Maynard

  • I had already had that library added to my project but may I have it in the wrong location. I attached that exact folder to the "Build->XDCtools->Basic Options" and in the "C2000 Linker->File Search Path" locations.

  • Hi Andrew,

     Were you able to resolve the issue after correcting the path? It's not clear from your response if it's resolved or not.

    Best Regards

    Siddharth

  • No, the issue is not resolved. I was only saying that I attached that exact folder location to the "Build->XDCtools->Basic Options" and in the "C2000 Linker->File Search Path" locations and I'm getting the same errors. Can you tell me where I need to add that folder location? Can you open my project and see what is missing? You will have to uncomment what is in the main task so that the files appear. I commented them out so I could work on other parts the code.

  • Hi Andrew,

    You will have to add the C files to your CCS project. You can right click on the CCS project and select "Add Files" , then browse to the folder and select the C files to be added.

    Best Regards

    Siddharth

  • Siddharth,

    Do you know why I getting these errors for functions I didnt create? I used these functions on  previous version of CCS so I don't understand why it is complaining about the input to these function now.

    Description Resource Path Location Type
    #137 struct "DEVICECNF_BITS" has no field "SYSCLK2DIV2DIS" F2806x_SysCtrl.c /Testbench line 250 C/C++ Problem
    #137 struct "DEVICECNF_BITS" has no field "SYSCLK2DIV2DIS" F2806x_SysCtrl.c /Testbench line 252 C/C++ Problem
    #137 struct "DEVICECNF_BITS" has no field "SYSCLK2DIV2DIS" F2806x_SysCtrl.c /Testbench line 272 C/C++ Problem
    #137 struct "PCLKCR3_BITS" has no field "USB0ENCLK" F2806x_SysCtrl.c /Testbench line 345 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PCLKCR2" F2806x_SysCtrl.c /Testbench line 327 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PCLKCR2" F2806x_SysCtrl.c /Testbench line 328 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PCLKCR2" F2806x_SysCtrl.c /Testbench line 329 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PCLKCR2" F2806x_SysCtrl.c /Testbench line 330 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PLL2CTL" F2806x_SysCtrl.c /Testbench line 256 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PLL2CTL" F2806x_SysCtrl.c /Testbench line 258 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PLL2MULT" F2806x_SysCtrl.c /Testbench line 260 C/C++ Problem
    #137 struct "SYS_CTRL_REGS" has no field "PLL2STS" F2806x_SysCtrl.c /Testbench line 265 C/C++ Problem
    #148 declaration is incompatible with "struct PIE_VECT_TABLE PieVectTable" (declared at line 194 of "C:\ti\controlSUITE\libs\utilities\boot_rom\2806x\2806x_boot_rom_v1_1\F2806x_headers\include\F2806x_PieVect.h") F2806x_GlobalVariableDefs.c /Testbench line 376 C/C++ Problem
    #237 variable "HRCap1Regs" was declared with a never-completed type F2806x_GlobalVariableDefs.c /Testbench line 304 C/C++ Problem
    #237 variable "HRCap2Regs" was declared with a never-completed type F2806x_GlobalVariableDefs.c /Testbench line 312 C/C++ Problem
    #237 variable "HRCap3Regs" was declared with a never-completed type F2806x_GlobalVariableDefs.c /Testbench line 320 C/C++ Problem
    #237 variable "HRCap4Regs" was declared with a never-completed type F2806x_GlobalVariableDefs.c /Testbench line 328 C/C++ Problem
    #237 variable "Usb0Regs" was declared with a never-completed type F2806x_GlobalVariableDefs.c /Testbench line 432 C/C++ Problem
    #258 invalid redeclaration of type name "int16" (declared at line 104 of "C:/ti/controlSUITE/libs/utilities/boot_rom/2806x/2806x_boot_rom_v1_1/F2806x_headers/include/F2806x_Device.h") .ccsproject /Testbench line 19, external location: C:\ti\controlSUITE\libs\utilities\boot_rom\2806x\2806x_boot_rom_v1_1\F2806x_headers\include\F2806x_Dma.h C/C++ Problem
    gmake: *** [F2806x_Adc.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_Comp.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_CpuTimers.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_DefaultIsr.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_Dma.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_ECan.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_ECap.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_EPwm.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_EQep.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_GlobalVariableDefs.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_Gpio.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_HRCap.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_I2C.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_Mcbsp.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_OscComp.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_PieCtrl.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_PieVect.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_Sci.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_Spi.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_SWPrioritizedDefaultIsr.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_SWPrioritizedPieVect.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_SysCtrl.obj] Error 1 Testbench C/C++ Problem
    gmake: *** [F2806x_TempSensorConv.obj] Error 1 Testbench C/C++ Problem
    gmake: Target 'all' not remade because of errors. Testbench C/C++ Problem

  • Hi Andrew,

    When you mean previous version of CCS, which version you are referring to? Also, when did you get starting these errros? After adding the C files to the project.

    Best Regards

    Siddharth

  • I have the latest version of CCS now but I had a version of CCS in 2015 when those function calls worked.

    Yes, I got these new errors after adding the C files.

  • What feedback do you have? What do you see when you open up my project and run the code?

  • What feedback do you have? What do you see when you open up my project and run the code?

  • Hi Andrew, 

    I am able to compile your project after doing the following changes:

    1. Add files to the project - F2806x_CpuTimers.c, F2806x_ECan.c, F2806x_GlobalVaraibleDefs.c , F2806x_SysCtrl.c and F2806x_usDelay.asm.

    2. Main file is updated to include "F2806x_Device.h"

    Let me know if you are able to resolve the compilation issue after doing these changes.

    Best Regards

    Siddharth

  • You didn't uncomment to lines that read hardware_init() and DELAY_US(5000000L). I forgot to uncheck those before sending you my project so the file will compile if these lines are commented out in main. Please uncomment these 2 lines of code in main so you can see what I see.

    //-----------------------------------------
    //  ======== main.c ========
    //-----------------------------------------
    Int main()
    { 
        hardware_init();                    // Intialize hardware via Xware
    
        System_printf("enter main()\n");
    
        DELAY_US(5000000L);                 // Delay for 5sec before entering the BIOS in order allow time to enumerate the USB
    
        BIOS_start();    /* does not return */
    
        return(0);
    }
    

  • Hi Andrew, 

    These lines are uncommented and the project compiles fine. See attached snapshot

    As mentioned earlier, I had to add the following files to the project to get it to compile

    Best Regards

    Siddharth

  • Siddharth,

    I must be missing something. Can you send me this project that you updated?

  • Andrew, 

    Have attached the project. 

    Let me know if you are able to compile it.

    Best Regards

    Siddharth

    /cfs-file/__key/communityserver-discussions-components-files/171/1205.Testbench.zip

  • The project wont pull up in my version of CCS. I am using Code Composer Studio 10.1.1. What version are you using?

  • Andrew,

    I am using CCS 10.0. What is the error you are getting?

    I have reattached the project.

    Best Regards

    Siddharth

    /cfs-file/__key/communityserver-discussions-components-files/171/3566.Testbench.zip

  • I fixed the errors that I could but I am now getting the following errors. Do you know what could be causing these?

    Description Resource Path Location Type
    gmake: *** No rule to make target 'C:/Users/butlea4/OneDrive - Caterpillar/Projects/SSL/ti/controlSUITE/device_support/f2806x/v151/F2806x_common/source/F2806x_CpuTimers.c', needed by 'F2806x_CpuTimers.obj'. Testbench    C/C++ Problem
    gmake: *** No rule to make target 'C:/Users/butlea4/OneDrive - Caterpillar/Projects/SSL/ti/controlSUITE/device_support/f2806x/v151/F2806x_common/source/F2806x_ECan.c', needed by 'F2806x_ECan.obj'. Testbench    C/C++ Problem
    gmake: *** No rule to make target 'C:/Users/butlea4/OneDrive - Caterpillar/Projects/SSL/ti/controlSUITE/device_support/f2806x/v151/F2806x_common/source/F2806x_SysCtrl.c', needed by 'F2806x_SysCtrl.obj'. Testbench    C/C++ Problem
    gmake: *** No rule to make target 'C:/Users/butlea4/OneDrive - Caterpillar/Projects/SSL/ti/controlSUITE/device_support/f2806x/v151/F2806x_common/source/F2806x_usDelay.asm', needed by 'F2806x_usDelay.obj'. Testbench    C/C++ Problem
    gmake: *** No rule to make target 'C:/Users/butlea4/OneDrive - Caterpillar/Projects/SSL/ti/controlSUITE/device_support/f2806x/v151/F2806x_headers/cmd/F2806x_Headers_BIOS.cmd', needed by 'all'. Testbench    C/C++ Problem
    gmake: *** No rule to make target 'C:/Users/butlea4/OneDrive - Caterpillar/Projects/SSL/ti/controlSUITE/device_support/f2806x/v151/F2806x_headers/source/F2806x_GlobalVariableDefs.c', needed by 'F2806x_GlobalVariableDefs.obj'. Testbench    C/C++ Problem

  • Hi Andrew ,

    Did you add the following files to the project?  F2806x_CpuTimers.c, F2806x_ECan.c, F2806x_SysCtrl.c, F2806x_usDelay.asm , F2806x_Headers_BIOS.cmd and F2806x_GlobalVariableDefs.c.

    Can you try cleaning and building the project?

    Best Regards

    Siddharth

  • I did a clean build and I found out that I need to install com.ti.rtsc.TIRTOSc2000 v2.10.1.38. Where can I find this?

  • Siddharth,

    Once I install it, how do I link this download to CCS properly?

  • Andrew,

    You can right click on the CCS Project , select Properties and then select General.

    You will see a tab named as Products on the right pane. You can add the product here .

    If it is installed in the C:\ti directory, I think CCS will auto detect it .

    Best Regards

    Siddharth

  • It is compiling and running now. Thanks!

  • Andrew,

    Thanks . I will mark this thread as resolved and close it.

    Best Regards

    Siddharth