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

How to using nrfutil in OpenWRT to do the UART DFU to nRF52832

Hi,

I use OpenWRT and nRF52832 to develop a BLE gateway, the nRF52832 connected to OenWRT through UART. Now,we need the uart serial DFU of nRF52832, and I found that nrfutil can achieve this on Ubuntu platform.

So I think I can install the nrfutil to my OpenWrt board,to achieve serial DFU,and I try to use the pip3 install,but I got an error No matching distribution found for pc_ble_driver_py>=0.14.2 (from nrfutil), I already upgrade my pip3 to 20.0.2, python 3.7.6.

Could you please give me some suggestions?Thanks!

root@OpenWrt:/# python3 -m pip install nrfutil --default-timeout=100
Collecting nrfutil
  Downloading nrfutil-6.1.0.tar.gz (842 kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 842 kB 212 kB/s 
Collecting click
  Downloading click-7.1.1-py2.py3-none-any.whl (82 kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 82 kB 113 kB/s 
Collecting crcmod
  Downloading crcmod-1.7.tar.gz (89 kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 89 kB 199 kB/s 
Collecting ecdsa
  Downloading ecdsa-0.15-py2.py3-none-any.whl (100 kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 100 kB 99 kB/s 
Collecting intelhex
  Downloading intelhex-2.2.1-py2.py3-none-any.whl (50 kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 50 kB 146 kB/s 
Collecting libusb1
  Downloading libusb1-1.7.1.tar.gz (78 kB)
     |鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅鈻堚枅| 78 kB 148 kB/s 
ERROR: Could not find a version that satisfies the requirement pc_ble_driver_py>=0.14.2 (from nrfutil) (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.8.0, 0.8.1, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4)
ERROR: No matching distribution found for pc_ble_driver_py>=0.14.2 (from nrfutil)
root@OpenWrt:/# 
root@OpenWrt:/# 
root@OpenWrt:/# 
root@OpenWrt:/# python3 -m pip -V
pip 20.0.2 from /usr/lib/python3.8/site-packages/pip (python 3.8)

Parents
  • Hi,

    It seems you need to install pc-ble-driver-py manually, not via pip, since it is not distributed for your ARM platform. This also means that you must build the pc-ble-driver binary for the target CPU on the OpenWrt device. We do not have any cross compiler configuration for the pc-ble-driver so it may be a bit of work, but you can find instructions for building the pc-ble-driver here. The pc-ble-driver-py repo is here.

Reply
  • Hi,

    It seems you need to install pc-ble-driver-py manually, not via pip, since it is not distributed for your ARM platform. This also means that you must build the pc-ble-driver binary for the target CPU on the OpenWrt device. We do not have any cross compiler configuration for the pc-ble-driver so it may be a bit of work, but you can find instructions for building the pc-ble-driver here. The pc-ble-driver-py repo is here.

Children
No Data
Related