Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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:

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:

Why is this?
Something in the EventQueue constructor influences the behaviour of sleep ...
Any help appreciated ;-)
Regards, MikeDK