wlgrd / ppk_api Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
Hi, will you add PPK2 support to this API or you plan to create new API for PPK2?
New firmware has been released, with better voltage regulator control. Update to latest
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
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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.