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 

How to load prx?Need help

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



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sat Jun 02, 2007 3:45 am    Post subject: How to load prx?Need help Reply with quote

Hi! I want to try out my new Go! Cam psp camera,but I can't load needed modules as mentioned here http://forums.ps2dev.org/viewtopic.php?t=7074 .My code looks like that:

Code:
#include <pspdisplay.h>
#include <pspctrl.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspgu.h>
#include <png.h>
#include <stdio.h>
#include "graphics.h"
#include <pspsdk.h>
#include <pspctrl.h>
#include <psploadexec_kernel.h>
#include <pspusb.h>
PSP_MODULE_INFO("Camera", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);

int main()
{
pspDebugScreenInit();
initGraphics();
pspSdkLoadStartModule("flash0:/kn/usbacc.prx", PSP_MEMORY_PARTITION_KERNEL);
pspSdkLoadStartModule("flash0:/kn/usbcam.prx", PSP_MEMORY_PARTITION_KERNEL);
pspSdkLoadStartModule("flash0:/vsh/nodule/camera_plugin.prx", PSP_MEMORY_PARTITION_KERNEL);
while(1)
{
if (sceUsbStart("USBBusDriver", 0, 0) )
{
printTextScreen(30,30, "Loading of USBBus driver failed!", 0xFFFFFF);
}
if (sceUsbStart("USBAccBaseDriver", 0, 0))
{
printTextScreen(30,40, "Loading of USBAccBaseDriver failed!", 0xFFFFFF);
}
if (sceUsbStart("USBCamDriver", 0, 0) )
{
printTextScreen(30,50, "Loading of CamDriver driver failed!", 0xFFFFFF);
}
if (sceUsbStart("USBCamMicDriver", 0, 0))
{
printTextScreen(30,60, "Loading of USBCamMicDriver failed!", 0xFFFFFF);
}
flipScreen();
sceKernelSleepThread();

}

}

And makefile:
Code:
TARGET = Camera
OBJS = main.o graphics.o framebuffer.o
YOURLIBS=

INCDIR =
CFLAGS = -G4 -Wall -O2
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBDIR =
LDFLAGS =
STDLIBS= -lpng -lz -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm-lpng -lz -lpspsdk -lpspctrl -lpspumd -lpspusb
LIBS=$(STDLIBS)$(YOURLIBS)

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Camera
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak

As you can see I check in my code if I can init any function needed,but all fail except for sceUsbStart("USBBusDriver", 0, 0) .Could you help me find what's wrong here?I'm running 3.40OE-A.
Back to top
View user's profile Send private message
Guzmanus



Joined: 01 Jun 2007
Posts: 4

PostPosted: Sun Jun 03, 2007 2:25 am    Post subject: Reply with quote

Do you have Ta-082?
If yes: run Keycleaner of chilliwilly
If no: I don't know
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Sun Jun 03, 2007 4:59 am    Post subject: Reply with quote

Guzmanus wrote:
Do you have Ta-082?
If yes: run Keycleaner of chilliwilly
If no: I don't know
I have TA-079 so my problem is still unsolved.Please help.
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