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?