Custom Game Boy Cart Speeds Up Development

These days, it is easy enough to get a flash cart for your Game Boy that makes it easy to run code — yours or otherwise — on it, but they aren’t necessarily ideal for actual development. The process of shuttling new code over to the cart via an SD card isn’t bad if you’re doing it once, but it gets very annoying if you’re trying to make rapid incremental changes.

Which is specifically what [MrFrenchLame] was looking to improve on with his development cart. Rather than using a SD card to move over ROMs, the cart features a small bootloader that establishes communication with the computer over the Game Boy’s link port. The new code goes right into the cart’s RAM, where it can be immediately executed without having to write it out to flash. When you want to load new code, just press a button on the cart, and the whole thing starts over fresh. The upload routine can even be worked into your IDE to streamline the process.

This lack of permanence makes the cart a poor choice for actually playing games since everything goes poof when the power goes out. Plus, it only has 32K of RAM to work with, and can’t really do anything without being tethered to a computer. But it’s a fantastic solution if you’re looking to test things out quickly.

That said, there is one pretty major problem with this project: it requires your development computer to have a physical parallel port, which is a tall order in 2026. [MrFrenchLame] mentions this could likely be addressed by pulling in knowledge from some of the modern DIY flash carts we’ve seen recently, but hasn’t had time to tackle it yet. Maybe you could lend a hand?

15 thoughts on “Custom Game Boy Cart Speeds Up Development”

  1. There are many was to skin a cat. Daid’s Spidercart above is an option. There’s a similar project, Crococart, that also has a RP Pico and could probably do a similar job over USB.

    If we’re keeping with the spirit of the original project: the first obvious upgrade is to replace the LPT port with your favorite brand of USB capable microcontroller board like Arduino or RP Pico.

    Then I would add reset sequencing and external chip select control. Might add a 74hcxxx OR chip for gating. Pin header up top for external control through the same microcontroller. Have series resistors connected to the switch so the switch can control the chip select independently which can also be overridden through the pin header. 100k pullups, 10k resistors for the switch and then low impedance for the external control.

    This way the microcontroller can reset, wait for the bootloader to pull data from the link port and then redet again if needed.

    Finally, I’d make sure that any games I prototyped using this cartridge had a serial interrupt and a small bootloader to allow a quick warm reboot, at least as long as the game didn’t crash.

  2. I wonder how long before the microcontroller sdr wireless capabilities will be leveraged for something like this, to upload the ROMs via WiFi or a pair of them having a wireless serial link, with one plugging in to a USB port appearing to the computer like a mass storage device.

    1. There’s a moderation queue, and comments can be placed back in it even after appearing temporarily if they’re reported (YAY THE REPORT BUTTON IS BACK)

      There’s no point in complaining about it – if your comment isn’t awful it’ll be back. If it is awful it will stay gone and good riddance.

  3. Reminds me of my Interton VC4000 development environment. It consists of a Multicart with a ROM socket, but instead of the ROM, I insert an EPROM simulator, which has 64k of RAM (of which I only use 4 most of the time, but I do use it to simulate other EPROMs on other machines so that doesn’t all go to waste) and a Centronics port. My development machine is currently a 266 MHz Pentium 2 laptop which of course has a parallel port. And Notepad2 provides some syntax highlighting (because 2650 Assembly is VERY niche).
    So I make changes to my code, save the file, Alt-Tab over to the DOS console, hit F3 (to repeat last command) and Enter, which compiles the code and transfers it over the parallel port, all of which takes less than a quarter of a second, then I hit reset on the console and see the result. So the cycle time can be as low as 2 seconds (because my fleshy parts are a bit slow to move).

    1. I was too lazy to fire up Google Trad on your pages, but I really did like your little museum! I wish I had kept all my machines like you, only left are a IIGS and a Mac+. I got rid of the ZX81, Canon X07, Apple IIe clone, Atari 520ST… Shame on me. I did a better job preserving my Zaurus pdas…

  4. this is one of my favorite things about the pico board too…the bootloader firmware is just so easy to work with. my preferred mode for development is to upload my project to RAM. then after the next reboot (i’ve been using the WDT for this, give it ten seconds to find out if it succeeded or not), it waits for the next program. no plug/unplug, no ‘hold down a button while plugging it in’ or anything like that.

    1. In fact on the Ziegler site back in the days, I saw a project, software only, to run snippets of code (maybe basic? GBBASIC?) in the RAM by the help of a GameLink transfert. It gave me the idea of doing the opposite using my diy RAM cart.
      It’s a very old hack, now outdated, but dead simple and cheap. When I need to upgrade to more memory, I will certainly go the PICO road, but before I will play with some MBC5 for the fun of doing a DevCart2M.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.