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
  • Hi.

    There could be problems in your PATH that might cause the issue, since you have multiple instances of different variables, and a odd number of  " also.

    I've tried to clean a bit up in your PATH. Could you first change you PATH to this:

    C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\CMake\bin;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\nodejs\;C:\Program Files\PuTTY\;C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;%PYTHON_HOME%";C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\GnuWin32\bin\make;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin\;C:\Program Files (x86)\Skype\Phone\;C:\Users\Shohidur\AppData\Local\Microsoft\WindowsApps;C:\Users\Shohidur\AppData\Roaming\npm;

    Then see if you get the -m and --mesh option from the command:

    nrfutilmesh dfu serial --help

    If you still dont get the -m and --mesh options I please follow these steps in this order:

    1. Delete all nrfutil files you have in :C\Python27

    2. Download this zip file called pc-nrfutil-mesh_dfu.zip.

    3. Unzip the zip file.

    4. Run the command: pip install --upgrade pip

    5. Run the command: pip install --upgrade setuptools

    6. Run the command: pip install -r requirements.txt

    7. Run the command: pip install http://sourceforge.net/projects/py2exe/files/latest/download?source=files

    8. Download and install VC compiler for Python.

    9. Run the command python setup.py install while you are inside the pc-nrfutil-mesh_dfu folder.

    10. Run the command python setup.py py2exe while you are inside the pc-nrfutil-mesh_dfu folder.

    - Andreas

  • Hello,
    Now i am having this error:

    command : nrfutil dfu serial -pkg dfu_test.zip -p COM6 -b 115200 -fc --mesh


    Upgrading target on COM6 with DFU package C:\nordic_semi\nrf5_SDK_for_Mesh_v2.1.1\dfu_test\dfu_test.zip. Flow control is enabled.
    [------------------------------------] 0%

    Failed to upgrade target. Error is: ord() expected string of length 1, but int found

    Possible causes:
    - bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
    - baud rate or flow control is not the same as in the target bootloader.
    - target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.

  • Thanks, finally it worked. The problem was with my DFU package. Which i created with different nrfutil. Now everything is good. Thanks for your kind support.

Related