What you need to make PSP homebrew
Making homebrew applications for the PSP requires three things: a PSP console that can run unsigned code, a computer with development tools installed, and source code or a framework to build from. The PSP must be running custom firmware — not the official Sony firmware — because Sony's system blocks any program that isn't digitally signed by the company. Custom firmware like CFW or ME (Modified Engine) versions allow your PSP to run .elf files and .pbp packages that you create yourself.
On your computer, you'll need the PSP SDK (Software Development Kit), which contains compilers, libraries, and tools for writing code that the PSP can understand. The most common choice is the open-source PSPSDK, which works on Windows, Mac, and Linux. You'll also need a text editor or IDE (integrated development environment) to write your code — many developers use free tools like Visual Studio Code or Code::Blocks. Finally, you need a way to transfer files from your computer to your PSP: either a USB cable, a memory card reader, or both.
Key Takeaways
- Your PSP must run custom firmware to execute homebrew; stock Sony firmware will reject unsigned programs.
- The PSPSDK is the standard free toolkit for PSP development and runs on Windows, Mac, and Linux.
- Most beginners start with C or C++ using existing frameworks like SDL or Lua rather than writing from scratch.
- Finished homebrew goes into the GAME folder on your PSP's memory card as a .pbp file or folder structure.
- Testing happens on your PSP itself; emulators exist but don't perfectly match real hardware behavior.
Installing the PSP SDK on your computer
The PSPSDK installation process differs by operating system. On Windows, the easiest route is to download a pre-built package like MinPSPW or use Windows Subsystem for Linux (WSL) with the Linux installation steps. On Mac and Linux, you typically clone the PSPSDK repository from GitHub and compile it yourself, which takes 30 minutes to an hour depending on your machine speed.
After installation, you'll have a folder containing the compiler (arm-none-eabi-gcc), libraries for graphics and sound, and example projects. You need to set an environment variable called PSPDEV that points to this folder so your computer knows where to find the tools. Most guides walk you through this step-by-step; skipping it is the most common reason builds fail with "command not found" errors.
Once the SDK is installed, test it by opening a terminal or command prompt, navigating to one of the example projects that came with it, and running make. If compilation succeeds without errors, your SDK is ready to use.
Choosing a programming language and framework
You can write PSP homebrew in C, C++, or Lua, though C and C++ are far more common because they're faster and have more libraries available. Most beginners don't write directly against the PSP's hardware; instead, they use a framework that handles graphics, sound, and input for them. SDL (Simple DirectMedia Layer) is the most popular choice because it's well-documented, widely used in other game development, and has many tutorials written for PSP specifically.
Lua is a lighter alternative if you want to write less code and focus on game logic rather than low-level details. Frameworks like LÖVE have been ported to PSP, letting you write Lua code that runs on the console. The trade-off is that Lua programs run slower than C, which matters on the PSP's limited hardware.
If you're new to programming entirely, start with a tutorial project in C using SDL rather than trying to learn both programming and PSP development at once. Most PSP homebrew communities have starter templates you can download and modify.
Building and compiling your first program
A PSP project needs a specific folder structure and a Makefile — a text file that tells the compiler how to build your code. The standard layout is: a src folder for your .c or .cpp files, a Makefile in the root, and a PARAM.SFO file that describes your program to the PSP. Rather than create these from scratch, download a template project from a PSP development site like ps2dev.org or use a starter kit that includes everything pre-configured.
Once you have a template, edit the source files in the src folder with your code, then open a terminal in your project folder and type make. The compiler reads your Makefile, translates your code into PSP machine language, and produces a EBOOT.PBP file — the executable your PSP can run. If there are errors, the compiler prints them to the terminal; fix the code and run make again.
The first time you compile, expect errors. They're usually typos, missing semicolons, or incorrect function names. Read the error messages carefully — they point to the line number and the problem. This cycle of edit-compile-fix is where most of the development time goes, even for experienced programmers.
Transferring and testing on your PSP
Once compilation succeeds, you have a folder containing EBOOT.PBP and other files. Connect your PSP to your computer via USB cable, put it in USB mode (hold R and press the power button, or go to Settings > USB Connection), and your PSP appears as a removable drive. Navigate to the PSP/GAME folder on the memory card and create a new folder with a name like MYGAME001. Copy your EBOOT.PBP and any other files your program needs into that folder.
Disconnect the USB cable, exit USB mode, and your program appears in the PSP's Game menu. Select it and press X to launch. If it crashes immediately, check the console's error log (some custom firmware versions show this on boot) or add debug output to your code that writes to a text file on the memory card. This feedback loop — compile, transfer, test, crash, fix code, repeat — is how you develop homebrew.
Testing on real hardware is essential because PSP emulators like PPSSPP don't perfectly replicate the actual console's behavior, especially for graphics, timing, and memory limits. A program that runs fine in an emulator might crash on a real PSP or run too slowly.
Common problems and how to fix them
The most frequent issue is the program launching but immediately crashing with no error message. This usually means a null pointer, an out-of-bounds array access, or running out of memory. Add print statements (using functions like printf) that write to a debug file, then read that file on your computer to see how far your code got before crashing. Narrow down which function is causing the problem, then fix the logic.
Graphics not appearing is often caused by not initializing the display correctly or not calling the draw function in the right order. Sound not playing usually means the audio file format is wrong (PSP homebrew typically uses WAV or OGG) or the file path is incorrect. Input not responding means your button-reading code isn't being called in your main loop, or you're checking for the wrong button constant.
Performance problems — the game running slowly or stuttering — happen because you're doing too much work per frame. The PSP can handle roughly 30 to 60 frames per second depending on what you're drawing. Profile your code to find which part is slowest, then optimize that section or reduce what you're drawing each frame.
Where to find code examples and documentation
The ps2dev.org community maintains the PSPSDK and hosts forums, tutorials, and example projects. The PSP Homebrew Development Kit documentation explains each library function. GitHub has hundreds of open-source PSP homebrew projects you can read and learn from — search for "PSP homebrew" and filter by C or Lua to find projects in your chosen language.
SDL documentation applies directly to PSP development since the PSP port of SDL follows the same API. If you find an SDL tutorial for general game development, most of it will work on PSP with only minor changes to how you initialize the display and handle the main loop.
When you get stuck, the PSP Homebrew subreddit and the ps2dev forums have active communities of developers who answer questions. Search for your specific error message first — someone has probably hit the same problem and posted a solution.
Frequently Asked Questions
Do I need to own a PSP to make homebrew for it?
Technically no — you can write and compile code on your computer without a PSP. However, you can't fully test your program without real hardware, since emulators don't perfectly match the actual console. Most developers own or borrow a PSP for testing.
Can I make homebrew for a PSP running the official Sony firmware?
No. Sony's firmware refuses to run unsigned programs. Your PSP must run custom firmware like CFW or ME to execute homebrew. Installing custom firmware requires a modified PSP or specific hardware exploits that vary by console model and firmware version.
What's the difference between a .pbp file and a .elf file?
A .elf file is the raw compiled program. A .pbp file is a package that contains the .elf plus metadata like your program's name and icon. The PSP's Game menu reads .pbp files, so that's what you put on your memory card. The build process automatically converts your .elf into a .pbp.
Can I publish my homebrew game and sell it?
You can distribute it for free without legal issues. Selling homebrew is legally murky because you're distributing code that runs on Sony hardware, and Sony's terms of service prohibit it. Most homebrew developers share their work free and open-source instead.
How much does it cost to start PSP homebrew development?
Zero if you already own a PSP and a computer. All the tools — PSPSDK, compilers, text editors — are free and open-source. The only potential cost is buying a PSP if you don't have one, which ranges from $50 to $200 depending on condition and model.