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 

Error 800200D9 when try to start a user app converted...

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



Joined: 15 Jun 2008
Posts: 121

PostPosted: Sat Jun 21, 2008 4:19 am    Post subject: Error 800200D9 when try to start a user app converted... Reply with quote

Hi,
I've try to port my hb in kernel mode, and using PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER);
set the main thread to user mode...
But when I launch the hb I've error 800200D9!
(failed to allocate memory block)
Why?
I think makefile is useful:
[code]
TARGET = explorer
OBJS = main.o osk.o framebuffer.o graphics.o general.o

BUILD_PRX = 1
PSP_FW_VERISION = 380

CFLAGS = -O2 -G0 -Wall -g
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)

LIBS = -lpspgum -lpspgu -lpng -lz -lm -lpspumd -lpspusb -lpspusbstor -lpsppower -lpsprtc -lpspusbdevice -lpspsystemctrl_user
LDFLAGS =

EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = dfsdaadfsdfadfafdasfd

include $(PSPSDK)/lib/build.mak
Back to top
View user's profile Send private message
Pirata Nervo



Joined: 09 Oct 2007
Posts: 409

PostPosted: Sat Jun 21, 2008 4:41 am    Post subject: Reply with quote

you do not have your psp 1.50 kernel enabled or you are putting your homebrew in the wrong folder (if you have 1.50 kernel plugin installed)
_________________

Upgrade your PSP
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Jun 21, 2008 5:24 am    Post subject: Reply with quote

When you have BUILD_PRX = 1 in the makefile, you need to specify the heap size or you're stuck with 64K.

I use

Code:
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER);
PSP_HEAP_SIZE_KB(-1024);


Note that the negative heap size tells how much memory to leave to the PSP, not how much to allocate to the app, and requires a very new toolchain, so if you haven't updated in a while, do so.
Back to top
View user's profile Send private message AIM Address
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sat Jun 21, 2008 9:46 am    Post subject: Reply with quote

is there any reason why that this cant be a preset in the SDK but then we can override it if we need to?
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sat Jun 21, 2008 10:55 am    Post subject: Reply with quote

The current code in newlib specifically sets PRXs to 64KB unless some value is set. I think that was for people doing plugins and libs, but now with 3.xx user-mode, apps are now PRXs too, so maybe the default needs to change.
Back to top
View user's profile Send private message AIM Address
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Mon Jun 23, 2008 3:16 pm    Post subject: Reply with quote

No it doesn't because something like that would be a serious breaking change.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Jun 23, 2008 6:39 pm    Post subject: Reply with quote

TyRaNiD wrote:
No it doesn't because something like that would be a serious breaking change.


True, plus since the author clearly has to make changes to make an app run as 3.xx user prx, it SHOULD be no trouble for them to add a heapsize to the app at the same time. So I guess leaving it as is would be the best thing.
Back to top
View user's profile Send private message AIM Address
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