I use MSP430F5529LP, CCSv7 and TI-RTOS version 2.20.0.06.
when I use IEC60730 lib and call IEC60730_OSCILLATOR_TEST_testOsc() function, this function always return TEST_FAILURE.
I found the freqCounter not between FREQUENCY_COUNT_MIN and FREQUENCY_COUNT_MAX.
My execute result:
FREQUENCY_COUNT_MIN:12925
FREQUENCY_COUNT_MAX:13724
freqCounter:11733
>>> OSCILLATOR_TEST FAILURE.
My setting:
#define MAIN_CLOCK_FREQUENCY_8MHz
#define LFXT1_FREQUENCY 32768
#define LFXT1_FREQUENCY_DIVIDER 1
#define PERCENT_FREQUENCY_DRIFT 3
But, when I run on non-RTOS project, the function(IEC60730_OSCILLATOR_TEST_testOsc() ) will return Pass.
Anyone can tell those different? And tell me how to setting can run on TI-RTOS?
Thanks.