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.

Beginners > devkitPro gives me a blank (white) screen!

#81570 - Kixdemp - Sun Apr 30, 2006 3:37 am

Hello everyone! :-D
OK, today I got devkitPro installed... Yay! :-D
But, when I compile the GBA example "xboo" and open the *.GBA file on VisualBoy Advance, it gives me a blank screen with a CPU usage ranging from 210 to 220 percent... I just use the make command in the folder with a Makefile and the XbooLoad folder...

Here's my dir structure (NOTE: I'm on Linux (FC5))

* devkitpro
**** devkitARM
******* arm-elf
******* bin
******* include
******* lib
******* libexec
**** libgba
******* include
******* lib

I have set the DEVKITPRO and DEVKITARM environment variables properly, and I even set a LIBGBA variable pointing to the corresponding folder... Anyone know if I did anything wrong? Thanks! ;-)
_________________
"My wealth has doubled since we last met."
-- RICH BOY WILTON, Pokemon Emerald

#81606 - wintermute - Sun Apr 30, 2006 4:23 pm

The xboo examples communicate with Xboo Communicator using an xboo cable - see http://www.devkitpro.org/downloads.shtml .

The mbv2 examples are for use with an mbv2 cable.

None of these will work in VBA.


You don't need to set LIBGBA if you're using the standard templates & makefiles.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#81636 - Kixdemp - Sun Apr 30, 2006 8:00 pm

Oh... How dumb... :-$
Anyways, how would a makefile for a regular devkitPro game look like? I've never used makefiles before... And even if I learn how to use them, that won't tell me what options to use for DKP... Do you know? Much thanks! ;-)
I'm off to a makefile tutorial! :-D
_________________
"My wealth has doubled since we last met."
-- RICH BOY WILTON, Pokemon Emerald

#81647 - Kixdemp - Sun Apr 30, 2006 9:22 pm

WOW.
I ran the PCXView sample, and it went like 700% usage! How can something as simple as displaying a picture take up so much CPU? :-S

[edit]
I edited the makefile so that it doesn't make a multiboot image, and it goes at 200%, but it;s still too much... :-S
[/edit]
_________________
"My wealth has doubled since we last met."
-- RICH BOY WILTON, Pokemon Emerald

#81648 - wintermute - Sun Apr 30, 2006 9:52 pm

Visualboy Advance doesn't report CPU usage. It reports how fast it's emulating in comparison to a real GBA.

You probably have it set to frameskip.
_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog

#81651 - Kixdemp - Sun Apr 30, 2006 10:18 pm

But, the 700% can run on a real GBA, or no?
And... Do you know how to run SGADE with the devkitPro? I can't compile the Boulder Bombers Advance example, it tells me that -mthumb-interwork isn't a valid option... Am I doing something wrong? Hmm... Should I set the GCC_DIR on the makefile to the path to gcc (/usr/bin), or the devkitPro bin directory (/home/kixdemp/progs/devkitpro/devkitARM/bin)? Thanks! ;-)
_________________
"My wealth has doubled since we last met."
-- RICH BOY WILTON, Pokemon Emerald