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.

how to include pdk library in a project?

Hello,

I installed CCS 5.3 and pdk_C6678_1_1_2_6. 

I imported the following project, and build process was successful.

C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib

There is an API in this project, which is evmc66x_uart.c. I want to use this for UART communication. But it has one header file platform_internal.h. In this header file there are many header files. How can i include this library in my project? please help me. thanks a lot

  • I attached the file 'evmc66x_uart.c'. 

    Path of CCS is as follows:

    C:\ti\ccsv5

    and pdk library is as follows:

    C:\ti\pdk_C6678_1_1_2_6

  • Hi Irfan,

    please see the reply to your other post.

    Best Regards,

    Lisa

  • Dear Lisa,

    Please guide me right. 

    I want to use pdk library for c6678, because i need to connect my device with UART. i found source code of this:

    C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\src\evmc66x_uart.c 

    the complete platform library is installed at:

    C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib

    In the evmc66x_uart.c  file there is one header file platform_internal.h, which include other header files from CSL:

    C:\ti\pdk_C6678_1_1_2_6\packages\ti\csl

    Please help me how can i use UART API?

  • I found one way to include this library. I added the library link in Linker>file search path.

    "C:\ti\pdk_C6678_1_1_2_6\packages\ti\platform\evmc6678l\platform_lib\lib\debug\ti.platform.evm6678l.ae66"

    Now when i call functions, i get now error.

    void UartInit(void);
    void UartSetBaudRate(uint16_t uiBaudRate);
    uint16_t UartReadBaudRate(void);
    uint8_t UartReadData(void);
    void UartWriteData(uint8_t uchByte);
    Bool UartIsDataReady(void);

    Is it right? and how can i understand dissemble? please guide me about this too. Thanks

  • Hi Irfan,

    your questions are quite specific to the pdk.  This does not come from us unfortunately.  I am going to move this to the C66x forum for you.

    Best Regards,

    Lisa

  • Hi Irfan,

    Please build and execute the test project available in the PDK installation directory. It shall be found in the below path.

    PATH: pdk_C6657_1_1_2_6\packages\ti\platform\evmc6657l\platform_test

    Please refer platform_test project properties to link platform_lib to the custom projects.

    Thanks.

  • Dear Rajasekaran,

    I checked platform_test and included all paths in my project. but, i am getting error.

    I would be very thankful to you if you solve my problem.

    My code is as follows:

    #include <stdio.h>
    #include "platform.h"
    #include "resource_mgr.h"

    Int main()
    {
    platform_uart_init();
    return(0);

    }

    I tried the following function too, but i get same error:

    UartInit();

    You can see paths in the Figures.

    }