Skip to content

Instantly share code, notes, and snippets.

View esden's full-sized avatar

Piotr Esden-Tempski esden

View GitHub Profile
@esden
esden / bmp_tpwr_en.scr
Last active September 17, 2020 15:26
Small gdb script to enable Black Magic Probe Target Power 'tpwr'.
#!/usr/bin/env arm-none-eabi-gdb -nx -batch -x
# The Black Magic Probe has level shifter buffers on its frontend,
# this gdb script enables Black Magic Probe target power,
# this is needed if you are not providing reference voltage from your target.
# Do not run this script or enable target power if you have VREF connected.
# The BMP side TPWR is connected to the 3.3V regulator of the Black Magic Probe
# and it has no protections, so don't fry your target or Black Magic Probe by
# being hasty and not thinking about what you are doing. :D
@esden
esden / lisas2.h
Created April 22, 2018 22:46
Lisa/S V2.0 generated board file
/*
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
@esden
esden / icebreaker-bitsy.pcf
Created March 29, 2018 08:02
iCEBreaker-bitsy Yosys PinConstraintFile
# 12 MHz clock
set_io -nowarn CLK 35
# USB
set_io -nowarn USB_DP 43
set_io -nowarn USB_DN 42
set_io -nowarn UPB_DET 38
# LEDs and Button
set_io -nowarn BTN_N 10
<!--XSL style sheet to convert EESCHEMA XML Partlist Format to grouped TSV BOM Format
Copyright (C) 2014, Wolf Walter.
Copyright (C) 2013, Stefan Helmert.
GPL v2.
Functionality:
Generation of Digi-Key ordering system compatible BOM
How to use this is explained in eeschema.pdf chapter 14. You enter a command line into the
netlist exporter using a new (custom) tab in the netlist export dialog. The command is
* Lenovo W53 streaming, demo and everything laptop
* Dell 24" 1080p monutor as secondary monitor
* Logitech C920 face webcam
* Magewell HMDI to USB adapter for the Microscope camera
* AMScope trinocular simulfocal microscope
* AiHome HDMI Full HD microscope camera
* Sennhizer EW100 lapel microphone
* SYBA USB audio interface
@esden
esden / dma-dac.c
Created September 1, 2017 18:01
1Bitsy 1UP DMA-DAC test example code
/*
* This file is part of the libopencm3 project.
*
* Copyright (C) 2014 Ken Sarkies <ksarkies@internode.on.net>
* Copyright (C) 2017 Piotr Esden-Tempski <piotr@esden.net>
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
@esden
esden / commands.sh
Created June 21, 2017 20:34
Setting up a new project based on 1bitsy-locm3-template
# Clone the original template repository
git clone https://github.com/1Bitsy/1bitsy-locm3-template.git
# enter the newly cloned template
cd 1bitsy-locm3-template
# Clone and test compile the template repository
git submodule init
git submodule update
make
# Edit readme file and source code to reflect that it is your new project, you can use that time to remove the references to the template repository
subl/atom/vi README.md
@esden
esden / T962a_modlist.md
Last active January 11, 2020 08:20
T962a reflow oven modlist
  • remove masking tape from the inside of the oven and replace with kapton tape, get some nice wide 2 or 3 inch wide one for best results multiple widths for bosus points :D (do not forget to remove the tape under the front lip of the insulation aka. ruler tape)
  • make sure the earth lug of the power connector is connected to all parts of the oven casing (some paint might need to be scraped off from under some screws to allow for the bottom half of the oven to be connected)
  • flash UnifiedEngineering firmware onto the main controller board (works very nicely under linux) https://github.com/UnifiedEngineering/T-962-improvements/wiki
  • solder together and attach the improved thermocouple interface (optionally you can add two additional k type thermocouples to measure temperature inside the oven or on the pcb, they are not used for control but are only shown on the display and can be logged through the serial interface) https://github.com/UnifiedEngineering/T-962-improvements/wiki/Better-thermocouple-interface
@esden
esden / blackmagic_V1_6_release_notes.md
Last active April 22, 2017 00:48
Black Magic Probe V1.6 Firmware release notes.

We are happy to announce the release of V1.6 Black Magic Probe firmware.

In the past we were considering releases that were shipping on Black Magic Probe hardware as stable releases without official release notes. This is an attempt to put together most important changes that were happening between the different tagged revisions of the repository.

Black Magic V1.6

This version shipps on V2.1 Black Magic Probe hardware.

This version has been tested using the new bmp-test suite. The results of the tests can be found in the V1.6 release GitHub Issue.

@esden
esden / osx_readme.adoc
Last active October 1, 2015 19:38
Kicad DOC on Mac OS X

MacOS

If you are using homebrew you can use the following process to install the necessary dependencies and build the kicad documentation:

  • Install mactex distribution

  • Add /Library/TeX/texbin to your PATH environment variable

    export PATH=$PATH:/Library/TeX/texbin
  • Install homebrew dependencies