Part Number: MSP432P401R
Tool/software: TI-RTOS
I am creating a new lab for the new TI-RTOS workshop we are releasing that covers Clock. We are using heap memory to create the instances. Below is a snippet of my code:
// Create Clock 1
Clock_Params_init(&clkParams);
clkParams.period = 500000/Clock_tickPeriod;
clkParams.startFlag = TRUE;
clk1Handle = Clock_create(
(Clock_FuncPtr)myClk1Fxn,
500000/Clock_tickPeriod, //TIMEOUT VALUE
&clkParams,
NULL);
if (clk1Handle == NULL) {
System_abort("clock create failed");
}
Everything works FINE unless the timeout value = 0. I am not using a one-shot, but a periodic clock function. Why does the code get stuck in IDLE when I set the timeout value to zero? Is this some sort of race condition? I have the start flag set to true, so when clock_create() returns, the clock function should "start". But for some reason, a timeout value of ZERO causes the Clock function to completely fail.
My question is very similar to this post: e2e.ti.com/.../604810
But the real question was never addressed in that post.