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.

driverlib support for cc430f6137, particularly the UCS module

Other Parts Discussed in Thread: MSP430F5529, MSP430WARE, CC430F6137

I am trying to port code from an MSP430F5529 to a cc430F6137 under CCS v6.01, and MSP430ware_1_97_00_47. The ported code will eventually take advantage of the cc430 RF features in addition to the (already working) '5529 code base.

The '5529 code uses calls to driverlib.h.
However, when I try using calls to driverlib.h on the '6137 some of the calls work, but some do not. Specifically, calls to the UCS module (eg UCS_clockSignalInit(), or UCS_initFLLSettle()) fail. That said, driverlib calls to many other modules (GPIO, PMM, RTC, etc) seem to work on the '6137.

The issue seems to be related to the following:
1) Line 3794 of msp430f5529.h is: #define __MSP430_HAS_UCS__
2) Line 3840 of cc430f637.h is: #define __MSP430_HAS_UCS_RF__

These two #defines relate to the slight differences between the'5529 and '6137 UCS module

However,
3) Line 43 of ucs.h (called by driverlib.h) is:
     #ifdef __MSP430_HAS_UCS__
the corresponding #endif is at the end of the file.

4) Therefore, since the cc430f6137.h defines __MSP430_HAS_UCS_RF__ instead of __MSP430_HAS_UCS__, none of the UCS function call in ucs.h get declarations when building on the '6137. This kills successful compilation, even for UCS functions that should be supported on the '6137 (ie those that do not involve most XT2 configurations.)

Am I missing something: is there a simple work around that does not involve modifying these library files? If so, would it also accommodate the differences between the basic UCS module (on the msp430 parts) and the RF UCS module on the cc430 parts, eg the aforementioned XT2 differences?

Finally, the following post suggests that driverlib is NOT supported on the '6137. Thoughts?? Thanks.

http://e2e.ti.com/support/embedded/tirtos/f/355/p/400374/1417840#1417840

  • Hi Henry,

    A quick workaround to address the issue would be in ucs.h, replace

    #ifdef __MSP430_HAS_UCS__ with #if defined(__MSP430_HAS_UCS_RF__) || defined (__MSP430_HAS_UCS__)

    This should fix your problem and driverlib should work for cc430f6137.

     

    Sorry for the inconvenience. We will fix this issue in the next release of MSP430 driverlib. Thank you for your valuable feedback.

     

    Thanks,
    Kasthuri

     

**Attention** This is a public forum