
Make a Raspberry Pi Pico Act as a USB Serial Port With TinyUSB
Build a USB CDC serial device on the RP2040 with the Pico SDK and TinyUSB, from the stdio shortcut to descriptors, tusb_config.h and an echo loop.
Tag
362 posts

Build a USB CDC serial device on the RP2040 with the Pico SDK and TinyUSB, from the stdio shortcut to descriptors, tusb_config.h and an echo loop.

Learn what register_filesystem does, which file_system_type fields matter, how mount finds your type by name, and how to unregister it safely on module unload.

See why 0.1 and 0.2 have no exact binary form, how their stored values add to 0.30000000000000004, and what to do about it in C code with %.17g and hex output.

Build a small HTTP/1.1 server in C with POSIX sockets: parse the request line, send correct headers and Content-Length, and handle keep-alive and bad requests.

Sum, count, min and max across threads without a data race using the OpenMP reduction clause, including initial values, array sections and float ordering.
Why GDB shows optimized out and jumps lines at -O2, how GCC -Og and variable tracking keep more values, and what to do when you must debug the real build.

Benchmark any command with hyperfine 1.19: it runs warm-ups and many repetitions, reports mean, spread and range, and compares commands against each other.

See how FreeRTOS keeps software timers: one daemon task, a command queue and two sorted lists, and what that means for callback timing and order.

Open, create, read, write, append and seek files with CreateFileW, ReadFile and WriteFile, with share modes, dispositions and error codes explained.

Understand what a USB device tells the host when plugged in: device, configuration, interface and endpoint descriptors and the enumeration steps.

Build a tiny kernel filesystem that exposes one read-only file, using simple_fill_super, get_tree_nodev and simple_read_from_buffer from libfs on Linux 6.12.

Build a complete CHIP-8 interpreter in C11: memory, registers, the font, all 35 opcodes, timers, a 64x32 display buffer and a text-mode renderer to test it.