Getting Started with CodeWarrior on GameCube

Discussion in 'Nintendo Game Development' started by b3ll, Nov 29, 2013.

  1. b3ll

    b3ll Member

    Joined:
    Dec 3, 2012
    Messages:
    7
    Likes Received:
    0
    Hey all,

    I've recently started working with the SDK for GameCube, however I haven't been getting super far as things go for running on the actual device.

    I've managed to get all the paths and such up and running, as well as compiling a elf, and then converting it to a dol (using makedol.exe) for running on my GameCube. I've tried testing the dol generated in Dolphin Emulator, however nothing ever prints to the console with OSReport().

    I'm assuming this is because main is never touched when running the elf directly (without the Dolphin debugger). Something crashes with "OSSetAlarm(): tick was less than zero. in "OSAlarm.c"" when just running the elf directy, however if I invoke the debugger, it seems to work fine and messages get printed to the console.

    FWIW I'm using a SD Gecko + Action Replay to launch the dols created from makedol.exe.

    Is there anything critical I'm missing here? Or does anyone have any samples I can try compiling to make sure my SDK is actually functional?

    Cheers

    ---------------------
    Edit: Fixed things! :D

    Turns out when building it needs to be building for release and not debug. Even though elf is the debug format for executables, I think the release target means production hardware, which trying to run Dolphin as debug hardware using the debug target might explain why it was exploding :p

    Also, once you have a dol, you need to run it from something like SWISS, and not simply from the action replay loader. Haven't figured out why yet, but regardless, it's super cool to have things running.
     
    Last edited: Dec 1, 2013
  2. b3ll

    b3ll Member

    Joined:
    Dec 3, 2012
    Messages:
    7
    Likes Received:
    0
    Oh whoops, messed up the title. If any of the mods could change the title to "Need Help Getting Started with CodeWarrior on GameCube" that'd be awesome!
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page