Nintendo DS Homebrew: Tools of the Trade

Monday, July 23rd, 2007

How the heck do you do this?

There are few things more essential to the budding homebrew developer than their development environment. As we’re just starting out, we have yet to even get our environment together. As such our first task should be to gather our tools and get ready to install.

There are two very important packages every homebrew developer should be aware of.

The first of these two is a package called devkitARM. DevkitARM is a full compiler toolchain for the ARM chipset on which all Nintendo DS games run.

Why do you need a toolchain?

Because executables differ from platform to platform. If you just take your home Visual Studio install and compile a “hello world” application, it will compile for your host operating system and architecture. Unfortunately the set of instructions that your (likely intel) CPU and the instructions that the Nintendo DS’s ARM CPUs understand are not very similar at all. As such you need a set of tools which can create executables for your target platform.

Getting devkitARM.

DevkitARM provides just those tools, as well as an additional set of tools which should make your homebrew development that much more fun.

Now that you’re excited to get those files, devkitARM can be found at the following addreses:

For windows, you’ll want the devkitPro updater, which is a full installer for windows, and will get you up and running with minimal work.
Download the devkitProUpdater for Windows from Sourceforge.

For Linux or Mac OSX, you’ll want to grab the binaries for devkitARM at the following address:

(There are windows binaries as well, but windows users should just use the super spiffy auto updater.. it’s much easier.)
Download the devkitARM binary archive from Sourceforge

Now that your programming arsenal has increased by one cool package, it’s time to get your Nintendo DS development library.

Getting libnds.

The only library you should concern yourself with at this point is libnds. Libnds began as a series of useful #define statements to make Nintendo DS development a bit easier. Over time it evolved into a full development library with support for most of the functionality of the Nintendo DS. Through libnds, the enterprising developer even has support for 3d through a series of functions which look incredibly similar to OpenGL.

If you’re running Linux or Mac OSX you can get the library here:
Download the libnds source archive from Sourceforge

If you’re running Windows, don’t fret, the auto updater will fetch libnds for you!

Example code anyone?

The final archive I would suggest everybody have on hand is the latest copy of the nds examples. This archive contains a series of example code showing most of the implemented functionality within libnds.

As above, Linux and OSX users use the below URL. Windows programmers should use the auto updater to get these files.
Download the Nintendo DS example code from Sourceforge

Tune in later for information on how to turn these archives into a full fledged development environment!

So you want to make Nintendo DS Homebrew…

Tuesday, July 10th, 2007

If you’re like me, and you’re new to the Nintendo DS scene, the first thing you’ll notice is that you have a long road ahead of you before you can call yourself an expert homebrew developer.You’ve probably scoured message boards, websites, IRC channels, and source code soaking up as much information as you could so you could be somewhat ready to begin developing.

Well you’re ready to start… but how do you do that? Where are the tools? How do you install them?

Never fear folks, I’ve collected this information and will provide you with step by step instructions for getting your development information up and running!

Over the next few days I’ll be posting these how-to tutorials on my site which should explain every step you need in order to start developing for your Nintendo DS.

Topics which will be covered are as follows:

  1. Getting the tools of the trade.
    • devkitARM
    • libnds
  2. Setting up your development tool chain.
    • In Windows
    • In Linux
  3. Creating your first Nintendo DS development project