Hi
these days I try to run usb sample in SDK, the program can compile easily, but it can't run in my psp.
my psp use 3.71m33-3 and I added
BUILD_PRX=1
PSP_FW_VERSION=371
to the Makefile. I operate it under Fedora8.
I want to make a simple program for transmit some data from PC to PSP, and display the data on psp's screen. I need the SDK sample to know how to use PSP'usb port. But why it can run in my psp?
Does there any other psp usb samples?
Thank for your advice.
questions about PSP usb sample in SDK
questions about PSP usb sample in SDK
Last edited by ldqmoon on Sun Apr 13, 2008 11:07 am, edited 1 time in total.
searchin around you will find 9 or 10 topics already asking how to port applications to cf 3.xx. Take care about (just to give some buzzwords):
1) moving kernel code into kernel mode prx
2) setting BUILD_PRX (or what the heck is named) to 1
3) set user/kernel/etc.. flags proprly in source
4) handle stack dimensions properly (when you build in prx they are small)
Also, maybe you should change your SDK, and maybe doing this you'll find up to date samples with above things already done.
1) moving kernel code into kernel mode prx
2) setting BUILD_PRX (or what the heck is named) to 1
3) set user/kernel/etc.. flags proprly in source
4) handle stack dimensions properly (when you build in prx they are small)
Also, maybe you should change your SDK, and maybe doing this you'll find up to date samples with above things already done.
Please change your makefile like the following information:
PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = usbstorage
OBJS = main.o
LIBS = -lpspusb -lpspusbstor
CFLAGS = -O2 -G0 -Wall
INCDIR =
CFLAGS = -O0 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
EXTRA_TARGETS = EBOOT.PBP
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
PSPSDK = $(shell psp-config --pspsdk-path)
PSPLIBSDIR = $(PSPSDK)/..
TARGET = usbstorage
OBJS = main.o
LIBS = -lpspusb -lpspusbstor
CFLAGS = -O2 -G0 -Wall
INCDIR =
CFLAGS = -O0 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
EXTRA_TARGETS = EBOOT.PBP
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak