This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Current consumption

Hi, 

I tried to monitor current consumption of my device. I used

 

sd_app_evt_wait();

and then used 

 // Wait for an event.
        __WFE();
        // Clear the internal event register.
        __SEV();
        __WFE();

I saw something like this

There are spikes on everywhere.

If I comment out sd_app_evt_wait(); or last __WFE(); it beacomes like that

I am using sdk 15.0.0, before this I was using sdk 14.2 and in 14.2 I was using sd_app_evt_wait function and there was no spikes. How can I fix it?

Thanks.

Parents
  • Hi

    There are a few changes between the SDKs, so there's just a matter of finding what change is causing these spikes when combined with your project. Could you please upload the SDK15.0 version of your project with instructions on how to recreate this, so I can have a closer look? I can set the case to private if you don't want to share your project with the rest of the community. This way the case will be treated with confidentiality, and only Nordic engineers will be able to see the case. Just say the word!

    Best regards,

    Simon

Reply
  • Hi

    There are a few changes between the SDKs, so there's just a matter of finding what change is causing these spikes when combined with your project. Could you please upload the SDK15.0 version of your project with instructions on how to recreate this, so I can have a closer look? I can set the case to private if you don't want to share your project with the rest of the community. This way the case will be treated with confidentiality, and only Nordic engineers will be able to see the case. Just say the word!

    Best regards,

    Simon

Children
  • There are misunderstandings because of my wording. Last four pictures are not from my project. They are from SDK 15.0's and 14.2's base example(ble_app_hrs_rscs_relay). If I comment out sd_app_wait() function in base example there are no spikes, if I don't do any changes spikes appear. Then I tried this in ble_app_blinky example without any changes(code still calls sd_app_wait() function) and there were no spikes(I didn't put here any pictures for it). 

    So I saw that if I download the untouched version of SDK 15.0 or SDK 14.2 , then run projects ble_app_hrs_rscs_relay and ble_app_blinky without any changes. Relay example has spikes and blinky example hasn't. My old project was built on blinky example and new example is built on relay example, that's why I started to see those spikes. Can you check those examples? If you say those spikes are unexpected then I can take your advice to fix it, if those are expected then it's okay for me too. Thank you.

Related