雷竞技电竞平台Dialog Semiconductor客户支持- DA1468x LP_CLK_RCX BLE_MAX_DELAYS_ALLOWED https://support.dialog-semiconductor.com/resource-keywords/da1468x-lpclkrcx-blemaxdelaysallowed BLE最大延迟和LP_CLK_RCX https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/ble-max-delays-and-lpclkrcx < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好,< / p > < p >我们设计一个系统,由一个DA1468x还有几个传感器。我们的空间非常有限,所以我们创建了没有外部32 KHz晶体的PCB,并将低功耗时钟配置为LP_CLK_RCX。我们需要每40毫秒唤醒DA1468x来维护我们的传感器。当我们运行在DA14681 Pro开发工具包和利用它的32 KHz晶体(LP_CLK_32768),一切都工作得很好。但是,如果我们切换到LP_CLK_RCX(仍然在pro dev工具包上),我们就会在rwble.c中碰到BLE_MAX_DELAYS_ALLOWED断言。

以下是使用Dialog的pxp_reporter示例项目和DA14681 pro开发工具包重现问题的一些步骤:通过克隆pxp_reporter示例项目创建一个新项目。< br / > 2。在pxp_reporter_task.c中,创建一个新的计时器,每40毫秒触发一次并启动它。 Create an empty handler to be called when the timer expires.
3. Modify custom_config_qspi.h to use the RCX for the low power clock:
#define dg_configUSE_LP_CLK LP_CLK_RCX
4. Build the DA14681-01-Release_QSPI target.
5. Run the program on a DA14681 pro development kit.

The program will trigger the BLE_MAX_DELAYS_ALLOWED assert in rwble.c within 10 to 20 seconds.

What can we do to both wake the system every 40 milliseconds and utilize the LP_CLK_RCX setting? Would you recommend we increase the number of allowed BLE delays, perhaps setting BLE_MAX_DELAYS_ALLOWED to 10 or more?

Thanks!
David

Device: 
2017年6月15日星期四02:21:50 +0000 david_33021 49772年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/ble-max-delays-and-lpclkrcx#comments