gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > Homebrew with the N-Card USB Port

#131374 - goruka - Thu Jun 14, 2007 7:44 pm

Hi! I've got a N-Card device:

http://nintendo-ds.dcemu.co.uk/review-n-card-16gbit-slot-1-2gb--65102.html

On the GBA slot, it has an adapter with an USB port. I want to use this port for homebrew development, for sending and receiving data. The chip inside is
a philips SP1581BD (which has open, detailed specs), so i figured i could make a serial-like driver to communicate with the PC.

However, i have no idea how to access this chip from my code. The BIOS of the flasher uses it to receive files like an usb stick, and they also let you use it as a mouse to control the PC mouse (??). In the specification, proving/initializing the device seems to be easy, but i have no idea where the registers are located.

What do you guys think is the best way to try to find where the device is mapped, and how can i reach the registers?

Cheers!

#131375 - KeithE - Thu Jun 14, 2007 8:06 pm

You can download mouse and joypad source code from neoflash - http://www.neoflash.com/download/MK5_USB-PAD&USB-MOUSE_usbplugin_source_v1.rar

That should help you.

#131383 - Diddl - Thu Jun 14, 2007 10:49 pm

it would be nice to use this USB with all slot 1 cartridges (DLDI).

#131385 - chuckstudios - Thu Jun 14, 2007 11:09 pm

Diddl wrote:
it would be nice to use this USB with all slot 1 cartridges (DLDI).


It doesn't use FAT, or at least it shouldn't, so it probably already works.

#131417 - Diddl - Fri Jun 15, 2007 9:45 am

chuckstudios wrote:

It doesn't use FAT, or at least it shouldn't, so it probably already works.


no it doesn't work.

you will need a udisk implementation for philips SP1581BD. then it is very simple to convert the block commands (block read/ blockwrite/block verify) into DLDI block commands.

#131428 - chuckstudios - Fri Jun 15, 2007 2:30 pm

Oh, I thought you meant the mouse and gamepad.