"ULP Rule 6.2 Detected use of a device with available 32-bit hardware multiplier and not also using MSPMATHLIB library (libmath.a). Recommend using MSPMATHLIB library (libmath.a) for improved performance."
MSPMATHLIB is a library that implements highly efficient versions of certain commonly used math.h functions. An application using these functions can improve performance by simply linking with this library. Here is a list of functions implemented in this library: sinf, cosf, tanf, asinf, acosf, atanf, atan2f, sqrtf, logf, expf, fmodf, and reciprocalf.
In an application not using MSPMATHLIB, usage of the above
functions might consume up to 26x more cycles which results in
more power and energy consumption.
The project is configured for an MSP430 device that does not have
a hardware multiplier module and the code contains at least one or more math operations listed
above.
MSPMATHIB is included in CCS. Simply link with MSPMATHLIB.
Screen shot for MSP430F5xx/6xx/FRxx family of devices. Add
libmath.a before other libraries. Add
“"${CCS_BASE_ROOT}/msp430/lib/5xx_6xx_FRxx" to library search
path.
Screen shot for MSP430F4xx family of devices. Add libmath.a
before other libraries. Add “"${CCS_BASE_ROOT}/msp430/lib/4xx" to
library search path.
No changes to code required.
Take a look at https://www.ti.com/tool/mspmathlib for more details.
Want to squeeze a few more nanoAmps out of your application? Leverage the e2e (Engineer-to-Engineer) online community to get all of your ULP questions answered! Or, if you are an Ultra-Low Power pro, give back to the community with your expertise.
Go to MSP430's e2e online forum!
If you are posting on the forums in relation to this rule, try using the tag "ULP_6.2"
![]() |
For technical support please post your questions at http://e2e.ti.com. Please post only comments about the article Compiler/diagnostic messages/MSP430/10422 here. |