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/CC1350: Debugging with DebugP_log1()?

Part Number: CC1350

Tool/software: TI-RTOS

I'm having a nightmare trying to debug the PWM driver for my application right now, but I notice the driver functions are riddles with DebugP_log1() calls. 

How to I make these error logs available to view either via console or elsewhere?

  • Hi,

    are you using the TI-RTOS kernel or the No-RTOS "kernel"? The TI-RTOS kernel DPL implementation passes those functions to the XDC logger module:

    /*
     *  ======== DebugP_log1 ========
     */
    void DebugP_log1(const char *format, uintptr_t p1)
    {
        Log_print1(Diags_USER1, format, (xdc_IArg)p1);
    }

    You may either modify DebuP_tirtos.c in C:\ti\simplelink_cc13x0_sdk_1_60_00_06_eng\kernel\tirtos\packages\ti\dpl\ and compile it together with your project or enable XDC run-time logging in the kernel .cfg file.

    In general, I don't recommend debugging with printfs. Use JTAG instead to step through the code. Just copy the driver source file from the SDK into your project. It will take precedence when linking the application. Then you can step-debug through the driver.

  • I am using TI-RTOS. I'll give this a try, thank you.