| View previous topic :: View next topic |
| Author |
Message |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
Posted: Thu Jul 20, 2006 12:31 am Post subject: pspDebugSioInit() problem. Please help! |
|
|
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 |
|
 |
deniska
Joined: 17 Oct 2005 Posts: 71 Location: New York
|
|
| Back to top |
|
 |
|