Giter Site home page Giter Site logo

ppk_api's People

Contributors

inductivekickback avatar wlgrd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

ppk_api's Issues

Average Result is always returned as 0

On running main.py (without any changes) with PPK and DUT connected, the average result is always returned as 0 followed by Nan errors. Below is the output for your reference:

image

When I connect the same PPK to Power Profiler App in nRF Connect, it's able to measure the current. So, it doesn't look like an issue with the PPK.

PPK2 API

Hi, will you add PPK2 support to this API or you plan to create new API for PPK2?

Segfault on Ubuntu 18.04 x64

Looks like there's an issue in libjlinkarm.so. This segfaults when ppk.measurement_readout_start() is called from main.py

Thread 7 "python3" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffed3df700 (LWP 14077)]
__memmove_avx_unaligned_erms ()
    at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:371
371	../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.
(gdb) bt
#0  __memmove_avx_unaligned_erms () at ../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:371
#1  0x00007ffff2763830 in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) ()
   from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#2  0x00007ffff2763f5c in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)
    () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3  0x00007ffff247e968 in ?? ()
   from /home/epoulsen/.local/lib/python3.6/site-packages/pynrfjprog/linux_64bit_so/libjlinkarm_nrf52_nrfjprogdll.so
#4  0x00007ffff27a3762 in std::ostream::flush() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5  0x00007ffff2476f60 in ?? ()
   from /home/epoulsen/.local/lib/python3.6/site-packages/pynrfjprog/linux_64bit_so/libjlinkarm_nrf52_nrfjprogdll.so
#6  0x00007ffff0dfc839 in ?? () from /opt/SEGGER/JLink/libjlinkarm.so
#7  0x00007ffff0dfcadb in ?? () from /opt/SEGGER/JLink/libjlinkarm.so
#8  0x00007ffff0dfcc8e in ?? () from /opt/SEGGER/JLink/libjlinkarm.so
#9  0x00007ffff0dd0108 in JLINKARM_IsConnected () from /opt/SEGGER/JLink/libjlinkarm.so
#10 0x00007ffff2471f14 in ?? ()
   from /home/epoulsen/.local/lib/python3.6/site-packages/pynrfjprog/linux_64bit_so/libjlinkarm_nrf52_nrfjprogdll.so
#11 0x00007ffff247580a in NRFJPROG_rtt_read ()
   from /home/epoulsen/.local/lib/python3.6/site-packages/pynrfjprog/linux_64bit_so/libjlinkarm_nrf52_nrfjprogdll.so
#12 0x00007ffff2a28ea2 in NRFJPROG_rtt_read ()
   from /home/epoulsen/.local/lib/python3.6/site-packages/pynrfjprog/linux_64bit_so/libnrfjprogdll.so
#13 0x00007ffff5969dae in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#14 0x00007ffff596971f in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6
#15 0x00007ffff5b7dba4 in _ctypes_callproc () from /usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so
#16 0x00007ffff5b7e223 in ?? () from /usr/lib/python3.6/lib-dynload/_ctypes.cpython-36m-x86_64-linux-gnu.so
#17 0x000000000059f9fc in _PyObject_FastCallKeywords ()
#18 0x0000000000511b0a in ?? ()
#19 0x00000000004f5277 in _PyEval_EvalFrameDefault ()
#20 0x00000000004f3338 in ?? ()
#21 0x0000000000510fb0 in ?? ()
#22 0x00000000005119bd in ?? ()
#23 0x00000000004f6070 in _PyEval_EvalFrameDefault ()
#24 0x0000000000510375 in _PyFunction_FastCallDict ()
#25 0x00000000005917a1 in ?? ()
#26 0x000000000059cf9e in PyObject_Call ()
#27 0x00000000004f6903 in _PyEval_EvalFrameDefault ()
#28 0x0000000000510c78 in ?? ()
#29 0x00000000005119bd in ?? ()
#30 0x00000000004f5277 in _PyEval_EvalFrameDefault ()
#31 0x0000000000510c78 in ?? ()
#32 0x00000000005119bd in ?? ()
#33 0x00000000004f5277 in _PyEval_EvalFrameDefault ()
#34 0x0000000000510375 in _PyFunction_FastCallDict ()
#35 0x00000000005917a1 in ?? ()
#36 0x000000000059cf9e in PyObject_Call ()
#37 0x00000000005dd542 in ?? ()
#38 0x00007ffff77cc6db in start_thread (arg=0x7fffed3df700) at pthread_create.c:463
#39 0x00007ffff7b0588f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.