⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
Deep Sleep issues

Hello!
I tried to measure the current consumption in my custom board but I think it never goes to sleep, It always shows 900uA. First of all, I tried to check if any of the components were the problem and I removed all of the components except those needed to make the DA14580 function. And after that, when advertising it shows 780uA and when the device is not connectable anymore shows 740uA. So now that i discarded a hardware problem i think it's a software problem.

So far I have changed the following
#undef CFG_DEVELOPMENT_DEBUG
#define CFG_BOOT_FROM_OTP
#undef CFG_MEM_MAP_EXT_SLEEP
#define CFG_MEM_MAP_DEEP_SLEEP
#define CFG_LP_CLK LP_CLK_XTAL32
app_default_sleep_mode = ARCH_DEEP_SLEEP_ON

.adv_scenario = DEF_ADV_WITH_TIMEOUT,
.advertise_period = MS_TO_TIMERUNITS(10000),

我甚至改变了app_easy_gap_undirected_advertise_start();
with the following (I saw that on a forum)

void set_the_timer(void)
{
app_easy_timer(1000, default_advertise_operation);
}
app_easy_gap_undirected_advertise_with_timeout_start(user_default_hnd_conf.advertise_period, set_the_timer);

I hope you can help me out.
Thank you

Device:
vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
I don´t know if it affects

I don´t know if it affects the sleep mode but I will attach the OTP header and NVDS

MT_dialog
Offline
Last seen:3 months 3 days ago
Staff
加入:2015-06-08 11:34
Hi vrabo,

Hi vrabo,

First of all, i see from the settings that the device should be operating in Deep sleep mode, so that means that you should have allready burned the image in the OTP, otherwise the device it will not operate. Also please check that the device is advertising or it actually does what the fw suppose to be doing, since perhaps due to a fw issue the device might go to a reset. Also does the device operates as it should when downloading an extended sleep version of the fw directly to RAM ?

Thanks MT_dialog