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/PROCESSOR-SDK-AM335X: Reduce the dependency of PDK_AM335x for a standalone project.

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Code Composer Studio

Hi,

Our requirement is to reduce the dependency of pdk_am335x in a CCS project. It means that we need to have a separate CCS project which should contain all the required peripheral drivers like for uart, i2c, etc., in the same project itself. This is to avoid the rebuilding of entire pdk_am335x for any minor modifications like changing the uart instance,etc.. We also need to place our complete project code on a server and it would be a huge size if we include the entire pdk_am335x. In that sense, we need to create a CCS project where all the modifications done should come into effect by just building the standalone project without rebuilding the entire pdk_am335x. Is there any way to to reduce the pdk_am335x dependency for a standalone project by porting all the required files from pdk_am335x to our standalone project? Please let us know.

Regards,

Nagesh Naik

  • Hi Nagesh,

    Firstly, I'd suggest removing the unused drivers from the PDK project, and make sure the project still builds after each one.

    Then, port just the libraries that you need over to your new project. Make sure that you keep the build settings the same between the two projects. 

    Thanks,

    Max

  • Hi Max,

    Thanks for the reply. Is there a way where we can easily/quickly port the required libraries to our new project? Or do we need to extract them individually and build it in our new project by including proper header files and their corresponding paths?

    Regards,

    Nagesh Naik

  • Hi Nagesh,

    You should be able to simply move the libraries over to the new project and make sure the build settings are the same. As long as your aren't rebuilding the libraries, you shouldn't need to rebuild them.

    Thanks,

    Max

  • Hi Max,

    I mean, how do we actually remove the unused drivers and port the required libraries to our new project? Do we need to remove those corresponding folders from the pdk installation directory and move the required libraries to our new project? Or do we need to remove the unused drivers from a project which already includes pdk and try to build it? Is there any way to move the required libraries to our new project by linking something or any configurations in CCS? Please suggest.

    Regards,
    Nagesh Naik

  • Hi Nagesh,

    "Or do we need to remove the unused drivers from a project which already includes pdk and try to build it?" I would start with that.

    You can link the libraries that you need in the linker configurations of the project. You can find those libraries in <PDK_Install_Dir>/packages/ti/drv/<driver>/lib/am335x/a8/release

    Thanks,

    Max