Skip to content

Instantly share code, notes, and snippets.

View teburd's full-sized avatar

Tom Burdick teburd

View GitHub Profile
[bt] [DBG] hci_tx_thread: (0x20004014) Calling k_poll with 4 events
[bt] [DBG] process_events: (0x20004014) count 4
[bt] [DBG] process_events: (0x20004014) ev->state 0
[bt] [DBG] process_events: (0x20004014) ev->state 0
[bt] [DBG] process_events: (0x20004014) ev->state 0
[bt] [DBG] process_events: (0x20004014) ev->state 4
[bt] [DBG] bt_conn_process_tx: (0x20004014) conn 0x200040ec
[bt] [DBG] send_buf: (0x20004014) conn 0x200040ec buf 0x2001f4c0 len 27
[bt] [DBG] send_frag: (0x20004014) conn 0x200040ec buf 0x2001f4c0 len 27 flags 0x00
[bt] [DBG] bt_conn_notify_tx: (0x20004014) conn 0x200040ec
sudo mcumgr -ldebug -t 60 --conntype serial --connstring "dev=/dev/ttyACM0" image upload signed-motioncap2.bin
DEBU[2018-11-08 16:39:41.149] Using connection profile: name=unnamed type=serial connstring=dev=/dev/ttyACM0
DEBU[2018-11-08 16:39:41.149] {add-oic-listener} [transceiver.go:64] token=[]
DEBU[2018-11-08 16:39:41.149] {add-oic-listener} [transceiver.go:64] token=[]
0 / 393216 [--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0.00%DEBU[2018-11-08 16:39:41.149] {add-nmp-listener} [serial_sesn.go:217] seq=66
DEBU[2018-11-08 16:39:41.149] Encoded &{NmpBase:{hdr:{Op:2 Flags:0 Len:0 Group:1 Seq:66 Id:5}}} to:
00000000 a0 |.|
DEBU[2018-11-08 16:39:41.149] Encoded:
00000000 02 00 00 01 00 01 42 05 a0 |......B..|
DEBU[201
In file included from /home/tburdick/src/zephyr/ext/hal/nordic/nrfx/nrfx.h:36,
from /home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:35,
from ../src/pitch.c:23:
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:64:39: error: 'NRF_TIMERNRFX_TIMER3_INST_IDX' undeclared here (not in a function); did you mean 'NRFX_TIMER3_INST_IDX'?
.p_reg = NRFX_CONCAT_2(NRF_TIMER, id), \
^~~~~~~~~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/nrfx_common.h:85:37: note: in definition of macro 'NRFX_CONCAT_2_'
#define NRFX_CONCAT_2_(p1, p2) p1 ## p2
^~
/home/tburdick/src/zephyr/ext/hal/nordic/nrfx/drivers/include/nrfx_timer.h:64:25: note: in expansion of macro 'NRFX_CONCAT_2'
(gdb) break fault.c:_UsageFault:0
Breakpoint 1 at 0x42b4: file /home/tburdick/src/zephyr/arch/arm/core/fault.c, line 334.
(gdb) c
Continuing.
Breakpoint 1, _UsageFault (esf=esf@entry=0x20036200 <sys_work_q_stack+7992>)
at /home/tburdick/src/zephyr/arch/arm/core/fault.c:334
334 PR_EXC("***** USAGE FAULT *****\n");
(gdb) bt
#0 _UsageFault (esf=esf@entry=0x20036200 <sys_work_q_stack+7992>)
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "zephyr";
disableHardening=["all"];
buildInputs = [
cmake
ninja
gcc-arm-embedded
ncurses.dev
];
INFO 00:38:57 Updating topology for all endpoints that have changed
Exception (java.lang.RuntimeException) encountered during startup: Unable to gossip with any seeds
java.lang.RuntimeException: Unable to gossip with any seeds
at org.apache.cassandra.gms.Gossiper.doShadowRound(Gossiper.java:1357)
at org.apache.cassandra.service.StorageService.checkForEndpointCollision(StorageService.java:477)
at org.apache.cassandra.service.StorageService.prepareToJoin(StorageService.java:743)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:654)
at org.apache.cassandra.service.StorageService.initServer(StorageService.java:534)
at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:344)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:568)
Traceback (most recent call last):
File "plot.py", line 72, in update
sample = self.decoder.next(self.readtime - (time.time() - t0))
File "/home/tburdick/src/bos/ft232h_daq/decoder.py", line 47, in next
readable, _, _ = select.select([self.f], [], [], timeout)
AttributeError: 'function' object has no attribute 'select'
import sys
import csv
import select
import numpy as np
from numpy import *
import quaternion as quat
#QUATERNIONS = [quat.quaternion(0.999999998971134, -2.90833843472273e-05, -8.09302082679352e-06, 3.38584042287428e-05),
# quat.quaternion(0.240001876668282, 0.601447508933827, 0.16885365153494, -0.743066913242888),
@teburd
teburd / factory.rs
Created March 13, 2018 17:15
unconstraint lifetime
impl<'a> Factory for CqlFactory {
type Session = CqlSession<'a>;
fn session(&self) -> FactoryResult<CqlSession<'a>> {
let client = tryl!(self.pool.get());
Ok(CqlSession::new(&self.cfg, client))
}
}
@teburd
teburd / scylla.nix
Last active April 24, 2019 07:43
scylla.nix
with import <nixpkgs> {};
#{stdenv, fetchFromGitHub, python, ninja}:
stdenv.mkDerivation rec {
name = "scylla-${version}";
version = "2.1.0";
src = fetchgit {
url = "https://github.com/scylladb/scylla";