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

Power Profiler Kit is not detected

Hello I have this error:

Checking installed packages
pyside:          1.2.4
pyqtgraph:       0.10.0
numpy:           1.12.1
pynrfjprog:      9.0.0
Warning: The software is tested with PyQtGraph 0.9.10, and may not work with your version (0.10.0)
Warning: The software is tested with np 1.9.2, and may not work with your version (1.12.1)
Power Profiler Kit started, initializing...
Unable to connect to the PPK, check debugger connection and make sure pynrfjprog is up to date.

I did try to run on other PC and it works. So I'm sure HW switches and FW and everything shall be OK.

I read other threads other threads

And I have everything:

Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32

I did install MSVC 9.0 (2008) redistributable (vcredist_x86.exe)

I did run python_packages.bat.

I even try to reinstall python 2.7 freshly...

Any other hint???

Also can be the PPK code improved in error reporting? If there is more details what is wrong we could solve it faster...

  • Did you test Ole's comment in the post you linked to?

    Quote:

    All switches are in 'DK' position as described here?

    You are sure the PPK is correctly mounted on the DK (all pins align)?

    You can check if you have connection to the PPK chip through the debugger by for example running the command nrfjprog -r -f nrf52. Make sure that SB9 is cut on the DK so that the chip you 'see' is not the one on the DK.

    If the wrong firmware is running on the PPK chip (if you accidentally programmed it instead of the DK), you can reprogram the firmware by running the flash_ppk.py script inside the software folder.

  • Like I wrote before: the same board runs PPK with other PC. So it must be some conflict on PC side. But to respond to your questions: yes my switches are in DK, and yes command nrfjprog -r -f nrf52 works and returns Applying system reset.Run.. If I would ask user to check debugger+firmware I would probably told him to run RTT. RTT returns:

    0> CALIBRATED R1:490.303 R2:30.726 R3:1.834 Board ID 7877A888
     0> Refs VDD: 3000 HI: 3000 LO: 44270
    

    So it proves debugger and FW is working. But it was expected as it works on other PC. Segger on this PC seems to be installed and working. What else I can try??

  • So I did found the issue. My stupid company rules is that we need to install our development tools to special directory.

    Stupid Nordic code expects that everybody installs Segger into: C:\Program Files (x86)\SEGGER\JLink_V*

    If only at least the error reporting would do Nordic properly it would save me one step. If you go to ppk.py and change line 1002 from:

        except:
            print("Unable to connect to the PPK, check debugger connection and make sure pynrfjprog is up to date.")
    

    into:

        except Exception as exc:
            print(str(exc))
    

    Then you would get much more useful error info from true exceptions. In my case:

    Power Profiler Kit started, initializing...
    Could not locate a JLinkARM.dll in the default SEGGER installation path.
    

    Then if you install dll into:

    C:\Program Files (x86)\SEGGER\JLink_V612h\JLinkARM.dll
    

    it starts work...

    I'm crying that so great Power Profiling Kit is so killed by such a stupid python code. And on top of that written in archaic python 2.7 :(

  • Thank you for the feedback. I will forward it to the developers.

  • Sorry for writing this stupid code, and thank you very much for the feedback! The reason for hiding the raw exceptions in general was that often times they just cause more confusion. Will make sure to add in the helpful exceptions for the next release. Also yes, it should be python 3, but not all packages was supported before just recently

Related