在mac上安装nrfutil
macOS版本已经为12.4的Monterey
python3 -V
显示python版本为3.10.5。
参考文档:https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrfutil%2FUG%2Fnrfutil%2Fnrfutil_intro.html
pip3 install --ignore-installed six nrfutil
执行命令
nrfutil --help
貌似OK了
执行
nrfutil dfu ble --help
试着dfu一把
nrfutil dfu ble -ic NRF52 -pkg tag_tb1_lib12_c_fw_dfu_v22.07.1.3.zip -n "LS_DFU" -f
输入0,回车。
居然报错了!错误日志:nordicsemi.dfu.package.PackageException: Package /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pc_ble_driver_py/hex/sd_api_v5/connectivity_4.1.2_usb_with_s132_5.1.0_dfu_pkg.zip not found.?
Google了一圈,最终在DevZone找到了一篇帖子。说是要把-f参数去掉,改为:
nrfutil dfu ble -ic NRF52 -pkg tag_tb1_lib12_c_fw_dfu_v22.07.1.3.zip -n "LS_DFU"



