DA14531 Dev Kit Hibernation Mode

⚠️
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.
10 posts / 0 new
Last post
司法
Offline
Last seen:2个月前1年
Joined:2020-02-07 17:29
DA14531 Dev Kit Hibernation Mode

So I've been working with the DA14531 Dev Kit Pro and I have been having trouble getting the MCU into hibernation mode. I'm just trying to do some preliminary tests and power characterization so I wanted to just use the example code. Following the instructions in the "Sleep Mode Tutorial" I wasn't able to get it to go into hibernation mode. On the test board I'm seeing anywhere from 200-400 uA depending on the voltage and whether or not I'm in buck or boost mode. Any help on this would be greatly appreciated.

设备:
PM_Dialog
Offline
Last seen:10小时43分钟前
Staff
Joined:2018-02-08 11:03
嗨djames,

嗨djames,

Thanks for posting on our public Bluetooth forum and glad that you’ve been working with our new Smartbond device. In the “Sleep Mode Tutorial”, there are 3 cases for the hibernation mode configuration (using SPI Flash/SysRAM/OTP). Can you please indicate in which case are you measuring 200-400 uA? If you are using SysRAM, is the debugger attached or not? In addition, which RAM blocks are retained? It would be very helpful if you were able to share those clarifications.

Thanks, PM_Dialog

司法
Offline
Last seen:2个月前1年
Joined:2020-02-07 17:29
I'm currently using the

我目前正在使用sysram配置。使用Sysram配置,我尝试过它的调试器和未附加(物理),并且我使用keil和smartsnippets工具进行编程。假设从标题文件的配置正在通过正确传递,所有3个RAM块都已打开。我会猜到这是目前增加的原因?

PM_Dialog
Offline
Last seen:10小时43分钟前
Staff
Joined:2018-02-08 11:03
嗨djames,

嗨djames,

If the debugger (from the Arm Keil IDE) is attached, this prevents the system to enter any of the sleep modes. You don’t need to remove the debugger physically, just press twice the “Start/Stop Debug Session” button. Can you please indicate if the SPI jumpers are placed or not in the J1 header? Please, try to unmount the SPI jumpers. Then, I would suggest you to use the Power profiler from the SmartSnippets Toolbox and check if the device stops advertising and going into hibernation. In the Hibernation tutorial, advertising with 18second timeout is used, so the device will enter the hibernation mode after 18 sec.

Thanks, PM_Dialog

司法
Offline
Last seen:2个月前1年
Joined:2020-02-07 17:29
So I've been able to get the

因此,使用休眠模式的设置,我一直能够在大约18秒后将功耗降至约27个UA。SPI跳线被删除,我在降压模式下运行3.3V。使用Agilent 34465A DMM进行该测量。我仍然必须做错了什么,但是把电路板从调试模式中取出了很多帮助。我不确定剩下的问题是什么。

PM_Dialog
Offline
Last seen:10小时43分钟前
Staff
Joined:2018-02-08 11:03
嗨djames,

嗨djames,

你能试着用吗?DA14531 Configuring To hibernation modeSW example in order to set the DK into hibernation mode? Can you detect any change in the power consumption? All our SW example (including the hibernation mode SW example) don’t contain SDK, so you should link them with the SDK. Please follow the steps described in theSoftware Example Setup Using Python Link Scriptdocument.

Thanks, PM_Dialog

司法
Offline
Last seen:2个月前1年
Joined:2020-02-07 17:29
Thanks for sending that

Thanks for sending that example code. That slightly lowered the current consumption, but just barely. Before I was measuring about 27.3 uA and now I'm measuring about 26.9 uA.

PM_Dialog
Offline
Last seen:10小时43分钟前
Staff
Joined:2018-02-08 11:03
嗨djames,

嗨djames,

我跑了这件事DA14531睡眠模式教程(HTML)并且冬眠电流在约1.8 ua。我使用DA14531 PRO-DK使用SmartSnippets Toolbox的电源分布器来测量。跳线如图5所示放置:带有JTAG跳线的硬件设置

1. Define the CFG_APP_GOTO_HIBERNATION macro in user_proxr.h

#if defined (__DA14531__) #define CFG_APP_GOTO_HIBERNATION

2. Comment out the following code snippet is snippets in user_prox.h

//#如果已定义(cfg_spi_flash_enable)&&定义(cfg_app_goto_hibernation)// #error“config错误:无法定义cfg_spi_flash_enable和cfg_app_goto_hibernation。”//#万一

3.开关在所有三个内存块和重新映射the address 0 to SysRAM as shown below:

#define cfg_hibernation_ram1 pd_sys_down_ram_on #define cfg_hibernation_ram2 pd_sys_down_ram_on #define cfg_hibernation_ram3 pd_sys_down_ram_on #define cfg_hibernation_remap remap_addr0_to_ram1 #define cfg_hibernation_pad_latch_en false #endif

4. In user_periph_setup.h file, configure the GPIO that would be used to wake-up the device from hibernation mode. In this case we have chosen P0_5 as the wake-up GPIO.

#f定义(__da14531__)#define hib_wake_up_port gpio_port_0 #define hib_wake_up_pin gpio_pin_5 #define hib_wake_up_pin_mask(1 << hib_wake_up_pin)#endif

5.在user_config中,将广告期更改为5秒。5SEC后,设备将停止广告并进入休眠模式。

static const strame default_handlers_configuration user_default_hnd_conf = {//配置默认处理程序//可能值所使用的通告操作://  -  def_adv_forever //  -  def_add_adv_with_timeout .adv_scenario = def_adv_with_timeout,//在def_adv_with_timeout中配置广告时段。//它以定时器单元(3分钟)测量。使用ms_to_timerUnits宏将//从毫秒(ms)转换为定时器单位。.advertise_period = ms_to_timerUnits(5000),//配置默认处理程序的安全开始操作//如果启用了安全性(CFG_APP_Security)//可能的值://  -  def_sec_req_never //  -  def_sec_req_on_connect .security_request_scenario = def_sec_req_nver};

6. Build the project.

7. Open the Power Profiler from the SmartSnippets Toolbox. You will need to connect via UART/SPI to enable the power profiler tool. Press ”Initialize” and “Start”

8.将固件下载到系统RAM中。

9.系统将启动5SEC的广告,然后它将进入休眠模式。请从我的设置中检查附加的屏幕截图。休眠Mod中的电流消耗约为1.8UA。如果休眠电流围绕此值,请使用工具测量它以便具有更好的测量。

Thanks, PM_Dialog

Attachment:
司法
Offline
Last seen:2个月前1年
Joined:2020-02-07 17:29
所以在做一些挖掘之后

所以在做一些挖掘之后and playing with this again, I decided to swap to the WLCSP17 daugherboard instead of the QFN24 daugherboard. To my surprise this fixed my issue. Upon closer inspection of the schematic I noticed that there were some I/O pins on the 24 pin part that aren't connected on the 17 pin part. Removing all the jumpers on J8 and J19 lowered my current consumption down to 700nA. After some trial and error it looks like connect the jumper on J8 pins 1 and 2 causes a 26uA increase in the current consumption. I'm not sure if this is unique to my board, but if not I think removing this jumper should be included in the steps listed in the tutorial.

PM_Dialog
Offline
Last seen:10小时43分钟前
Staff
Joined:2018-02-08 11:03
嗨djames,

嗨djames,

Many thanks for your valuable feedback. Setting the jumper on J8 pins 1 and 2, the C_TRIG triggered is enabled which is mapped on the P0_9. That pin is only available on QFN24 package! I have already the Team know about this and we perform some tests early next week. I will keep you updated on this!

Thanks, PM_Dialog