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/MSP432P401R: how to enable verbose logging SimpleLink drivers (debug mode) with FreeRTOS

Part Number: MSP432P401R


Tool/software: Code Composer Studio

I'm trying to troubleshoot an issue with the SimpleLink drivers where the MPS432 somehow gets into a state where an I2C_transfer  hangs indefinitely, even persisting across reset. I noticed a number of DebugP_log() calls present throughout the I2CMSP432.c source file but it's unclear how to get those working, particularly when using the SimpleLink SDK in conjunction with FreeRTOS.

One hurdle is that it seems the TI drivers are already built with DebugP_LOG_ENABLED turned off, so that those verbose logging calls would already be compiled out. I don't see separate debug vs. release builds of drivers_msp432p401x available in the main SDK — is there a debug version of the driver build available somewhere?

The other hurdle is that in the dpl/DebugP_freertos.c file the implementations of the DebugP_log calls all look like this example:

void DebugP_log2(const char* format, uintptr_t p1, uintptr_t p2)

{

// printf(format, p1, p2);

}

That is, even with DebugP_LOG_ENABLED it looks like the FreeRTOS DPL versions are just stubs with the actual output calls literally commented out!

Given that someone added all the instrumentation lines in the MSP432-specific driver, it seems like there would be some way to enable them? Am I missing something how to activate the verbose logging from the SimpleLink SDK?

  • Hi Nathan,

    I will look at the FreeRTOS code examples and update this query

    Srinivas

  • Hi Nathan,

    Nathan Vander Wilt said:
    is there a debug version of the driver build available somewhere?

    The SDK includes the project file for the driverlib at C:\ti\simplelink_msp432p4_sdk_3_40_01_02\source\ti\devices\msp432p4xx\driverlib\ccs. You should be able to rebuild after enabling DebugP_LOG_ENABLED.

    Nathan Vander Wilt said:
    Am I missing something how to activate the verbose logging from the SimpleLink SDK?

    I cannot find a simple option to enable the debug prints. I think you need to uncomment them and rebuild.

    Srinivas