Part Number:cc2640
Tool/software:TI-RTOS
I am using CC2640 Simple BLE broadcaster example code. In which I am using I2C, one GPIO interrupt and broadcasting data after every 1sec (In general mode).
The code is working fine as expected. I am able receive interrupt, I am able read data from sensor via I2C, and broadcast data.
The CC2640 will be standby mode whenever its not doing anything. But when I check the power consumption I can see some current peaks in between broadcasting.
While debugging I found that if I comment " Power_setDependency(PowerCC26XX_PERIPH_GPIO);" function from file PINCC26XX.c I could not see these peaks, but same time board also will not function.
For reference please see attached image
What is the exact reason of getting this unwanted current spike?
And how to avoid this ?