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/LAUNCHXL-F280049C: F280049C

Part Number: LAUNCHXL-F280049C


Tool/software: Code Composer Studio

Hi all, 

I am trying to perform lab5 from the C2000 microcontroller workshop but I keep getting the following errors:

Description	Resource	Path	Location	Type
#10008-D cannot find file "driverlib.lib"	Lab5		 	C/C++ Problem
#10010 errors encountered during linking; "Lab5.out" not built	Lab5		 	C/C++ Problem
#10056 symbol "_main" redefined: first defined in "./Main_5.obj"; redefined in "./main.obj"	Lab5		 	C/C++ Problem
<a href="file:/C:/ti/ccs1000/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain	Lab5		 	C/C++ Problem
gmake: *** [all] Error 2	Lab5		 	C/C++ Problem
gmake[1]: *** [Lab5.out] Error 1	Lab5		 	C/C++ Problem
unresolved symbol _Flash_initModule, first referenced in ./device.obj	Lab5		 	C/C++ Problem
unresolved symbol _GPIO_setDirectionMode, first referenced in ./Gpio.obj	Lab5		 	C/C++ Problem
unresolved symbol _GPIO_setPadConfig, first referenced in ./Gpio.obj	Lab5		 	C/C++ Problem
unresolved symbol _GPIO_setPinConfig, first referenced in ./Gpio.obj	Lab5		 	C/C++ Problem
unresolved symbol _GPIO_setQualificationMode, first referenced in ./Gpio.obj	Lab5		 	C/C++ Problem
unresolved symbol _Interrupt_initModule, first referenced in ./Main_5.obj	Lab5		 	C/C++ Problem
unresolved symbol _Interrupt_initVectorTable, first referenced in ./Main_5.obj	Lab5		 	C/C++ Problem
unresolved symbol _SysCtl_setClock, first referenced in ./device.obj	Lab5		 	C/C++ Problem

Do you know where the driverlib.lib is situated?

Best Regards,

Stergios

  • Stergios,

    This error is generated by a incorrect build option path.  In the workshop manual see Lab 5 steps 3 - 5 on page 5-22 (page 98) and confirm that each step was 'exactly' completed as specified.

    Please let me know if this solves your problem. Also, please use the green "Verified Answer" button if your lab is now working.

    - Ken

  • Ken,

    Thank you very much for your quick reply.

    I changed the paths and now I get fewer mistakes but I do not how to configure the building options so it can locate the: inc/hw_memmap.h

    Description	Resource	Path	Location	Type
    #1965 cannot open source file "inc/hw_memmap.h"	.ccsproject	/Lab5	line 45, external location: C:\Users\...\TIF280049C\Labs\Lab_common\include\driverlib.h	C/C++ Problem
    gmake: *** [DefaultIsr_5.obj] Error 1	Lab5		 	C/C++ Problem
    gmake: *** [device.obj] Error 1	Lab5		 	C/C++ Problem
    gmake: *** [Gpio.obj] Error 1	Lab5		 	C/C++ Problem
    gmake: *** [Main_5.obj] Error 1	Lab5		 	C/C++ Problem
    gmake: *** [Watchdog_5.obj] Error 1	Lab5		 	C/C++ Problem
    gmake: Target 'all' not remade because of errors.	Lab5		 	C/C++ Problem
    

    Thank you!

  • Stergios,

    You are missing or have the following path incorrect:

    ${PROJECT_ROOT}/../../f28004x_driverlib/driverlib/inc

    See step 3.

    Please let me know if this solves your problem. Also, please use the green "Verified Answer" button if your lab is now working.

    - Ken

  • Hi Ken,

    If I just copy and paste it I get the following error:

    The Labs folder is different than the folder C:\ti that is created from the installation of CCS. Is that a problem?

    Bests,

    Stergios

  • Stergios,.

    The workshop installation is independent and self-contained with all needed resources.  Did you use the workshop installer?  Please double-check step 4.  Make sure you included both the library file and library search path.

    Please let me know if this solves your problem. Also, please use the green "Verified Answer" button if your lab is now working.

    - Ken

  • Hi Ken,

    I did exactly what step 4 indicates:

    I did not use the workshop installer I think. Should I uninstall CCS and install it again or how else is it possible to sole this?

    Thank you!

    Stergios

  • Stergios,

    The issue you are running into is there are two main() functions in your project.  When creating the project you should have selected "Empty Project", but instead you used the default "Empty Project (with main.c)".  Please review module 2 and lab 2 exercise.  Delete the 'main.c' file from your project and rebuild.  Also, it is highly recommended that you use the workshop installer.

    Please let me know if this solves your problem. Also, please use the green "Verified Answer" button if your lab is now working.

    - Ken

  • Thank you very much Ken :)