Skip to content

Instantly share code, notes, and snippets.

View teburd's full-sized avatar

Tom Burdick teburd

View GitHub Profile
@teburd
teburd / main.c
Last active April 25, 2024 20:27
/*
* Copyright (c) 2023 Ian Morris
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include <stdlib.h>
#include <zephyr/device.h>
---
name: MIMXRT1062
manufacturer: ~
variants:
- name: MIMXRT1062CVJ5A
part: ~
cores:
- name: main
type: armv7em
core_access_options:
tburdick@zefire  ~/zephyr/zephyr   rtio_next  RUST_LOG=trace ~/src/probe-rs/target/debug/probe-rs-cli run --probe 1366:0101 --protocol=swd --chip=MIMXRT1062DVJ6A build/zephyr/zephyr.elf  1 ↵  10283  17:23:52
DEBUG probe_rs::config::registry > Searching registry for chip with name MIMXRT1062DVJ6A
DEBUG probe_rs::config::registry > Exact match for chip name: MIMXRT1062DVJ6A
TRACE probe_rs::probe::cmsisdap::tools > Attempting to open device matching 1366:0101
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 006 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 005 Device 001: ID 1d6b:0002
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 004 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
tburdick@zefire  ~/zephyr/zephyr   rtio_next  RUST_LOG=trace ~/src/probe-rs/target/debug/probe-rs-cli run --probe 1366:0101 --protocol=swd --chip=MIMXRT1062DVJ6A build/zephyr/zephyr.elf
DEBUG probe_rs::config::registry > Searching registry for chip with name MIMXRT1062DVJ6A
DEBUG probe_rs::config::registry > Exact match for chip name: MIMXRT1062DVJ6A
TRACE probe_rs::probe::cmsisdap::tools > Attempting to open device matching 1366:0101
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 006 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 005 Device 001: ID 1d6b:0002
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 004 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
DEBUG probe_rs::probe::cmsisdap::tools > Attempting to open 1366:0101 in CMSIS-DAP v1 mode
DEBUG probe_rs::probe::stlink::usb_interface > Acquired libusb context.
DEBUG jaylink > libusb 1.0.26.11724
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: true
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: true
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
bLength: 0x12,
bDescriptorType: 0x1,
tburdick@zefire  ~/src/probe-rs/target/debug   master ?  RUST_LOG=trace ./probe-rs-cli info --probe 1366:0101 --protocol=swd  INT(-2) ↵  10694  16:57:00
TRACE probe_rs::probe::cmsisdap::tools > Attempting to open device matching 1366:0101
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 006 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 005 Device 001: ID 1d6b:0002
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 004 Device 001: ID 1d6b:0003
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
TRACE probe_rs::probe::cmsisdap::tools > Trying device Bus 003 Device 001: ID 1d6b:0002
TRACE probe_rs::probe::cmsisdap::tools > Error opening: Access
+---/nix/store/22r3f9kqndzxlvsnw8ijg3icm4fryzdx-x86_64-unknown-linux-musl-stage-final-gcc-debug-9.3.0-lib
| +---/nix/store/478v47ic0hk6ijb7hh9jnl71ckmczxcg-musl-1.2.0-x86_64-unknown-linux-musl [...]
| +---/nix/store/9ikzxv6jgnl1zv1bsdqr87r84m70jn1i-musl-1.2.0-x86_64-unknown-linux-musl-dev
| | +---/nix/store/2jysm3dfsgby5sw5jgj43qjrb5v79ms9-bash-4.4-p23
| | | +---/nix/store/9df65igwjmf2wbw0gbrrgair6piqjgmi-glibc-2.31
@teburd
teburd / default.nix
Created December 10, 2020 17:08
libpq nix
{ pkgs ? import ../nixpkgs.nix {} }:
pkgs.callPackage({ stdenv, lib, fetchgit, openssl, zlib, perl, bison, flex, tzdata }:
stdenv.mkDerivation rec {
pname = "libpq";
version = "12.5";
src = fetchgit {
url = "https://git.postgresql.org/git/postgresql.git";
rev = "6bb1b38fa5388a4aa39ed9e56ef477f618fb28e1"; # REL_12_5
@teburd
teburd / default.nix
Last active December 4, 2020 00:08
{ pkgs ? import <nixpkgs> {
overlays = [
( self: super: {
libnats-c = super.libnats-c.override rec {
version = "2.3.0";
src = super.fetchFromGitHub {
owner = "nats-io";
repo = "nats.c";
rev = "refs/tags/v${version}";
[nix-shell:~/oes/openfmb.adapters/nix]$ env | grep CMAKE_
CMAKE_INCLUDE_PATH=/nix/store/p4651hzjlvghlwym1fq931cz26qdp2ir-openssl-1.1.1g-dev/include:/nix/store/wh5j5mw05klr3jp9vvdcr7p1rmw9jz5m-paho-mqtt-c-1.3.1/include:/nix/store/p4651hzjlvghlwym1fq931cz26qdp2ir-openssl-1.1.1g-dev/include:/nix/store/wh5j5mw05klr3jp9vvdcr7p1rmw9jz5m-paho-mqtt-c-1.3.1/include
CMAKE_PREFIX_PATH=/nix/store/r9djcvv9hh6cma006jxlcz3xljz7zck0-cmake-3.18.2:/nix/store/vxfscsxa34n8wrvhkpdm1027rd5n92jf-pkg-config-wrapper-0.29.2:/nix/store/qza56yd923g39sbnn6gn5xh3awrz4lfl-patchelf-0.12:/nix/store/8madhhcxhxlf0rrc5hdsk65l206r3cc6-gcc-wrapper-9.3.0:/nix/store/h770niqkf08ksgm0n6a271kc21w95b13-binutils-wrapper-2.31.1:/nix/store/p4651hzjlvghlwym1fq931cz26qdp2ir-openssl-1.1.1g-dev:/nix/store/wp81dnxgrpi4lgy20r82kfg9nwrmypkm-openssl-1.1.1g-bin:/nix/store/7figba9q8yrgz4gj9yhqgjri97h9snsb-openssl-1.1.1g:/nix/store/wh5j5mw05klr3jp9vvdcr7p1rmw9jz5m-paho-mqtt-c-1.3.1:/nix/store/r9djcvv9hh6cma006jxlcz3xljz7zck0-cmake-3.18.2:/nix/store/vxfscsxa34n8wrv