Problem with screen when run .elf
Posted: Sat Apr 15, 2006 8:04 pm
Hello
I compile my own program use SDL already and have .elf file.
When i run program by InLink v1.3.7 then screen (on TV) is crash. What's happened ? Please suggest me.
best regards
wing64
SourceCode Program
Inlink v1.3.7 message
I compile my own program use SDL already and have .elf file.
When i run program by InLink v1.3.7 then screen (on TV) is crash. What's happened ? Please suggest me.
best regards
wing64
SourceCode Program
Code: Select all
#include <stdio.h>
#include "SDL.h"
int main(int argc, char *argv[])
{
SDL_Surface *screen;
/* Initialize SDL (Note: video is required to start event loop) */
if ( SDL_Init(SDL_INIT_VIDEO|SDL_INIT_JOYSTICK) < 0 ) {
printf("Couldn't initialize SDL: %s\n",SDL_GetError());
exit(1);
}
/* Set a video mode to display joystick axis position */
screen = SDL_SetVideoMode(640, 480, 16, SDL_SWSURFACE);
if ( screen == NULL ) {
printf("Couldn't set video mode: %s\n",SDL_GetError());
return 0;
}
while( 1 )
{
SDL_FillRect(screen, NULL, 0);
SDL_Flip(screen );
}
return 0;
}
Code: Select all
[NET] : Executing host:C:\cygwin\home\test100\test200.elf ...
Setting Curent Directory to C:\cygwin\home\test100\.
Executing Elf host:C:\cygwin\home\test100\test200.elf...
loadelf: fname host:C:\cygwin\home\test100\test200.elf secname all
loadelf version 3.30
Input ELF format filename = host:C:\cygwin\home\test100\test200.elf
0 00100000 000440d4 .....
Loaded, host:C:\cygwin\home\test100\test200.elf
start address 0x1000e0
gp address 00000000
[NET] : Sent test200.elf at 560KB/s
SDL: initializing gsKit in NTSC mode
SDL_Joystick: JoystickInit begins
loadmodule: fname rom0:XSIO2MAN args 0 arg
loadmodule: id 28, ret 0
loadmodule: fname rom0:XPADMAN args 0 arg
Pad Driver for OSD (2000/12/05 18:05) 392, 128
loadmodule: id 29, ret 0
loadmodule: fname rom0:XMTAPMAN args 0 arg
loadmodule: id 30, ret 0
SDL_Joystick: padInit: 0
SDL_Joystick: mtapInit: 1
SDL_Joystick: numports 2
SDL_Joystick: Port: 0 mtapPortOpen: 1
SDL_Joystick: Port: 0 mtapGetConnection: 0
SDL_Joystick: Port 0, MaxSlots: 1
SDL_Joystick: pad (0,0) is in state EXECCMD
SDL_Joystick: pad (0,0) is in state ERROR
SDL_Joystick: pad (0,0) is in state EXECCMD
SDL_Joystick: pad (0,0) is in state ERROR
SDL_Joystick: pad (0,0) is in state EXECCMD
SDL_Joystick: digital pad detected
JoystickInit: Request received
SDL_Joystick: pad (0,0) is in state EXECCMD
Joystick 0 at port=0 slot=0
SDL_Joystick: Port: 1 mtapPortOpen: 1
SDL_Joystick: Port: 1 mtapGetConnection: 0
SDL_Joystick: Port 1, MaxSlots: 1
SDL_Joystick: pad (1,0) is in state EXECCMD
SDL_Joystick: pad (1,0) is in state ERROR
SDL_Joystick: pad (1,0) is in state DISCONNECT
waited too long! giving up
SDL_Joystick: JoystickInit ends with 1 joysticks
SDL_SetVideoMode 640 x 480 x 16
SDL_Video: local texture allocated at 0x00294850
SDL_video: centered surface of (640, 480) onto a screen of (640, 448) at (21, 0)
SDL_video: ratio of 1:0.933, rastered surface is (597, 448)