1,硬件板子应该是没问题。因为其他工程范例是可以正常运行。Jlink SW模式也是可以在keil中被识别到,没有问题。 2,根本没有进去debug,弹出错误如下,所以应该不是睡眠的问题。 3,点击“debug”后,错误提示“verification of application image failed.Target contents do not match!flash download not performed?”
如附件所示,出问题的时候标识处应该没有选上。勾上就好了。
原始工程是基于582的,可以通过DA1458_config.h里的宏进行选择。 且外围默认会挂有一些外设。可以在hw_config.h里面#undef
如果需要服务加完后,立即广播,可以补上这一句。 void app_db_init_complete_func(void) { #if (HAS_AUDIO) min_vendor_hndl=hogpd_env.shdl[0] + hogpd_env.att_tbl[0][HOGPD_REPORT_CHAR + 5] + 1; max_vendor_hndl=hogpd_env.shdl[0] + hogpd_env.att_tbl[0][HOGPD_REPORT_CHAR + 7] + 1; #endif app_con_fsm_state_update(NO_EVENT); app_con_fsm_start_advertising(); //补上这一句 //get the handles of the vector specific data
}