Skip to content

Instantly share code, notes, and snippets.

View tstellanova's full-sized avatar
💭
growing excited

Todd Stellanova tstellanova

💭
growing excited
View GitHub Profile
@tstellanova
tstellanova / adsbx_armbian.md
Last active June 13, 2020 21:19
Installing adsbexchange feeder software on rock64 with Armbian buster

Install Armbian

  • I flashed armbian buster to the eMMC (64 GB)
  • Setup custom hostname
  • Enable avahi for hostname.local ssh access (using armbian-config System/Avahi)

Install readsb dependencies

Install some library dependencies

sudo apt-get install libad9361-dev libiio-dev librtlsdr-dev dh-systemd libfam0 lighttpd
@tstellanova
tstellanova / stm32f3xx_hal_serial_read_sample.rs
Created June 5, 2020 22:08
stm32f3xx_hal serial reading sample
let ( _tx, mut rx) = serial_port.split();
rprintln!("loopstart!");
loop {
let mut err_count = 0;
let mut block_count = 0;
let mut burst_count = 0;
loop {
let rc = rx.read();
@tstellanova
tstellanova / python_env_poetry_2020.md
Last active June 2, 2020 16:27
Setup python environment for debian 2020
  • Install pyenv
    • Install dependencies:
    sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev
    
    • Install pyenv:
    curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
    

export PATH="$HOME/.pyenv/bin:$PATH"

@tstellanova
tstellanova / atsame70.gdb
Created June 2, 2020 00:39
gdb configuration for atsame70
target extended-remote :3333
# print demangled symbols
set print asm-demangle on
# set backtrace limit to not have infinite backtrace loops
set backtrace limit 32
# detect unhandled exceptions, hard faults and panics
#break DefaultHandler
@tstellanova
tstellanova / atsame70_openocd.cfg
Created June 2, 2020 00:37
Sample openocd configuration file for Atmel SAME70 XPlained board
# Sample openocd configuration file for Atmel SAME70 XPlained board
source [find interface/cmsis-dap.cfg]
source [find target/atsamv.cfg]
@tstellanova
tstellanova / install_uptane_samples.md
Created April 28, 2020 18:02
Installing uptane reference samples

Ensure you're using python3

cd ref_uptane
python -m venv sandbox
source sandbox/bin/activate
pip3 install --upgrade pip
pip3 install wheel
pip3 install -r dev-requirements.txt
@tstellanova
tstellanova / install_uptane_samples.md
Created April 28, 2020 18:02
Installing uptane reference samples

Ensure you're using python3

cd ref_uptane
python -m venv sandbox
source sandbox/bin/activate
pip3 install --upgrade pip
pip3 install wheel
pip3 install -r dev-requirements.txt
@tstellanova
tstellanova / state_of_rust_fc_2020.md
Last active August 5, 2020 15:43
Current State of Embedded Rust for Flight Controllers

Introduction

A wide variety of widely-available flight controllers and associated robotics boards have been released in the past five years. These boards incorporate a careful selection of sensors and actuator outputs useful for robotics-- not just for flying vehicles, but also rovers and underwater vehicles. This living document analyzes briefly the compatibility of embedded Rust with these inexpensive and powerful boards.

Overall Utility Issues

General issues that impact the usefulness of embedded Rust with these kinds of boards:

  • No (or fragmented) DMA support. Some embedded HAL crates have DMA support already, but many do not. Almost none of the DMA APIs resemble each other. There is at least one effort underway to unify the DMA APIs
@tstellanova
tstellanova / ds_arduino_notes.md
Last active April 24, 2020 16:11
Building arduino apps for D6 fitness tracker 2020

By any means necessary, get a serial bootloader onto the D6

I had to use linux bluetoothctl tools to scan for the D6 device, get its address, use nrfutil to update via bluetooth. Look at options with nrfutil dfu ble --help to figure out how to specify device address etc.

Some of the notes from Fanoush were helpful, some were not.

I eventually installed this binary which allowed me to upload subsequent binaries using TTL-over-USB rather than BLE.

@tstellanova
tstellanova / ardu_bno080_spi_test.c
Last active April 20, 2020 02:00
Testing bno080 with SPI on arduino micro pro
/**
Testing BNO080 arduino library from Sparkfun
With CY-BNO08x breakout board on SPI
Wiring instructions
- Remove three pull-up resistors on SDA, SCL, ADO/MOSI
- PS1 must be closed
- PS0 must be closed (in this example we hardwire WAK always on)
Arduino Micro Pro pin wiring: