Live-coding Raspberry Pi Pico Emulator (Episode 2)

Опубликовано: 19 Февраль 2026
на канале: Wokwi
2,570
61

We'll continue hacking on the RP2040 chip emulator, digging into the datasheet and thickening our Cortex M0 implementation. It's gonna be challenging, fun and intense.

This week we'll have a stab at implementing UART, enabling us to print messages from our simulated code!

Previous stream:    • Live-coding Raspberry Pi Pico Emulator fro...  

For more details check out the Hackaday project: https://hackaday.io/project/177082-ra...

Project repo: https://github.com/wokwi/rp2040js
Wokwi Arduino simulator: https://wokwi.com

00:00 Getting started
02:11 TypeScript and Web Assembly
06:34 Quick recap of Blink
08:26 Getting Started with UART peripheral
11:09 The UART registers
12:35 hello_uart source code and disassembly
18:22 Preparing to simulate hello_uart
21:46 Load Register (literal)
52:29 Load Register (immediate)
59:03 TST instruction and APSR
01:20:13 Implementing flags for LSLS and MOVS
01:34:11 Conditional Branches (e.g. BNE.N)
01:53:58 UARTFR and CPU Read Hooks
02:01:34 Load register signed half word (LDRSH)
02:10:38 Compare Immediate (CMP)
02:38:08 Compare Register (CMP)
02:42:45 Summary
02:45:24 What's next?