8 years, 7 months ago.

SiLabs low power and event queue

Hi!

I have a Pearl Gecko (EFM32PG_STK3401) Dev-Board, and recently tried the low power demo from SiliconLabs

I took the main.cpp from there and copied it over the main.cpp from the mbed-os-example-blinky because I want to use mbed 5 instead of mbed 2.

It works as expected - when I compile and flash, I can start the Energy Profiler in Simplicity Studio and see the following:

http://picpaste.de/pics/screen01-2VKLtmlM.1504537664.jpg

Now I would like to try this using an eventqueue like here: Example of EventQueue with sleep()

The problem is, that even when I only add a single line like this

EventQueue queue(10 * EVENTS_EVENT_SIZE);

the Energy curve suddenly looks like this:

http://picpaste.de/pics/screen02-qFoK38cl.1504538050.jpg

Why is this?

Something in the EventQueue constructor influences the behaviour of sleep ...

Any help appreciated ;-)

Regards, MikeDK

Be the first to answer this question.