CYW43907 Returning from hibernate early

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

cross mob
cohuc_3807591
Level 3
Level 3
5 likes given First like given

Hello All:

I'm having a problem where i'm sending the CYW43907 eval kit into hibernate mode for 4+ minutes, and it will consistently wake itself up after about a minute and a half. Whats even weirder is that if I send it to hibernate for only 1 or 2 minutes, it will stay in hibernate mode for the correct amount of time.

In terms of the code, i'm using the hibernate example snip from this post (43xxx_wifi Hibernate.c in WICED 6.2.1? ), with the only change made being the HIBERNATION_PERIOD_MS time.

Is there other considerations that going into choosing the hibernate time?

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello :

there should have an overflow when doing multiplication :

you can modify it like this:

uint32_t seconds_to_wakeup = ms_to_wakeup/1000;

uint32_t ticks_to_wakeup = freq*seconds_to_wakeup ;

I have a test more than 5 minutes, it is correct.

View solution in original post

0 Likes
1 Reply
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello :

there should have an overflow when doing multiplication :

you can modify it like this:

uint32_t seconds_to_wakeup = ms_to_wakeup/1000;

uint32_t ticks_to_wakeup = freq*seconds_to_wakeup ;

I have a test more than 5 minutes, it is correct.

0 Likes