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.
Tool/software: TI-RTOS
Hi,
I've started work on a new device that uses an MSP432 and simplelink_msp432_sdk_1_40_01_00. I prefer to develop with instrumentation enabled so that asserts are validated and logs are produced. However, 1.40.01.00 of the SDK doesn't ship with a pre-built instrumentation library. The libraries included in simplelink_msp432_sdk_1_40_01_00\source\ti\drivers\lib are: drivers_msp432p401x, drivers_msp432p4xx and drivers_msp432p4x1xi, with aem4f/am4fg/arm4f variants for each. I also can't find an instrumented dpl (kernel/tirtos/packages/ti/dpl) library, so all DebugP_logx functinos produce no output.
After googling how to use xdc properly, I managed to build the instrumented version of drivers myself. However, it failed to boot because the assertion at the start of GPIO_setConfig (line 414 in GPIOMSP432.c) fails during GPIO_init. The assert is below:
DebugP_assert(initCalled && index < GPIOMSP432_config.numberOfPinConfigs);
This fails because GPIO_init lines 324 - 334 tries to configure the pins before initCalled is set. Setting initCalled before the for loop fixes the issue.
However, this doesn't give me a lot of confidence in the quality of the SDK, so I have a few questions:
I just want to understand things a bit better before we decide to commit ourselves here.
Cheers
Hi Todd,
Thanks for clearing that up, I think I'll just switch into my instrumented builds if/when I have issues with drivers. I didn't run any particular example to get GPIO_init to fail, but as far as I can tell, any call to it that configures pins with instrumentation will fail.
I also got DebugP_xx to print by building DPL myself, I guess the pre-built one has printing disabled. I've made my sdk install a bit of a mess with these custom builds, so it's not super easy for me to check if it's in my map with the shipped library. I would assume so, however, because it linked correctly when I called DebugP_log0 directly, it just didn't produce any output.
I think I'll revert back to the shipped libraries now though because that is what's tested. This was a useful little exercise though, now I understand the xdc build system a lot better.
**Attention** This is a public forum