| View previous topic :: View next topic |
| Author |
Message |
darkness
Joined: 15 Jun 2008 Posts: 121
|
Posted: Sat Jun 21, 2008 4:19 am Post subject: Error 800200D9 when try to start a user app converted... |
|
|
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 |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sat Jun 21, 2008 4:41 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Jun 21, 2008 5:24 am Post subject: |
|
|
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 |
|
 |
Wally

Joined: 26 Sep 2005 Posts: 672
|
Posted: Sat Jun 21, 2008 9:46 am Post subject: |
|
|
| 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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sat Jun 21, 2008 10:55 am Post subject: |
|
|
| 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 |
|
 |
TyRaNiD
Joined: 18 Jan 2004 Posts: 918
|
Posted: Mon Jun 23, 2008 3:16 pm Post subject: |
|
|
| No it doesn't because something like that would be a serious breaking change. |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Mon Jun 23, 2008 6:39 pm Post subject: |
|
|
| 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 |
|
 |
|