What you need to make a PSP homebrew application
Making a custom application for PSP requires three things: a development kit (usually the free PSPSDK), a programming language you already know or are willing to learn, and a PSP console running custom firmware. The PSPSDK is a collection of tools and libraries that let you write code on your computer and convert it into something the PSP can run. Most homebrew developers use C or C++, though some use Lua or Python through wrapper libraries.
Your PSP must have custom firmware installed before it can run homebrew. Stock firmware from Sony will reject unsigned code. Once custom firmware is on your console, you can copy your compiled application onto a memory stick and launch it directly from the PSP's menu, just like a commercial game.
The actual coding happens on your computer — Windows, Mac, or Linux all work. You write the source code in a text editor, compile it using the PSPSDK tools, and test it on your PSP or in an emulator. The entire process is free, though it does require patience to learn the toolchain and the PSP's specific hardware quirks.
Key Takeaways
- You need the PSPSDK (free), a C or C++ compiler, and a PSP running custom firmware to create and run homebrew applications.
- Development happens on your computer; you write code, compile it into a PSP-compatible file, and transfer it to your console via memory stick.
- Learning the PSP's graphics and input libraries takes time — most developers spend weeks on their first working application.
- Testing on real hardware is important because emulators do not always behave identically to actual PSP consoles.
Setting up the PSPSDK on your computer
The PSPSDK is a collection of compilers, libraries, and documentation maintained by the homebrew community. 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 instructions. On Mac and Linux, you typically download the source code and compile the SDK yourself, which takes 30 minutes to an hour depending on your machine.
After installation, you verify the setup works by opening a command prompt or terminal and typing psp-gcc --version. If you see a version number, the compiler is ready. If you see "command not found," the SDK path is not set correctly in your system environment variables — this is the most common setup mistake.
Once the SDK is working, you need a text editor and a way to compile your code. Many developers use Visual Studio Code with a build task, or they use a Makefile (a text file that tells the compiler what to do). The PSP community maintains example Makefiles in the PSPSDK documentation, so you can copy and modify one rather than writing from scratch.
Writing your first PSP application in C
PSP code starts with a header file that tells the console what your application is called, what version it is, and what permissions it needs. This header looks like this: you include the PSP libraries, define your app's metadata, and then write a main function. The PSP graphics library is called GU (Graphics Unit), and the input library reads button presses from the controller.
A minimal working application draws something on screen and responds to button input. For example, a program that displays "Hello World" and exits when you press the X button takes about 50 lines of code. Most of those lines are setup — initializing the graphics system, setting up the display buffer, and configuring the controller. The actual drawing and input logic is often just 10 or 15 lines.
The PSP's screen is 480 pixels wide and 272 pixels tall. Graphics are drawn to a buffer in memory, and then that buffer is displayed on screen. If you want to animate something, you redraw the buffer every frame — typically 60 times per second. This is different from some other platforms where you might draw once and the system handles updates automatically.
Compiling your code into a PSP executable
Once you have written your source code, you compile it using the Makefile. In a command prompt or terminal, you navigate to your project folder and type make. The compiler reads your C code, checks for errors, and produces a file with a .elf extension. This .elf file is not yet ready for the PSP — it needs to be converted into a .prx file (the actual PSP executable format).
The PSPSDK includes a tool called psp-fixup-imports and mksfo that handle this conversion. Most Makefiles do this automatically when you type make, so you end up with a folder structure like EBOOT.PBP — that's the final file your PSP can run. If compilation fails, the error message usually points to a specific line number in your code where something is wrong.
Common compilation errors include forgetting to include a library header, using a function that does not exist, or having a typo in a variable name. The compiler messages are usually clear enough to find the problem. Once compilation succeeds, you have a folder ready to copy to your PSP.
Transferring and testing your application on PSP
Your compiled application lives in a folder structure that the PSP expects: PSP/GAME/YOURAPPNAME/ with the EBOOT.PBP file inside. You connect your PSP to your computer via USB, put it in USB mode (hold R and turn it on), and copy this folder to the memory stick. Once copied, you disconnect the PSP, and your application appears in the Games menu on the console.
When you launch it, the PSP loads your code and runs it. If there is a crash or an error, you see a black screen or the application closes immediately. This is where testing becomes important — you need to know whether your code is actually running or whether something went wrong during startup. Many developers add debug output that prints to a file on the memory stick, so they can see what happened even if the app crashes.
Testing on a real PSP is different from testing in an emulator like PPSSPP. Emulators are faster and more forgiving, but they do not always match real hardware behavior exactly. Timing-sensitive code, memory access patterns, and graphics rendering can behave differently. Most experienced developers test on both.
Common libraries and what they do
The PSP has libraries for graphics (GU), sound (Audio), input (Ctrl), file access (IO), and networking (Net). The graphics library is the most complex — it handles 3D rendering, textures, and frame buffering. The input library is straightforward: you call a function to read the current button state, and it tells you which buttons are pressed.
For sound, you load WAV or ATRAC3 files and play them through the audio library. For file access, you use standard C file functions (fopen, fread, fwrite) with PSP-specific paths like ms0:/ for the memory stick. Networking lets you open sockets and communicate over Wi-Fi, though this is rarely used in simple homebrew.
Most first projects use only graphics, input, and maybe file access. Sound and networking are optional and add complexity. The PSP community maintains documentation and example code for each library, so you can see how to use them before writing your own code.
Debugging when your application does not work
When something goes wrong, the first step is to narrow down where the problem is. If your app crashes immediately, the issue is probably in initialization — graphics setup, memory allocation, or library loading. If it runs but behaves strangely, the problem is likely in your main loop or input handling.
The most useful debugging technique is writing status messages to a file. Your code can open a file on the memory stick, write text describing what it is doing, and close the file. When the app crashes, you read that file and see exactly how far it got before failing. This is more reliable than trying to display debug text on screen, because screen rendering can itself cause crashes.
Another approach is to test in an emulator first. PPSSPP is a PSP emulator that runs on Windows, Mac, and Linux. It is faster to iterate — you compile, run in the emulator, see the result, and modify your code without transferring files to a memory stick each time. Once your app works in the emulator, you test on real hardware to catch any differences.
Frequently Asked Questions
Do I need to know C or C++ before I start?
You should have some programming experience, but you do not need to be an expert. If you know Python, Java, or JavaScript, you can learn C syntax in a few weeks. The PSP-specific parts (graphics, input, memory management) take longer to understand than the language itself. Many developers learn both at the same time by building simple projects.
Can I use a different programming language like Python or Lua?
Yes, but with limitations. Lua and Python interpreters exist for PSP, but they are slower than native C code and have less access to hardware features. Most serious homebrew uses C or C++ because performance matters on older hardware. Scripting languages are useful for rapid prototyping or for games where speed is not critical.
What happens if my code has a memory leak or uses too much RAM?
The PSP has 32 MB of RAM total. If your code allocates memory and never frees it, you will eventually run out of space and the application will crash. The PSP does not have automatic garbage collection like Python or Java, so you must manually free memory when you are done with it. Learning to manage memory correctly is one of the harder parts of PSP development.
Can I distribute my homebrew application online?
Yes. The PSP homebrew community shares applications through sites like GitHub and dedicated homebrew repositories. There are no legal restrictions on distributing code you wrote, as long as you do not include copyrighted material (music, graphics, or code from commercial games). Many developers release their source code publicly so others can learn from it.
Is there a difference between developing for PSP-1000 and PSP-3000?
The hardware is mostly the same, but PSP-3000 has a different screen that can cause graphics glitches in some homebrew. Most applications work on all PSP models, but if you notice visual problems on one model and not another, it is usually a screen compatibility issue. Testing on both models is ideal, but not always possible.