Hi,
I am using App Timer for measuring time and at the same time while loop to check if the timer reached particular time.
I have noticed during while loop App Timer event doesn't seems to work. Is this correct?
Regards Siva
Hi,
I am using App Timer for measuring time and at the same time while loop to check if the timer reached particular time.
I have noticed during while loop App Timer event doesn't seems to work. Is this correct?
Regards Siva
In what interrupt priority do you check the timer value in a loop? If it is running in the same or higher priority than the application timer, your timeout event handler will never be called as it must wait for the other (same or higher priority) interrupt handler / event handler to finish first.
Can you advice on how to change interrupt priorities for timer,ble, gpio, protocols(I2C,SPI,Uart,etc).
I have attached my code. At line 1067 where our problem actually starts.
We use "rtc_config()" to read touch value, I have noticed that it doesn't read data when it enters into the loop for the first time I have to call this function again by button press in order to read the data. It is recursive(I have to call the event twice to read the touch data). Any Advice?
In lines 1078,1091 where I started using while loop to check time.
You are correct if I can set the priorities right this should work. In our application ble,timer needs to be highest priority followed by I2C and then while/main loops.
Can you advice on how to change interrupt priorities for timer,ble, gpio, protocols(I2C,SPI,Uart,etc).
I have attached my code. At line 1067 where our problem actually starts.
We use "rtc_config()" to read touch value, I have noticed that it doesn't read data when it enters into the loop for the first time I have to call this function again by button press in order to read the data. It is recursive(I have to call the event twice to read the touch data). Any Advice?
In lines 1078,1091 where I started using while loop to check time.
You are correct if I can set the priorities right this should work. In our application ble,timer needs to be highest priority followed by I2C and then while/main loops.