questions about PSP usb sample in SDK

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
ldqmoon
Posts: 13
Joined: Tue Dec 04, 2007 1:17 am

questions about PSP usb sample in SDK

Post by ldqmoon »

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.
Last edited by ldqmoon on Sun Apr 13, 2008 11:07 am, edited 1 time in total.
User avatar
jean
Posts: 489
Joined: Sat Jan 05, 2008 2:44 am

Post by jean »

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.
sunxp0327
Posts: 6
Joined: Thu Jan 17, 2008 11:07 am

Post by sunxp0327 »

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
Post Reply