IRNAS / ppk2-api-python

Power Profiling Kit 2 unofficial python api.
http://irnas.eu
GNU General Public License v2.0
145 stars 37 forks source link

No operation of the DUT possible in ampere mode (without measurement) #42

Closed leostitzing closed 4 months ago

leostitzing commented 4 months ago

When I use the Power Profiler app from nrf Connect for Desktop and activate the Ampere mode (without starting a measurement), my DUT runs without any problems. If I try this with the ppk2-api-python, my DUT does not start up. It seems that a setting is missing when activating Ampere mode that allows the DUT to run even if a measurement is not started. Since I want to flash the DUT with the PPK2 connected, this function is very important.

wlgrd commented 4 months ago

That is because the official software sets an initial voltage, whereas this implementation does not. Please do <PPK2_API instance>.set_source_voltage(<source_in_millivolts>) before starting it in amperemeter mode as the API needs the voltage to do calculations.

leostitzing commented 4 months ago

Hi @wlgrd, thank you! Now it works like a charm.

wlgrd commented 4 months ago

Great =)