Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

Raspberry Pi Pico Lecture 5 (2025): Protothreads and memory

2.9K views on YouTube

0:00 – Administrivia
2:20 – Overview of Protothreads
4:45 – What is a threading library good for?
14:00 – Looking at an example
18:00 – Adding a thread
27:00 – The symptom of failing to make a thread local variable static
29:40 – Demonstrating thread interaction via conditional yields
33:30 – Demonstrating thread interaction via semaphore
41:00 – Brief tangent on spinlocks, and the claim mechanism in the SDK
44:00 – Review of volatile, static, and const
45:35 – Demonstration of using the map file and debugger to find variables in memory

Spring, 2025 lectures from ECE 4760 (Digital Systems Design Using Microcontroller) at Cornell University.

Course site: https://ece4760.github.io
Hunter’s site: https://vanhunteradams.com