This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrfutil dfu ble failed to open Win 10

I try to load my nRF52 with app via ble from windows 10 laptop.

nRF52 dev kit is loaded with the Softdevice and Bootloader from nRF5_SDK_12.1.0\examples\dfu\ble_dfu_send_hex\test_images_update_nrf52.

I have no problems to load nRF52 dfu_test_app_hrm_s132.zip from Mobile nRF Toolbox.

I try to do as admin:

"nrfutil dfu ble -ic NRF52 -n "DfuTest" -p COM5 -pkg dfu_test_app_hrm_s132.zip"

from windows 10 python2.7.12(nrfutil2.0.0/pc_ble_driver_py0.8.0) only version installed.

but get open failed exception (access denied):

"C:\Python27\lib\site-packages\pc_ble_driver_py\ble_driver.py", line 126, in wrapper raise NordicSemiException('Failed to {}. Error code: {}'.format(wrapped.name, err_code)) pc_ble_driver_py.exceptions.NordicSemiException: Failed to open. Error code: 13

I can see nRF52 device "DfuTest" in win bluetooth device list.

Any ideas?

Parents
  • Thanks! yes Im running cmd.exe as administrator.

    I installed nrfutil v1.5.0 by the following as admin:

    1. install Python 2.7.12

    2. python -m pip install --upgrade pip

    3. python -m pip install -U setuptools

    4. python -m pip install pyinstaller

    5. unzip pc-nrfutil-1.5.0 and cd to it

    6. python setup.py install

    7. pyinstaller nrfutil.spec

    running as admin "nrfutil --help" but gets:

    File "C:\Python27\lib\site-packages\pc_ble_driver_py-0.8.0-py2.7.egg\pc_ble_driver_py\config.py", line 48, in sd_api_ver_get raise RuntimeError('Connectivity IC identifier conn_ic_id is not set') RuntimeError: Connectivity IC identifier conn_ic_id is not set

    I have already run:

    nrfjprog -f NRF52 –-chiperase --program dfu_test_softdevice_bootloader_s132.hex --verify

Reply
  • Thanks! yes Im running cmd.exe as administrator.

    I installed nrfutil v1.5.0 by the following as admin:

    1. install Python 2.7.12

    2. python -m pip install --upgrade pip

    3. python -m pip install -U setuptools

    4. python -m pip install pyinstaller

    5. unzip pc-nrfutil-1.5.0 and cd to it

    6. python setup.py install

    7. pyinstaller nrfutil.spec

    running as admin "nrfutil --help" but gets:

    File "C:\Python27\lib\site-packages\pc_ble_driver_py-0.8.0-py2.7.egg\pc_ble_driver_py\config.py", line 48, in sd_api_ver_get raise RuntimeError('Connectivity IC identifier conn_ic_id is not set') RuntimeError: Connectivity IC identifier conn_ic_id is not set

    I have already run:

    nrfjprog -f NRF52 –-chiperase --program dfu_test_softdevice_bootloader_s132.hex --verify

Children
No Data
Related