forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

pspDebugSioInit() problem. Please help!

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
deniska



Joined: 17 Oct 2005
Posts: 71
Location: New York

PostPosted: Thu Jul 20, 2006 12:31 am    Post subject: pspDebugSioInit() problem. Please help! Reply with quote

While trying to get PSP-GPS mouse communication going, I encountered problems with a faily simple piece of code:



Code:

#define printf pspDebugScreenPrintf
.....
int main() {
pspDebugScreenInit();
SetupCallbacks();
printf("Hello SIO\n");
pspDebugSioInit();
pspDebugSioSetBaud(4800);
int i=1;
while (i==1) {
        int count =  pspDebugSioGetchar();;
        if (count >= 0) printf("%c",count);

}


The first time I compiled it the linker produced following error:
Code:

/usr/local/pspdev/psp/sdk/lib/libpspdebug.a(sio.o): In function `pspDebugSioInit':
/tmp/pspdev/pspsdk/src/debug/sio.c:122: undefined reference to `sceHprmEnd'


I copied sio.c from the sdk source folder and recompiled linking to local sio.o file as well as -lpsphprm_driver -lpsppower_driver. The resulting binary keeps returning with (80020001): "The game could not be started" message on my 1.5Fw psp..

Any ideas what I am doing wrong here?


thank you in advance,
DENIS
Back to top
View user's profile Send private message
deniska



Joined: 17 Oct 2005
Posts: 71
Location: New York

PostPosted: Tue Jul 25, 2006 11:55 pm    Post subject: Reply with quote

Btw, I figured out what the problem was..
Following thread has the details:
http://forums.ps2dev.org/viewtopic.php?t=6294&highlight=
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group