SDK5。0。3
开启 extended_sleep, #undef DEVELOPOMENT_DEBUG,
睡眠后关闭蓝牙功能arch_ble_ext_wakeup_on()
使用外部中断触发唤醒,会发生类似重置的操作,原因是我保存的变量
user_app_on_db_init_complete()又被执行了,而我保存的变量
static uint8_t var[LEN] __attribute__((section("retention_mem_area0"),zero_init));
被重置了
因为开启睡眠之后带了 JLink 会卡在一个 DBG_IS_UP 的 while 循环,我想知道这可能是什么原因导致,有什么方法可以来判断 ?
Device:
Deep sleep or extended sleep conflicts with the J-Link debugger. You have to stop the debugger for the device to start advertising. You can also disable (undefine) both sleep modes in the da14580_config.h file of each project, this will allow you to also use the debugger."
Extended Sleep (I'm using DA14583)
I know it, I didn't start with JLink, I start with Booter in the SmartSnippets to program the program into the device, and Power Profiler.
I think it is supposed to not stop running the program. I want to test the current during the sleep mode, so I don't disable the sleep mode.
But it is still running improperly