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.

RTOS/AM5748: How to integrate driver source code in CCS project

Part Number: AM5748

Tool/software: TI-RTOS

Hi,

My customers want to integrate driver source in CCS project.

Because It's troublesome to "make" when changing the driver source code.

How can my customers integrate it?

 

First, I want to know how to integrate the following.

-USB driver (pdk/packages/ti/drv/usb)

-FatFs/mmcsd (pdk/packages/ti/fs/fatfs)

(Please tell me about other drivers if possible)

 

Regards,

Rei

 

  • Hi,

    The Processor SDK RTOS driver is built with makefile approach, then the test application is built with CCS project, which linked with the RTOS driver. The driver selection is configured by the .cfg file in the CCS project.

    Typically the driver is bug free and has all the functions implemented and you are building your application and debug your application. We don't have examples to do CCS project for driver source code.

    What is the reason you what to change the driver source code? If your change is very limited, you can still build the driver library then linked with the application. Or, you may add that driver source code (with changes) into your application, and still linked with the original driver library. In this approach, there are duplicated functions (one from your added driver source code, the other from the library). The linker automatically picks the one from the source code in the CCS project. This is the typical way how we want to debug a driver problem without rebuild the driver every time. We just change the source code here, the issue you need to deal with is some header inclusion.

    If your goal is not debug or make some simple changes to the driver code, but you want to put all the driver source code into CCS project, you need look at the makefile of the driver, and make a build, to understand what source code, compiler option and definitions are used and finally archived into the library. then you can update the CCS project for this.

    We don't have any CCS project example for USB/MMCSD/FATFS source code. In the past we did convert the SBL from makefile approach into a CCS project. This is a wiki guide showing how to create and build SBL using a CCS project instead of makefile on AM57xx since we’ve seen a couple E2E threads regarding this issue. The guide is specifically for AM572x, but the steps could be used for other boards and even for other modules.
    It can be found here: ap-fpdsp-swapps.dal.design.ti.com/.../Creating_a_CCS_Project_for_SBL_on_AM572x_GP_EVM
    You may refer to this as well.

    Regards, Eric
  • Hi Eric,
    Thank you very much.

    Regards,
    Rei