Live-coding Raspberry Pi Pico Emulator (Episode 3)

Опубликовано: 12 Апрель 2026
на канале: Wokwi
1,561
43

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're going to continue with the UART effort, and may also start to simulate the RP2040 bootrom.

Previous streams:    • Live Coding RP2040 Emulator  

Get weekly updates about the streams: https://pages.wokwi.com/rp2040

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:02 Quick recap
03:26 Solving the error from last week
08:56 Revisiting PC implementation
14:28 What instructions do we implement next?
20:22 Creating our own mini-assembler
22:37 Coding ADDS
40:30 Coding SUBS
51:14 Coding NEGS
1:04:10 Coding LDRB (immediate)
1:16:08 Coding ADCS
1:24:49 Coding UXTB
1:30:49 Defining constants for the UART registers
1:42:10 Time to test our UART code! Say "Hello UART!"
1:45:36 What's next?
2:01:10 How to build the Pi Pico bootrom code
2:04:16 Vector table, Stack pointer - warming up for bootrom!