I have a prx that loads up fine right now..
It refuses to load when I define it as kernel (0x1000)
I am launching it from the location free player slot on the xmb.
It won't load up as an seplugin but that's ok anyways it doesn't need to.
It gets input fine (I still need to get button hooking done) and does everything I want.
I need to get data through the serial port (from a GPS device).
Nothing I try is working... when I try pspDebugSio(Init/SetBaud) calls the prx doesn't even load. I get no errors when I compile and my makefile is linking -lpspdebug, -lpsphprm and -lpsphprm_driver
When I try _sioInit from sio.c it fails (doesn't load) for any of the three functions (sceHprmEnd, sceSysregUartIoEnable and sceSysconCtrlHRPower)
the jist of my code is:
Code: Select all
PSP_MODULE_INFO("PROJECTNAME", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
PSP_MAIN_THREAD_STACK_SIZE_KB(32);
PSP_HEAP_SIZE_KB(1024);
int main_thread() {
pspDebugSioInit(); (or sioInit();)
pspDebugSioSetBaud(38400); (or sioSetBaud(38400);)
// Do Stuff ....
}
int module_start (SceSize args, void *argp) {
main_thid = sceKernelCreateThread("main_thread", (SceKernelThreadEntry)main_thread, 0x10, 0x10000, 0, NULL);
if (main_thid >= 0) { sceKernelStartThread(main_thid, args, argp); }
return 0;
}
my makefile is the standard PRX makefile with a few other includes
Please any help you can provide to get me going in the right direction. I don't need to put any data to the serial, I just need to read it.
Thanks again for any assistance![/code]