| View previous topic :: View next topic |
| Author |
Message |
ldqmoon
Joined: 04 Dec 2007 Posts: 13
|
Posted: Sun Apr 06, 2008 1:17 pm Post subject: questions about PSP usb sample in SDK |
|
|
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 |
|
| Back to top |
|
 |
jean

Joined: 05 Jan 2008 Posts: 489
|
Posted: Sun Apr 06, 2008 8:09 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
sunxp0327
Joined: 17 Jan 2008 Posts: 6
|
Posted: Wed Apr 23, 2008 12:20 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|