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.
设备:
嗨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
我目前正在使用sysram配置。使用Sysram配置,我尝试过它的调试器和未附加(物理),并且我使用keil和smartsnippets工具进行编程。假设从标题文件的配置正在通过正确传递,所有3个RAM块都已打开。我会猜到这是目前增加的原因?
嗨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
因此,使用休眠模式的设置,我一直能够在大约18秒后将功耗降至约27个UA。SPI跳线被删除,我在降压模式下运行3.3V。使用Agilent 34465A DMM进行该测量。我仍然必须做错了什么,但是把电路板从调试模式中取出了很多帮助。我不确定剩下的问题是什么。
嗨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
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.
嗨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
2. Comment out the following code snippet is snippets in user_prox.h
3.开关在所有三个内存块和重新映射the address 0 to SysRAM as shown below:
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.
5.在user_config中,将广告期更改为5秒。5SEC后,设备将停止广告并进入休眠模式。
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
所以在做一些挖掘之后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.
嗨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