Hi
I have downloaded recently the Mirko's SDK. Very nice tool.
I have commented the line in the compiler lib to make sure the examples can run on the emulator. I recompiled everything. All examples work on emulator and real GP32.
Now I tried to make an hello world. It works fine on the emulator, but I get a white blank screen on the GP32.
After many test I modified the doublebuffer example makefile to use arm-elf-g++ instead of gcc, and it created the same result. So I said to myself, maybe it did not work because my file was in CPP. Still, the pure cpp example work. I changed my hello world back to simple C and it still does not work on my GP.
Does anybody have an idea why it does not work. Any help would be appreciated.
----- Here is my hello world code sample -----
	
	
	
		
----- My make file is -----
	
	
	
		
				
			I have downloaded recently the Mirko's SDK. Very nice tool.
I have commented the line in the compiler lib to make sure the examples can run on the emulator. I recompiled everything. All examples work on emulator and real GP32.
Now I tried to make an hello world. It works fine on the emulator, but I get a white blank screen on the GP32.
After many test I modified the doublebuffer example makefile to use arm-elf-g++ instead of gcc, and it created the same result. So I said to myself, maybe it did not work because my file was in CPP. Still, the pure cpp example work. I changed my hello world back to simple C and it still does not work on my GP.
Does anybody have an idea why it does not work. Any help would be appreciated.
----- Here is my hello world code sample -----
		Code:
	
	// simple test programm for the gp32
#include <gp32.h>
int main ( void )
{
   gp_setCpuspeed(66);
  
   unsigned short *framebuffer = 
      (unsigned short*) FRAMEBUFFER;
   gp_initFramebuffer( framebuffer, 16, 85 );
   gp_clearFramebuffer16(framebuffer, 0xFFFF);
     
   gp_drawString ( 20, 50, 11, "Hello World", 0x444F, 
     framebuffer );
   while (1)
   {
   }     
  
   return(0);
}
	----- My make file is -----
		Code:
	
	CC = arm-elf-gcc
LD = arm-elf-g++
AS = arm-elf-as
AR = arm-elf-ar
CXX = arm-elf-c++
PRG = hello
LIBS = -Lf:/gp32sdk/lib -lmirkoSDK
CRT0 = f:/gp32sdk/lib/crt0.S
LNKSCRIPT = f:/gp32sdk/lib/lnkscript
INCLUDES = -If:/gp32sdk/include
CFLAGS = $(INCLUDES) -O2 -s -mtune=arm9tdmi
 
OBJS =  hello.o 
all:	$(OBJS)
	$(CC) -c -o crt0.o $(CRT0)
	$(LD) -nostartfiles -s -Wall -Wl,-Map,Test.map  -T $(LNKSCRIPT) crt0.o -o $(PRG).elf $(OBJS) $(LIBS)
	arm-elf-objcopy -O binary $(PRG).elf $(PRG).bin
	b2fxec -a Mirko_Roller -t SDK_EXAMPLE_$(PRG) $(PRG).bin $(PRG).fxe
install:
	gplink put hello.fxe gpmm
clean:
	rm -f *.o *~ Test.map *.bin *.elf
	
	