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 compile driverlib with debug info



Tool/software: Code Composer Studio

Hi,

How to compile TivaWare driverlib with debug info with gcc? Currently I copied manually some c files from driverlib (for example timer.c) to my project driectory, and I can debug my project, now I'd like to link libdriver.a . But with debug info.

  • You don't need libdriver.a if you add all of the libdriver sources to your project. When I need to debug the drivers, including the USB library, I just remove the pre-compiled linker items and add all of the appropriate sources. TI seems to have adequate debugging in their source already, but it must be enabled by recompiling.

    Note that TI only provide a Debug build, not a Release build, but that still doesn't enable all debugging messages. You might have to hunt around for a #define that will increase the amount of debugging information. As I said, I've had good luck with this with regard to the USB library - it was very helpful to build it myself.
  • Thanks for your respone. I have used this method (adding the required files to the project), however I'm still interested how to avoid this, and making a big libdriver.a .