Problem with usb libraries
Problem with usb libraries
Hi.
I'm trying to make a homebrew to connect my PSP to the PC, but I dont know very sure how I have to do it.
There are 4 functions in pspusb.h -> sceUsbStart(); sceUsbStop(); sceUsbActivate(); sceUsbDeactivate();
How I have to use them to connect my PSP to PC? In the homebrew i've done a code that when you push CIRCLE usb have to connect to PC, and when you push TRIANGLE usb disconnect from the PC.
Anyone can help me please?
Thanks for all!
I'm trying to make a homebrew to connect my PSP to the PC, but I dont know very sure how I have to do it.
There are 4 functions in pspusb.h -> sceUsbStart(); sceUsbStop(); sceUsbActivate(); sceUsbDeactivate();
How I have to use them to connect my PSP to PC? In the homebrew i've done a code that when you push CIRCLE usb have to connect to PC, and when you push TRIANGLE usb disconnect from the PC.
Anyone can help me please?
Thanks for all!
that would be http://svn.pspdev.org ...kecC wrote:where can i look that?
Thanks
(or http://svn.pspdev.org/listing.php?repna ... rev=0&sc=0 to go to the samples directly)
I've looked the sample and I've done my file, but when i'm going to compile it, it says me:
That seems like if the usb functiones there wouldn't be defined, but the includes to pspusb.h and pspusbstor.h are OK.
Anyone can help me, i'm very lose :S:S.
Thanks!
Bye.[/code]
Code: Select all
main.o: In function 'main':
main.c:(.text+0x1f8): undefined reference to 'sceUsbStart'
main.c:(.text+0x214): undefined reference to 'sceUsbStart'
main.c:(.text+0x224): undefined reference to 'sceUsbstorBootSetCapacity'
main.c:(.text+0x248): undefined reference to 'sceUsbGetState'
main.c:(.text+0x29c): undefined reference to 'sceUsbDeactivate'
main.c:(.text+0x2c0): undefined reference to 'sceUsbGetState'
main.c:(.text+0x2f8): undefined reference to 'sceUsbActivate'
collect2: ld returned 1 exit status
make: *** [usbstorage.elf] Error 1
Anyone can help me, i'm very lose :S:S.
Thanks!
Bye.[/code]
Code: Select all
TARGET = usbstorage
OBJS = main.o
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR = -lpspusb -lpspusbstor
LDFLAGS =
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
if I put that, it says me:
Do I need any other library?
I only have pspusb.h and pspsubstor.h in the dir of psp libraries.
Thanks.
Bye.
Code: Select all
/cygdrive/c/PSPDev/bin/../lib/gcc/psp/4.0.0/../../../../psp/bin/ld: cannot find -lpspusb
collect2: ld returned 1 exit status
make: *** [usbstorage.elf] Error 1
I only have pspusb.h and pspsubstor.h in the dir of psp libraries.
Thanks.
Bye.
All the information you seek is on the Wiki.
http://wiki.ps2dev.org/psp:toolchain
You really should read it and try to keep up to date. The PSPSDK changes daily.
Jim
http://wiki.ps2dev.org/psp:toolchain
You really should read it and try to keep up to date. The PSPSDK changes daily.
Jim
-
- Posts: 53
- Joined: Wed Aug 31, 2005 1:43 am
This was fixed in revision 1882:2Xtremes2004 wrote:I keep getting the following error when I try to compile the usb sample code that comes with the pspsdk:
error: too few arguments to function 'sceUsbDeactivate'
http://svn.pspdev.org/listing.php?repna ... =1882&sc=1
Update your pspsdk and it should be ok.