wokwi/rp2040js ? reverse-engineered prompt

Reverse engineered prompt

Build me a Raspberry Pi Pico emulator in TypeScript that I can run locally in the browser or with Node, something that behaves enough like a real RP2040 to boot simple firmware, blink LEDs, print UART output, and open a MicroPython or CircuitPython REPL.

I want to be able to load a UF2 or hex file, start the emulator with one command, and see the serial output in the terminal. If possible, add a GDB server on port 3333 so I can debug programs too. It should also support a simple filesystem image for MicroPython and CircuitPython so I can run multi file scripts, with a clear way to drop in a LittleFS or FAT image.

Please include a small demo project and a few examples I can run right away, like a blink sketch and a UART hello world. Make the setup easy to follow, and if you need to check current docs or firmware details online, go ahead and do that.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab