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

pc_ble_driver_py.exceptions.NordicSemiException: No ping response after opening COM port

Hi, 

I was trying to run dfu mesh example according to this. I attempted quite few times but every time having an error at step 11.

infocenter.nordicsemi.com/index.jsp

Here is my environment details:

OS: windows 10

nrfutil version: 3.5.1

mesh SDK: Mesh_v2.1.1_src

Board : nrf52832 

SDK version: 15

SoftDeive s132_6.0.0

step 1: Creating my own private key 

 nrfutil.exe keys generate private.pem

Step2: Generated respective public key in hex format

nrfutil.exe keys display --key pk format code .\private.pem --out_file dfu_public_key.c

step 3: Added this key in the end of  "bootloader_config_default.json" file.

Step 4: Creating own signed image  package for dfu

nrfutil.exe pkg generate --hw-version 52 --application-version 4 --sd-req 0x00A8 --application C:\nordic_semi\nrf5_SDK_for_Mesh_v2.
1.1\bin\blinky\blinky_nrf52832_xxAA_s132_6.0.0.hex --key-file .\private.pem secure_dfu_mesh.zip

Step 5:  Generating device page with provided script as follow

python .\device_page_generator.py  -d nrf52832_xxAA -sd "s132_6.0.0"

Step 6:  flashing soft device:

nrfjprog --program C:\nordic_semi\nrf5_SDK_for_Mesh_v2.1.1\bin\softdevice\s132_nrf52_6.0.0_softdevice.hex --chiperase

step 7: Flash the serial bootloader on all devices:

nrfjprog --program C:\nordic_semi\nrf5_SDK_for_Mesh_v2.1.1\bin\bootloader\gccarmemb\mesh_bootloader_serial_gccarmemb_nrf52832_xxAA.hex

step 8: flashing application:

nrfjprog --program C:\nordic_semi\nrf5_SDK_for_Mesh_v2.1.1\examples\dfu\build\dfu_nrf52832_xxAA_s132_6.0.0_Debug\dfu_nrf52832_xxAA_s13
2_6.0.0.hex

Step 9: Flashing device page:

nrfjprog --program C:\nordic_semi\nrf5_SDK_for_Mesh_v2.1.1\tools\dfu\bin\device_page_nrf52832_xxAA_s132_6.0.0.hex

Step 10: Resetting 

nrfjprog --reset

Step 11: Problematic one(Transfer the DFU archive over serial with nrfutil) 

 nrfutil.exe dfu serial -pkg .\secure_dfu_mesh.zip -p COM15 -b 1200

 I have problem only on step 11 

Parents Reply Children
  • I installed nrfutil version 0.3.0 but still can not see other options as you were pointing out. Below is my installation procedure:

    Step 1: I installed latest version (nrfutil version 3.5.1) :

    pip install nrfutil

    Step2: update pip by following command:

    python -m pip install --upgrade pip

    Step3: moving nrfutil and nrfutil-script from installed folder to desktop

    Step4: Manually Downloading zip file(pc-nrfutil-0.3.0.zip) for version and unzipping it under "C:\Python27\pc-nrfutil-0.3.0"

    Step5: Executing all pre-requisites commands from directory "C:\Python27\pc-nrfutil-0.3.0"

    Step6: navigating to "C:\Python27\pc-nrfutil-0.3.0"

    Step7: 

    python setup.py install
    python setup.py py2exe

    Step8: Renaming nrfutil to nrfutilmesh and nrfutil-script to nrfutilmesh-script

    Step9: Finally moving nrfutil and nrfutilmesh-script back to installed directory
  • Hi.

    Do you still get the error Error: no such option: --mesh when you use the command:

    nrfutilmesh dfu serial -pkg dfu_test.zip -p <YOUR COM PORT> -b 115200 -fc --mesh

    Could you also post your output for the command:

    nrfutilmesh dfu serial --help:

    You should have the right options now. And are you using Windows or Ubuntu now?

     

    - Andreas

  • yes still i have Error: no such option: --mesh.

    Usage: nrfutilmesh dfu serial [OPTIONS]

    Program a device with bootloader that support serial DFU

    Options:
    -pkg, --package PATH DFU package filename [required]
    -p, --port TEXT Serial port COM Port to which the device is
    connected [required]
    -b, --baudrate INTEGER Desired baud rate 38400/96000/115200/230400/250000/
    460800/921600/1000000 (default: 38400). Note:
    Physical serial ports (e.g. COM1) typically do not
    support baud rates > 115200
    -fc, --flowcontrol Enable flow control, default: disabled
    --help Show this message and exit.

    I am using windows 10

     

  • Hi.

    I've been trying to reproduce your error, but I need a bit more time.

    In the mean time, could you perhaps try the command:

    nrfutilmesh dfu serial --help

    Using the nrfutilmesh I've installed in my Python2.7 folder? I've added two files to a zip libary, copy both files into your \Python27\Scripts folder.

    If you now get the options --mesh and -m, try the command:

    nrfutilmesh dfu serial -pkg dfu_test.zip -p <YOUR COM PORT> -b 115200 -fc --mesh

     

    nrfutilmesh.zip

     

    - Andreas

  • Hi,

    I copied your provided files under mentioned directory and replaced existing file. But still i am not getting other options as you mentioned. If you need further details for reproducing the problem, i can send you the screen shot of my details installation. 

Related