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.

Adding a library in gcc based RTSC project

Hi,

 I am working with CCSv6.1.2 and sdk 2.1.1.2. I am trying to build a RTSC project from the existing example. I have included the libraries which are included in the example, I am getting errors  "cannot find -llibraryname".

Is there a different way to add libraries in a RTSC projects.

Kindly guide me through it . Any help  will be greatly appreciated.

Regards

Jijo

 

  • jijo jacob said:
    I have included the libraries which are included in the example, I am getting errors  "cannot find -llibraryname".

    How did you add the libraries? Can you attach a screenshot of how/where they are added?

    Could you also copy and paste the full output of the CCS build console to a text file and attach it here?

  • Hi AartiG ,

    Thanks for your quick response . I read in one of the post and figured out that the reference project and the main project have to be in the same location , so after making the required changes I could build it successfully. But now while debugging I am getting the following error ,which I have included in the following attachment below.

    Also below I attach the console log of my project.

    Console.txt
    **** Build of configuration Debug for project RTOS ADC ****
    
    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all 
    'Building file: ../app.cfg'
    'Invoking: XDCtools'
    "C:/ti/xdctools_3_31_02_38_core/xs" --xdcpath="C:/ti/bios_6_45_00_19/packages;C:/ti/ccsv6/ccs_base;" xdc.tools.configuro -o configPkg -t gnu.targets.arm.A8F -p ti.platforms.evmAM3359 -r release -c "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3" "../app.cfg"
    making package.mak (because of package.bld) ...
    generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
    configuring app.xa8fg from package/cfg/app_pa8fg.cfg ...
    generating custom ti.sysbios library makefile ... 
    Starting build of library sources ...
    making C:/ti/SYSBIO~1.2/sdk/STARTE~1/examples/RTOSAD~1/src/sysbios/sysbios.aa8fg ...
    gmake[1]: Entering directory `C:/ti/SYSBIO~1.2/sdk/STARTE~1/examples/RTOSAD~1/src/sysbios'
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm_gnu.asm ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/TaskSupport_asm_gnu.asm ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/intcps/Hwi_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/exc/Exception_asm_gnu.asm ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/Cache_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/Mmu_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/TimestampProvider_asm_gnu.sv7A ...
    asma8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/timers/dmtimer/Timer_asm_gnu.sv7A ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/BIOS.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/IntrinsicsSupport.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/TaskSupport.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Clock.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Idle.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Intrinsics.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Queue.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Semaphore.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Swi.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Swi_andn.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/knl/Task.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/hal/Cache.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/hal/Core.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/hal/CoreNull.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/hal/Hwi.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/hal/Hwi_stack.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/hal/Hwi_startup.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/intcps/Hwi.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/exc/Exception.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/Cache.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/Mmu.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/TimestampProvider.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/rts/gnu/ReentSupport.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/gates/GateHwi.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/gates/GateMutex.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/heaps/HeapMem.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/timers/dmtimer/Timer.c ...
    cla8fg C:/ti/bios_6_45_00_19/packages/ti/sysbios/family/arm/a8/ti81xx/TimerSupport.c ...
    ara8fg arm_IntrinsicsSupport_asm_gnu.o arm_TaskSupport_asm_gnu.o intcps_Hwi_asm_gnu.o exc_Exception_asm_gnu.o a8_Cache_asm_gnu.o a8_Mmu_asm_gnu.o a8_TimestampProvider_asm_gnu.o dmtimer_Timer_asm_gnu.o _BIOS.o arm_IntrinsicsSupport.o arm_TaskSupport.o knl_Clock.o knl_Idle.o knl_Intrinsics.o knl_Queue.o knl_Semaphore.o knl_Swi.o knl_Swi_andn.o knl_Task.o hal_Cache.o hal_Core.o hal_CoreNull.o hal_Hwi.o hal_Hwi_stack.o hal_Hwi_startup.o intcps_Hwi.o exc_Exception.o a8_Cache.o a8_Mmu.o a8_TimestampProvider.o gnu_ReentSupport.o gates_GateHwi.o gates_GateMutex.o heaps_HeapMem.o dmtimer_Timer.o ti81xx_TimerSupport.o ...
    gmake[1]: Leaving directory `C:/ti/SYSBIO~1.2/sdk/STARTE~1/examples/RTOSAD~1/src/sysbios'
    Build of libraries done.
    cla8fg package/cfg/app_pa8fg.c ...
    'Finished building: ../app.cfg'
    ' '
            1 file(s) copied.
    making ../src/sysbios/sysbios.aa8fg ...
    gmake[1]: Entering directory `C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/RTOS ADC/src/sysbios'
    gmake[1]: Nothing to be done for `all'.
    gmake[1]: Leaving directory `C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/RTOS ADC/src/sysbios'
    'Building file: ../adc_app.c'
    'Invoking: GNU Compiler'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/adc" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/adc/volt_measure/ccs" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/adc/volt_measure/ccs" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include/utils" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include/hw" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include/am335x" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/example_utils" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"adc_app.d" -MT"adc_app.d" -o"adc_app.o" @"configPkg/compiler.opt" "../adc_app.c"
    'Finished building: ../adc_app.c'
    ' '
    'Building file: ../main.c'
    'Invoking: GNU Compiler'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc.exe" -c -mcpu=cortex-a8 -mtune=cortex-a8 -march=armv7-a -marm -mfloat-abi=hard -Dam3359 -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/adc" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/adc/volt_measure/ccs" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/adc/volt_measure/ccs" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include/utils" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include/hw" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/include/am335x" -I"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/examples/example_utils" -g -gdwarf-3 -gstrict-dwarf -Wall -MMD -MP -MF"main.d" -MT"main.d" -o"main.o" @"configPkg/compiler.opt" "../main.c"
    ../main.c: In function 'taskFxn':
    ../main.c:167:6: warning: 'return' with a value, in function returning void [enabled by default]
          return (S_PASS);
          ^
    'Finished building: ../main.c'
    ' '
    'Building target: RTOS ADC.out'
    'Invoking: GNU Linker'
    "C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/bin/arm-none-eabi-gcc.exe" -mfloat-abi=hard -Dam3359 -g -gdwarf-3 -gstrict-dwarf -Wall -Wl,-Map,"RTOS ADC.map" -nostartfiles -static -Wl,--gc-sections -L"C:/ti/bios_6_45_00_19/packages/gnu/targets/arm/libs/install-native/arm-none-eabi/lib/fpu" -L"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/binary/board/lib/am335x-evm/a8/ccs/am335x_debug" -L"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/binary/dal/lib/am335x-evm/a8/ccs/am335x_debug" -L"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/binary/device/lib/am335x-evm/a8/ccs/am335x_debug" -L"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/binary/examples/example_utils/lib/am335x-evm/a8/ccs/am335x_debug" -L"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/binary/soc/lib/am335x-evm/a8/ccs/am335x_debug" -L"C:/ti/sysbios_ind_sdk_2.1.1.2/sdk/starterware/binary/utils/lib/am335x-evm/a8/ccs/am335x_debug" -Wl,--defsym,STACKSIZE=0x1C000 -Wl,--defsym,HEAPSIZE=0x400 -o"RTOS ADC.out" "./adc_app.o" "./main.o" -Wl,-T"configPkg/linker.cmd" -Wl,--start-group -l"gcc" -l"board" -l"dal" -l"device" -l"example_utils" -l"soc" -l"utils" -l"m" -l"nosys" -l"c" -Wl,--end-group 
    'Finished building target: RTOS ADC.out'
    ' '
    
    **** Build Finished ****
    

  • Jijo,

    This last question might be best answered in the TI-RTOS forums. Please start a new post there and be sure to mention which target device you are working with.