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

Power profiler: initialization failed, could not read calibration values.

Hi,

As given in the link:  http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.tools%2Fdita%2Ftools%2Fpower_profiler_kit%2FPPK_user_guide_Troubleshooting.html&cp=5_3_9   ,

I have installed all the packages as mentioned and also in nRFgostudio first I have programmed the application using ppk_110.hex and then programmed the required S132 soft device. second, I downloaded the code into it.

 I have configured and setup the PPK kit onto nrf52832 DK but when I run python.exe ppk.py, I get an error like this:  

1) How do I run it? how do  I solve the error?

2) When I connect PPK and DK via USB cable and run the script I get the GUI with plots but I am not sure whether the graph I am getting is only of PPK or of the code running in DK.Can you clarify this?

  • 1) Did you setup the PPK like mentioned here? It is correct that you are using Python 2.7.x.

    2) I am confused. In your first question, it seems you can not get the PPK running, whereas in your second question, you are getting the GUI with plots. This tells me that the PPK is up and running correctly. If you have setup everything correctly like mentioned in the link above, the graph you are getting is the power consumption of the code running on your dev kit.

    Kind Regards,

    Bjørn Kvaale

  • Yes, I have setup the PPK as mentioned.but it still shows me the error shown in the pic. I have followed the below steps:

    1)downloaded python 2.7.13 

    2) done all the setup with necessary python.bat packages.

    3)When only nrf52832 development kit was connected to the computer via usb cable, in nrf gostudio, inside the program application tab programmed the ppk_110.hex file.

    4)After that programmed the soft device on the DK and downloaded the code on it.

    5) After this mounted the PPK on the DK as shown in the links above.

    6)From cmd of the computer traversed in the folder where the ppk.py is stored and ran the command python.exe ppk.py after which it is showing me the error as shown in above picture.

    so when I was connecting only one USB cable as mentioned in the document I get the error as shown in the attachment.

    Now when I attach second USB cable to the PPK to connect to computer it runs properly but the results are not that I am expecting.

    My question is:

    a) Do we need two connections to the computer (one for PPK and second for DK)?

    b) if not, and if configured as per the guidelines given in the link earlier, I am still getting the error as shown in the picture what should be done to rectify it?

    Thanks

  • You do not want to program the ppk_110 hex file onto your nrf52832. I think it is easiest for you if you first attach the PPK to the DK, then attach a usb cable to the DK (and only the DK). Make sure that DUT select on the PPK is set to DK, Power select on the PPK is set to DK & the COM switch is set to EXT. By setting the COM switch to external, you are now programming the DK. Then, use nrf go studio to flash the softdevice and/or application you want to test the power consumption of to the dk.

    Then, switch the COM switch back to DK. This will then program the PPK. Then, follow step 3 & 4 in the links I gave you in the answer. This should hopefully fix things.

Related