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.

Failed compiling GPIO-example of Starterware[BBB]

Hi,

I'm new to using TI starterware. Trying to build starterware BBB examples using CCS6. I imported the GPIO LED project, but on building the project, it gave me error that it is not able to find platform.lib, util.lib.

I'm not able to find out ways of linking these libs to my current project. I can find these libs in the binary folder but how do I link them with my current project.

Thanks

Aman

  • Hello Aman,

    These libraries are not found because of the Debug configuration mode.
    You can change it to Release mode by right clicking on your project > Properties > General > Manage Configurations click on Release and set it Active.

    Best regards,
    Kemal
  • Hi Kemal,

    Thanks for your reply.

    I was able to add the required libs to the project base and was able to build these libs (These are shown as Debug-Active). Now after building the GPIOLEDBlink project, I'm getting following error:

    "C:\\ti\\ccsv6\\utils\\bin\\gmake" -k -j 8 -s all
    'Building file: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
    'Invoking: ARM Compiler'
    'Finished building: C:/ti/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
    ' '
    'Building target: ../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out'
    'Invoking: ARM Linker'
    <Linking>
    warning #10366-D: automatic library build: using library
    "C:\ti\ccsv6\tools\compiler\ti-cgt-arm_5.2.3\lib\rtsv7A8_A_le_eabi.lib" for
    the first time, so it must be built. This may take a few minutes.
    --> error: '*.obj
    ' not found
    gmake.exe[1]: *** [library] Error 1
    >> ERROR: mklib: gmake error during rtsv7A8_A_le_eabi.lib build
    warning #10207-D: automatic RTS selection: resolving index library "libc.a" to
    "rtsv7A8_A_le_eabi.lib", but "rtsv7A8_A_le_eabi.lib" was not found

    undefined first referenced
    symbol in file
    --------- ----------------

    >> Compilation failure
    __STACK_END C:/ti/AM335X_StarterWare_02_00_01_01/binary/armv7a/cgt_ccs/am335x/beaglebone/platform/Debug/../../../../../../../binary/armv7a/cgt_ccs/am335x/system_config/Debug/system.lib<init.obj>
    __TI_auto_init C:/ti/AM335X_StarterWare_02_00_01_01/binary/armv7a/cgt_ccs/am335x/beaglebone/platform/Debug/../../../../../../../binary/armv7a/cgt_ccs/am335x/system_config/Debug/system.lib<init.obj>

    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking;
    "../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpi
    oLEDBlink.out" not built
    gmake: *** [../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****

    I'm not able to resolve the rtsv7A8_A_le_eabi.lib issue.

    Can you please help me on this.


    Thanks!!
    Aman
  • This library should be built automatically as soon as the linker tries to use it first. Unfortunately the Linux-installer of CCS is a bit buggy, it sets the wrong permissions so that the library can't be written. May be that's also the case for the Windows installation?

  • Hi,

    Thanks for your reply. I'm using windows based CCS6 but I cant see any permission error. Infact I gave the entire compiler folder full rights,but it also didnt helped.

    My CCS is also updated.

    What elae should I look into to resolve this issue?

    Thanks!!
    Aman
  • Since I do not remember such an option in CCS project settings (but it worth a quick check) I afraid you have to dig through the Makefiles to find out why it does not auto-generate the library...
  • Hi,

    Isn't there any document which I can refer to so as to fix this issue? No support from TI regarding this?

    Thanks!!
    Aman
  • Hello Aman,

    Have you tried to build it with ti-cgt-arm_5.2.2.
    It seems your current 5.2.3 version is unable to find some definitions for symbols. Reinstallation should fix it.

    You can refer to this wiki for troubleshooting information.
    processors.wiki.ti.com/.../Mklib

    Best regards,
    Kemal

  • Hi Kemal,

    I tried to use compiler version 5.2.2 but again same error came. Infact new compiler 5.2.4 got installed on my CCS6 but still getting the same error.

    Any sort of help would be greatly appreciated!!!

    Regards,
    Aman
  • Hello Aman,

    Could you post the errors of the following scenario.

    1. Clean the project.
    2. Set the compiler version to 5.2.4
    Right click on your project > Properties > General > Compiler version: TI v5.2.4
    3. Then temporarily build with one job to get the errors in correct order.
    Change the Build command: on Build > Builder
    from
    ${CCS_UTILS_DIR}/bin/gmake -k -j ${NUMBER_OF_PROCESSORS} -s
    to
    ${CCS_UTILS_DIR}/bin/gmake -k -j 1 -s

    Best regards,
    Kemal
  • Hi Kemal,

    I tried manually building the lib using the mklib and it was build successfully. Don't know why it was not build using CCS build project.

    Thanks for your support!!!

    Regards,
    Aman