Hacking GBA Multiboot via PC

Knechtus

New Member
OP
Newbie
Joined
Jan 19, 2010
Messages
2
Trophies
0
XP
1
Country
Australia
Hello,
I am using the VHAM to develop some code for the Gameboy Advance. There is an option to debug the code with the GDB insight.
Is there any schematic for an upload-cable (like XBOO) that connects to the PC via serial port and to the GBA via the user port? The cable should be to upload the gba-file to the GBA in order to debug it without having to put it on the supercard each time.
Or perhaps someone has some documentation on the user port and multiboot so that I can construct an inteligent USB cable with a microcontroller? I would share the code and schematic to the community, because I have seen that there is demand for a USB solution.

Thank you very much.
Best regards
K.
 

alphamule

Well-Known Member
Member
Joined
Oct 24, 2011
Messages
429
Trophies
0
XP
184
Country
United States
The monster of an adapter is funny when in theory you can use an small microcontroller with builtin USB interface much like what the EZFA uses. Has anyone made a schematic of them? There are now PIC18F chips that have USB and are in a DIP20 package. That's accessible to even most beginner's soldering skills. Soldering a 20-pin DIP socket is easy compared to directly soldering SOIC's or BGA's. ;) The firmware for the PIC would legally have to be our own, anyways, so we might as well use a recent chip. It is also more likely to be available longer.

http://www.flashrom....ted_programmers I'm looking at that program at the moment. It seems to have support for tons of different chips. Adding support for GBA cables shouldn't be too hard?

https://www.microchi...ctSelector.html
1) Select USB
2) Reduce pin count to 20

Basically, here's how the firmware on the PIC:
1) Multiboot section - code sent to GBA on boot
2) Initialization section - sends multiboot code to GBA, sets up buffers, waits on USB driver, etc.
3) Library section - code for handling buffers, converting protocols, and so on.
4) Main loops - code that runs when in specific modes
5) Firmware updater - just allows us to rewrite the rest of the firmware with updates over USB - much like the short section in custom DS firmwares to prevent bricking.
You don't want it too complicated. The simpler the design, the better.
 

alphamule

Well-Known Member
Member
Joined
Oct 24, 2011
Messages
429
Trophies
0
XP
184
Country
United States
Yeah, already seen that. Where is the schematic? All I see is software. No board layouts in that file. :/

"my Arduino prototype board and now have it running on a bare atmega168"
Overkill by like $100. :P Well, to be fair it's not that bad (was a joke). But my point was not to use a prototyping board. Just a homemade adapter...

I have Arduino stuff as well. A PIC18F13J50 Oops and wrong one anyways! PIC18F14K50 and atmega168-20pu are both pretty cheap. They are both capable of this job but the PIC has no need for 2nd chip to do USB support. The 32-pin devices from Atmel have USB. I researched the smallest number of pins for microcontrollers with builtin USB months ago for an unrelated project. BTW, avoid the PIC16F1455 since it's kind of hard to find. It's 16 pins, though. "Status: Future Product" according to website. Hmm, I guess that's why!

If I was going to be using premade boards, I'd probably consider the Atmel simply because it has more I/O pins, though.
Compare:
http://microcontroll...&page=1&sort=4a
http://microcontroll...&page=1&sort=4a
Prices are about the same and the size of the smallest board isn't too different. For mass production, the number of chips is more important than if the one chip has 50% more pins. Doubling the number or not allowing for smaller package types would be different, though. We're not talking about mass producing a board for some old game system anyways, heh.

Pretty small board, here. There is a 3rd revision.
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,405
Country
United Kingdom
DanTheManMS already linked up one of the sites, I linked up a bunch more http://gbatemp.net/topic/310689-gbatemp-thoughts-and-links-07oct2011/
Specifically http://nocash.emubase.de/gbatek.htm#auxxboopctogbamultibootcable might be of interest.

Many years ago there was a version of VBA (a game running/hacking emulator more than programming really) called VBAlink real (not to be confused with regular VBAlink) that could interface with such things but the hardware side of things was lost as far as I can tell.

On a different note thanks for the link snikerz - I had not seen that one.

Edit- did not see the date. Oh well.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    No you're a......wut. Wanna get hjgh?
  • K3Nv2 @ K3Nv2:
    Crazy people actually spend $50 on that stuff
  • BigOnYa @ BigOnYa:
    Towelie runs my farm, he's awesome.
  • SylverReZ @ SylverReZ:
    @K3Nv2, Polly is still around from what I've heard.
  • K3Nv2 @ K3Nv2:
    @SylverReZ, is Pollys alt I knew it
  • BigOnYa @ BigOnYa:
    Yea I see him every once whi!e , incognito
  • SylverReZ @ SylverReZ:
    @K3Nv2, I'm not him. Keep looking.
    +1
  • K3Nv2 @ K3Nv2:
    Still don't know why he left unless someone really hurt his feelings
  • K3Nv2 @ K3Nv2:
    Don't know why people get so emotional online just get over it ffs
    +2
  • BigOnYa @ BigOnYa:
    He was the ass of gbatemp, everyone knocked on him, I honestly felt bad, even though I was guilty myself, but he egged it all on himself,
  • BigOnYa @ BigOnYa:
    But he still here, but under dif name, he pm me sometimes still even.
  • K3Nv2 @ K3Nv2:
    It's like they think we'll be in their bed pissing on it the next day
  • BigOnYa @ BigOnYa:
    I feel like gbatemp should make t-shirts or memorabilia to remember the lost ones. I bet the Polly shirts would sell out quick.
  • K3Nv2 @ K3Nv2:
    Nah that could actually bring lawsuits
  • K3Nv2 @ K3Nv2:
    Tempsuits
  • BigOnYa @ BigOnYa:
    PollySuits
  • BigOnYa @ BigOnYa:
    Your correct, Somebody would be guilty and there would be riots, then they storm the gbatemp capitol,
  • K3Nv2 @ K3Nv2:
    Online or not there are still certain rights that judges would have no issue handing out a warrant over
  • K3Nv2 @ K3Nv2:
    Just look at Kim dotcom
  • BigOnYa @ BigOnYa:
    Honestly I'm scared to, from you, but ok, lemme turn on vpn, virtual machine, private browser first
  • K3Nv2 @ K3Nv2:
    Remember that Alexa robot I gifted you
  • K3Nv2 @ K3Nv2:
    And that laptop Webcam you never tapped up
  • BigOnYa @ BigOnYa:
    That robot is here somewhere, I hear it moving around at night, but I haven't seen it for months.
  • BigOnYa @ BigOnYa:
    Oh that laptop I give to ancientboi, so you been watching him for months, and he's been watching you
  • K3Nv2 @ K3Nv2:
    Oh good more than enough material for the fbi
    +1
    K3Nv2 @ K3Nv2: Oh good more than enough material for the fbi +1