I'm experiencing problems activating usb in a prx (kernel mode) under CF 3.52 update 4.
I've always activated USB with this code (taken from the sdk sample):
Code: Select all
int USBinit(){
u32 retVal;
//start necessary drivers
LoadStartModule("flash0:/kd/semawm.prx");
LoadStartModule("flash0:/kd/usbstor.prx");
LoadStartModule("flash0:/kd/usbstormgr.prx");
LoadStartModule("flash0:/kd/usbstorms.prx");
LoadStartModule("flash0:/kd/usbstorboot.prx");
//setup USB drivers
retVal = sceUsbStart(PSP_USBBUS_DRIVERNAME, 0, 0);
if (retVal != 0) {
return -1;
}
retVal = sceUsbStart(PSP_USBSTOR_DRIVERNAME, 0, 0);
if (retVal != 0) {
return -1;
}
retVal = sceUsbstorBootSetCapacity(0x800000);
if (retVal != 0) {
return -1;
}
return 0;
}
Code: Select all
int USBActivate(){
sceUsbActivate(0x1c8);
return 0;
}
The prx doesen't even load and start (returning "Library not found").
The prx loads fine if I comment all the sceUSB* functions.
What's wrong?
Many thanks. :)
Ciaooo
Sakya