< 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 >嗨DialogSupport, < / p > < p >我在工作项目中,我致力于I2C基地触摸传感器。我设计了自定义董事会使用DA14583单片机和单片机IQS333触摸传感器。< / p > < p >我写了固件现在我工作在睡眠模式配置。首先,我是通过定义/启用ARCH_EXT_SLEEP_ON。< br / > const静态sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON; < / p > < p >如果我运行代码,它会立即进入附加sinppet和< br / >持有ASSERT_WARNING (0);线,没有写任何醒来API函数。< / p > < p >空白lld_sleep_compensate_func_patched (void) < br / > {< br / > uint32_t dur_us; < br / > uint32_t slot_corr; < br / > uint32_t fine_corr; < / p > < p > / /睡眠低功率的数量期< br / > uint32_t slp_period = ble_deepslstat_get (); < / p > < p > / /完整性检查:睡眠的持续时间是有限的< br / > ASSERT_ERR (slp_period & lt;LLD_EVT_MAX_SLEEP_DURATION); < / p > < p > / / < br / >将睡眠时间转换成我们dur_us = lld_sleep_lpcycles_2_us_sel_func (slp_period); < br / > slot_corr = dur_us / 625; < br / > fine_corr = 624 - (dur_us % 625); < br / >如果(fine_corr = = 0) < br / > fine_corr = 1; < / p > < p > / /调整值然后从睡眠时间推断美国< br / > ble_basetimecntcorr_set (slot_corr); < br / > ble_finecntcorr_set (fine_corr); < / p > < p > / / < br / > ble_deep_sleep_corr_en_setf启动修正(1),< / p > < p >如果((DEVELOPMENT_DEBUG),,(USE_POWER_OPTIMIZATIONS)) < br / > {< br / > slp_period_retained = slp_period; < br / > / /如果这个断言打那么LP ISR持续更长时间< br / > / /已经通过LP_ISR_TIME_XTAL32_CYCLES和LP_ISR_TIME_USEC保留。< br / >如果sleep_lp_cycles,,(sleep_lp_cycles & lt; slp_period))
ASSERT_WARNING(0);
} }
Please note that i have a RDY_PIN interrupt coming from sensor, which interrupt my MCU whenever there is low pulse(this pulse interrupts MCU every 10ms ) and enter into interrupt handler function to read data from sensor.
while debugging i encountered an behavior of the device that is, whenever i get I2C_RDY pin interrupt of sensor at that time the device goes to ASSERT_WARNING (0);
However, if i remove RDY_PIN interrupt the code does not enter into ASSERT_WARNING(0);
Can any one help me to resolve issue. how i can debug this and work as required. It's urgent for me to debug.
Thanks and Regards
Rohit