work in CFG_EXT_SLEEP ble_deep_sleep_stat_getf

6 posts / 0 new
Last post
Stone_wang
Offline
Last seen:11 months 1 week ago
Joined:2015-10-23 03:55
work in CFG_EXT_SLEEP ble_deep_sleep_stat_getf

sdk:3.0.6

In the da14580.h file , I #define CFG_EXT_SLEEP,
but the program stop at
/************************************************************************
************** 关闭射频 **************
************************************************************************/
rwip_rf.sleep();

而(!ble_deep_sleep_stat_getf()); // stop at here ,

//check and wait till you may disable the radio. 32.768KHz XTAL must be running!
//(debug note: use BLE_CNTL2_REG:MON_LP_CLK bit to check (write 0, should be set to 1 by the BLE))
而( !(GetWord32(BLE_CNTL2_REG) & RADIO_PWRDN_ALLOW) ) {};
,I don't know why .

Thanks .
(I had download the program in the eeprom,it still doesn't work .).

Device:
MT_dialog
Offline
Last seen:1 month 6 days ago
Staff
Joined:2015-06-08 11:34
Hi Stone_wang,

Hi Stone_wang,

Can you give me more info about your code. What is the example that you are based to build your project and what is the development kit you are using. When you ve downloaded the code by using keil is the device operating ? Also can you please try to use a newer SDK just to have a test ? The ble_deep_sleep_stat_getf() should wait and return that the BLE Core is not in Sleep, and it seems that is sleeping and the low power clock is running. I dont think that you can do much by software in order to have this problem.

Thanks MT_dialog

Stone_wang
Offline
Last seen:11 months 1 week ago
Joined:2015-10-23 03:55
Hi,Dialog,

Hi,Dialog,
I use example proxm.... project.And I use another chip it runs Ok. May be the chip is damage ?

zailushanghe
Offline
Last seen:3 years 10 months ago
Joined:2016-05-16 04:01
Hi Stone_wang,

Hi Stone_wang,

I also encounter the same problem with you.I want to know if it is ok when you #undef CFG_EXT_SLEEP to make it run in active mode.

MT_dialog
Offline
Last seen:1 month 6 days ago
Staff
Joined:2015-06-08 11:34
Hi Stone_wang,

Hi Stone_wang,

If you used another chip and it works, thats the most probable explanation.

Thanks MT_dialog

zailushanghe
Offline
Last seen:3 years 10 months ago
Joined:2016-05-16 04:01
Hi Stone_wang,

Hi Stone_wang,

I also encounter the same problem with you.I want to know if it is ok when you #undef CFG_EXT_SLEEP to make it run in active mode.