目前开机读的分区表的信息是app flash address: 0x00003000, size:0x00030b90(199568) 1:固件生成工具使用了历程ble_app_onmicro_dfu下的工具,对于6621cg的芯片,使用CreateFw_6621_flash.bat还是使用CreateFw_6621c.bat? 2:使用CreateFw_6621c.bat(CreateFw_6621_flash也试了下,效果一样)生成的zip包,通过手机app,nrf connect或omtoolbox都试用了下,现象一样,当进行的擦除部分就停止了,omtoolbox的进度条在3%,之后6621cg手动断电重启还是正常使用。升级过程中的打印log如下 Device type(1) conidx(0) connected, ADDR: 1D 10 10 A5 AA 6E [6bytes] gapc_cmp_evt_handler operation=12. [13:45:07.085]收←◆appm_msg_handler,src_task_id=14,msgid=3607 [13:45:07.261]收←◆appm_m [13:45:07.277]收←◆sg_handler,src_task_id=14,msgid=3609 [13:45:07.628]收←◆appm_msg_handler,src_task_id=14,msgid=3632 [13:45:07.660]收←◆appm_msg_handler,src_task_id=14,msgid=3628 [13:45:07.724]收←◆gattc_mtu_changed_ind_handler,mtu len=527 [13:45:07.772]收←◆dfu:gattc_write_req_ind_handler handle:15(idx:3). [13:45:07.836]收←◆dfu:gattc_write_req_ind_handler handle:14(idx:2). [13:45:07.858]收←◆[DFU] DFU dfu_write_cmd opcode: 6;len=2onmicro_dfu_update_start, updating connection parameter [13:45:07.922]收←◆dfu:gattc_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 1;len=6 [13:45:08.003]收←◆dfu:gattc_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 2;len=3 [13:45:08.069]收←◆dfu:gattc_write_req_ind_handler handle:17(idx:5). dfu:gattc_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 3;len=1 [13:45:08.101]收←◆dfu:gatt [13:45:08.130]收←◆c_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 4;len=1DFU Image: Type-0x00, Size-0x30B90(199568), Version-0x6621CC20 [13:45:08.178]收←◆appm_msg_handler,src_task_id=14,ms [13:45:08.207]收←◆gid=3601 gapc_cmp_evt_handler operation=9. dfu:gattc_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 2;len=3dfu:gattc_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 6;len=2dfu:gattc_write_req_ind_handler handle:14(idx:2). [DFU] DFU dfu_write_cmd opcode: 1;len=6[DFU] Erasing 0x00035000-0x00065B90 (Application) 3:dfu_image_types这个结构中的max_length,现在是0x00032000,能否改修?因为目前固件有可能超过这个值。base_address2是否也要更改 4:onmicro_dfu_config.h文件中的dfu_image_types,这个表,对于6621cg,1mflash的空间,是否需要更改? |