Other Parts Discussed in Thread: CC2650
Tool/software: Code Composer Studio
Hello
I am working with CC2650 LaunchXL, working on Multi_Role project and the clock gets stuck after the first time it calls the callback function.
I've constructed a clock and added a callback function named toggleRedLed, which is supposed to toggle the red LED every period.
the clock duration is 1 second, and is currently a single shot, having the period time 0.
The clock is being started by the user, when pressing the right key inside the UART menu (I've added another menu to the Multi Role original UART menu).
The call to toggleRedLed is made a second after the user starts the clock, as supposed to be, and the led is turned on inside the callback function, but then when the callback function finishes the whole program gets stuck, as if it doesn't know how to get back.
During this 1 second the clock runs, the program works fine and I'm able to switch between the UART user menus using the launchXL keys, but when the clock duration is over it is stuck.
The code:
What is wrong?
Should I add anything at the end of the callback function?
I've tried semaphore_post and enqueueMsg but neither worked.
Thanks
Amit