Skip to content

Instantly share code, notes, and snippets.

Flashing PineTime with Black Magic Probe (based on ST-Link V2)

  • These notes are glued from other tutorials found.
  • I use mac OS Catalina, so some commands are relevant. However installing needed packages is simple on Linux dists.
  • Feel free to improve.

Converting STM32F103C8T6 to Black Magic Probe

  • hardware: STM32F103C8T6 + ST-Link V2 Mini STM8 (I have this one)
  • software:

Keybase proof

I hereby claim:

  • I am darnel on github.
  • I am darnel (https://keybase.io/darnel) on keybase.
  • I have a public key ASAqUmkCeua5iDoj54gQHtoP9cB9l4U5pxdpagn2A2_56Ao

To claim this, I am signing this object:

@darnel
darnel / oauth-token.sh
Last active November 23, 2015 10:22 — forked from jirutka/oauth-token.sh
#!/bin/bash
# vim: tabstop=4
GRANT_TYPE='client_credentials'
############### Functions ###############
parse_json() {
local input=$1
local attr=$2
@darnel
darnel / configure
Created January 15, 2015 05:19
PHP_OCI modified 'configure' script
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
#
#
# This configure script is free software; the Free Software Foundation
# gives unlimited permission to copy, distribute and modify it.
@darnel
darnel / Application.php
Created January 23, 2014 22:22
Application.php - fragment of entity using grid
<?php
namespace Cvut\Fit\Pririz\BaseBundle\Entity;
use Cvut\Fit\Pririz\BaseBundle\Entity\Codebook\Disability;
use Cvut\Fit\Pririz\BaseBundle\Entity\Address\PermanentAddress;
use Cvut\Fit\Pririz\BaseBundle\Entity\Address\CorrespondenceAddress;
use Doctrine\ORM\Mapping\JoinColumn;
use Doctrine\ORM\Mapping\ManyToMany;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;