MCU powersave issues

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
RoDe_1773541
Level 4
Level 4
25 replies posted 10 replies posted 5 replies posted

I'm having issues with timing when I enable mcu powersave (wiced_platform_mcu_enable_powersave).  I've attached a small program to demonstrates the issue.

The program just prints out the timestamp once a minute.  When mcp powersave is disabled, the timing is very consistent.  When enabled, the interval and the internal time-tracking are messed up.

Example output with each line timestamped:

Thu Apr 28 14:33:18 2016:  Starting WICED

...

Thu Apr 28 14:33:42 2016:  Enable MCU powersave

Thu Apr 28 14:33:42 2016:  Create thread and timed event

Thu Apr 28 14:33:42 2016:  Running

Thu Apr 28 14:34:20 2016:  Time: 1970-01-01T00:02:19.043568 <-- Should be one minute intervals

Thu Apr 28 14:34:30 2016:  Time: 1970-01-01T00:03:49.029000 <-- Printed 10 seconds later. Module thinks one minute 30 seconds has passed

Thu Apr 28 14:35:13 2016:  Time: 1970-01-01T00:05:50.042392

Thu Apr 28 14:35:55 2016:  Time: 1970-01-01T00:07:50.030248

Thu Apr 28 14:36:36 2016:  Time: 1970-01-01T00:09:49.057640

Thu Apr 28 14:37:17 2016:  Time: 1970-01-01T00:11:48.003000

Thu Apr 28 14:38:06 2016:  Time: 1970-01-01T00:13:55.058392

Without mcu powersave enabled:

Thu Apr 28 15:02:36 2016:  Starting WICED

...

Thu Apr 28 15:03:00 2016:  Create thread and timed event

Thu Apr 28 15:03:00 2016:  Running

Thu Apr 28 15:04:00 2016:  Time: 1970-01-01T00:01:23.057712

Thu Apr 28 15:05:00 2016:  Time: 1970-01-01T00:02:23.057712

Thu Apr 28 15:06:00 2016:  Time: 1970-01-01T00:03:23.057712

Thu Apr 28 15:07:00 2016:  Time: 1970-01-01T00:04:23.057712

Thu Apr 28 15:08:00 2016:  Time: 1970-01-01T00:05:23.057712

Thu Apr 28 15:09:00 2016:  Time: 1970-01-01T00:06:23.057712

Thu Apr 28 15:10:00 2016:  Time: 1970-01-01T00:07:23.057712

Thu Apr 28 15:11:00 2016:  Time: 1970-01-01T00:08:23.057712

Thu Apr 28 15:12:00 2016:  Time: 1970-01-01T00:09:23.057712

Thu Apr 28 15:13:00 2016:  Time: 1970-01-01T00:10:23.057712

Thu Apr 28 15:14:00 2016:  Time: 1970-01-01T00:11:23.057712

I'm running WICED SDK 3.5.2 with the Avnet BCM4343W IoT module. Compiled with snip.mcu_powersave-BCM94343W_AVN download run.  Anyone have any idea what's wrong?

Thanks,

-Rob

0 Likes
12 Replies