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

Python error in quick_start_demo.py nrfMesh SDK

I followed this : 

Connect the nRF5 boards to the USB ports and decide which one you want to use as a client and which one as a provisioner by noting down their 9-digit Segger IDs.
Execute the python script scripts/quick_start/quick_start_demo.py by specifying the Segger IDs for the provisioner and client boards as follows:
nrf5_sdk_for_mesh$ python scripts/quick_start/quick_start_demo.py


May i know how can I get the Segger Id of the Board?

I have python 2.7.1
I am getting the attached error on executing quick_start_demo.py

Parents
  • Hi.

    This script should be run from the nrf5_SDK_for_Mesh_v2.2.0_src folder, do not run this command from the nrf5_SDK_for_Mesh_v2.2.0_src\scripts\quick_start folder.

    Here is how i ran the script from the nrf5_SDK_for_Mesh_v2.2.0_src folder:

    C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src
    λ C:\Python27\python.exe scripts\quick_start\quick_start_demo.py -p 682266227
    Current directory: C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src
    nrfjprog -i -q
    
    Boards with nRF52832 or nRF52840 devices:
    (Board index : Segger ID)
    0 : 682266227
    1 : 683800421
    2 : 682021105
    
    # Enter board index you want to use as a Client [0, 1, 2] [Enter `s`: To skip]: 2
    
    # Erasing the device:  682266227
    nrfjprog --eraseall -s 682266227 -q
    
    # Erasing the device:  683800421
    nrfjprog --eraseall -s 683800421 -q
    
    # Erasing the device:  682021105
    nrfjprog --eraseall -s 682021105 -q
    # Programming hex
    nrfjprog --program C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src\bin\merged\ospace\examples\light_switch\provisioner\light_switch_provisioner_nrf52832_xxAA_s132_6.0.0_merged_sd.hex -s 682266227 -f NRF52 -q
    # Programming hex
    nrfjprog --program C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src\bin\merged\ospace\examples\light_switch\server\light_switch_server_nrf52840_xxAA_s140_6.0.0_merged_sd.hex -s 683800421 -f NRF52 -q
    # Programming hex
    nrfjprog --program C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src\bin\merged\ospace\examples\light_switch\client\light_switch_client_nrf52832_xxAA_s132_6.0.0_merged_sd.hex -s 682021105 -f NRF52 -q
    
    # Resetting the device:  682266227
    nrfjprog --reset -s 682266227 -q
    
    # Resetting the device:  683800421
    nrfjprog --reset -s 683800421 -q
    
    # Resetting the device:  682021105
    nrfjprog --reset -s 682021105 -q
    
    # Summary:
    Errors occurred: 0
     Provisioner ID: 682266227
          Client ID: 682021105
         Server IDs: 683800421

    The Segger ID can be read on the label located on the Segger chip:

    My ID on this development kit is 682266227

    - Andreas

Reply
  • Hi.

    This script should be run from the nrf5_SDK_for_Mesh_v2.2.0_src folder, do not run this command from the nrf5_SDK_for_Mesh_v2.2.0_src\scripts\quick_start folder.

    Here is how i ran the script from the nrf5_SDK_for_Mesh_v2.2.0_src folder:

    C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src
    λ C:\Python27\python.exe scripts\quick_start\quick_start_demo.py -p 682266227
    Current directory: C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src
    nrfjprog -i -q
    
    Boards with nRF52832 or nRF52840 devices:
    (Board index : Segger ID)
    0 : 682266227
    1 : 683800421
    2 : 682021105
    
    # Enter board index you want to use as a Client [0, 1, 2] [Enter `s`: To skip]: 2
    
    # Erasing the device:  682266227
    nrfjprog --eraseall -s 682266227 -q
    
    # Erasing the device:  683800421
    nrfjprog --eraseall -s 683800421 -q
    
    # Erasing the device:  682021105
    nrfjprog --eraseall -s 682021105 -q
    # Programming hex
    nrfjprog --program C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src\bin\merged\ospace\examples\light_switch\provisioner\light_switch_provisioner_nrf52832_xxAA_s132_6.0.0_merged_sd.hex -s 682266227 -f NRF52 -q
    # Programming hex
    nrfjprog --program C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src\bin\merged\ospace\examples\light_switch\server\light_switch_server_nrf52840_xxAA_s140_6.0.0_merged_sd.hex -s 683800421 -f NRF52 -q
    # Programming hex
    nrfjprog --program C:\NordicSemi\nrf5_SDK_for_Mesh_v2.2.0_src\bin\merged\ospace\examples\light_switch\client\light_switch_client_nrf52832_xxAA_s132_6.0.0_merged_sd.hex -s 682021105 -f NRF52 -q
    
    # Resetting the device:  682266227
    nrfjprog --reset -s 682266227 -q
    
    # Resetting the device:  683800421
    nrfjprog --reset -s 683800421 -q
    
    # Resetting the device:  682021105
    nrfjprog --reset -s 682021105 -q
    
    # Summary:
    Errors occurred: 0
     Provisioner ID: 682266227
          Client ID: 682021105
         Server IDs: 683800421

    The Segger ID can be read on the label located on the Segger chip:

    My ID on this development kit is 682266227

    - Andreas

Children
No Data
Related