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 

questions about PSP usb sample in SDK

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



Joined: 04 Dec 2007
Posts: 13

PostPosted: Sun Apr 06, 2008 1:17 pm    Post subject: questions about PSP usb sample in SDK Reply with quote

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
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Sun Apr 06, 2008 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
sunxp0327



Joined: 17 Jan 2008
Posts: 6

PostPosted: Wed Apr 23, 2008 12:20 am    Post subject: Reply with quote

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