TMS320F28377D: Assistance with a debug behaviour - Debugging takes to C2000Ware_5_04_00_00 driverlib drivers

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Hi team,

I am seeing that my code enters ti > C2000Ware_5_04_00_00 > driverlib > f2837xd > driverlib > spi.h functions while I am debugging my project 

Instead of the same driverlib files which are already present in our project repository [ ... > Core1 > device > driverlib > spi.h ] ?

I wanted you assistance in knowing why this happens? 

And can I change the settings if any, so that I can see debugging utlilizes the low level files from my repository and not C2000Ware_5_04_00_00. I want to do this because we are customizing the driverlib provided to satisfy our requirements.

Your help is much appreciated !!

  • Hi, 

    There are two things that you can check

    1.  Are you including the driverlib.lib file in the project which is a prebuilt library.? If so, Please  try excluding it from the project build and include the source files for the driverlib in the project.

    2. The include paths specified in the project - Are these pointing to the file in your repo?   

    Best Regards

    Siddharth

  • Hello,

    We are using the source files and not the driverlib.lib in our project.

    And made the following changes in the project settings to exclude the c2000Ware driverlib with our project in debugging. 

    We removed the Dependencies - C2000Ware [5.4.0.00]

    and Include Options - COM_TI_C2000Ware_INCLUDE_PATH and C2000WARE_DLIB_ROOT

    And observed that after making these changes, the program was pointing to low level files present in our project.

    Could you please check, verify and confirm if these settings are correct and we can continue with these or whether we need to some more settings.

    Thank you for your response

  • Hi Sourabh

    Yes, this should work.  you can also check if there any paths specified in the linker section.

    Best Regards

    Siddharth

  • Hi Siddharth,

    Thank you for letting me know.

    The linker section doesn't seem to have anything related to the C2000Ware driverlib. The ones mentioned below are related to the compiler I presume:

    And I suppose nothing else here or anywhere is required to change !?

  • Hi Sourabh

    Yes, it looks fine. This should work.

    Best Regards

    Siddharth