I am testing current consumption of NRF_TIMER1, below is my code snippets, basically, I just start timer1 task and then stop it.
// Enter main loop.
After the two code lines of START/STOP added, current spikes increases, please see below capture. (GREEN is the current after adding timer1 operation)
My questions is that is this a expected behavior? I mean, the current consumption increases even though we already stop the timer and aren't using it.
Really appreciate your support.
Maybe the High Frequency Clock(HFCLK) is still running? The Timer may have started the clock but didn't stop it?
You can check if clock is running or not using the functions from the clock HAL.
Thank you for response. I find errata already states this issue.
So I have to use TASK_SHUTDOWN instead of TASK_STOP.