pspDebugSioInit() problem. Please help!

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
deniska
Posts: 71
Joined: Mon Oct 17, 2005 1:38 pm
Location: New York

pspDebugSioInit() problem. Please help!

Post by deniska »

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


Code: Select all

#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: Select all

/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
deniska
Posts: 71
Joined: Mon Oct 17, 2005 1:38 pm
Location: New York

Post by deniska »

Btw, I figured out what the problem was..
Following thread has the details:
http://forums.ps2dev.org/viewtopic.php? ... highlight=
Post Reply