Skip to content

Instantly share code, notes, and snippets.

@btashton
btashton / jtag-with-ox64.md
Created November 2, 2022 03:53
BL808 Bring Up Notes

Pinouts

The pinout in the schematic is not correct. Instead it is:

GPIO Function
6 M0_JTAG_TMS
7 M0_JTAG_TDO
12 M0_JTAG_TCLK
13 M0_JTAG_TDI
@eddieh
eddieh / chroot-env-on-mac.org
Created July 28, 2021 19:43
chroot Environments on macOS (draft)

chroot Environments on macOS

This is a draft.

macOS doesn’t have many of the advanced Linux or UNIX features that have come about in the past 20 years. So getting a proper chroot environment up and running takes a little more work.

@oleksiiBobko
oleksiiBobko / tcp_server.c
Last active April 19, 2025 05:14
Simple socket server in C using threads (pthread library) Compiles on linux
/*
C socket server example, handles multiple clients using threads
Compile
gcc server.c -lpthread -o server
*/
#include<stdio.h>
#include<string.h> //strlen
#include<stdlib.h> //strlen
#include<sys/socket.h>