Menu

ESP32-P4 Runs GBA with Touch Controls and a 4.3-inch Screen (gpSP RISC-V JIT)
📰

ESP32-P4 Runs GBA with Touch Controls and a 4.3-inch Screen (gpSP RISC-V JIT)

#esp32#redditesp32#code#games#gpsp
Reading 0:00
15s threshold

I ported gpSP to the ESP32-P4 and wrote a RISC-V JIT backend for it. I posted a couple of earlier demos on r/emulation , but hadn't posted here yet.

RISC-V was what got me interested in the P4. I figured a JIT backend for a fairly general-purpose ISA could be useful on other RISC-V devices too. The clock is pretty decent, and the chip is only around US$5 at retail, so I wanted to try it in my own custom GBA.

I picked gpSP because it already had a JIT-based design and a reputation for being fast on very low-end hardware. That made it a good base for adding an RV32 backend.

The board in this video is an OSPTEK P4C5, running at 400 MHz with 32 MB PSRAM and a 4.3-inch 800x480 touchscreen. It runs directly on ESP-IDF and loads games from an SD card. The GBA port also runs on the ESP32-S31.

I started with a small SPI screen and a USB controller. Now the on-screen controls work for both games and menus, so you can pick a game, play it, save/load states and switch games without plugging in a controller.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.