Discuss the development of new homebrew software, tools and libraries.
Moderators: cheriff , TyRaNiD
autilio
Posts: 6 Joined: Tue Sep 29, 2009 3:51 am
Post
by autilio » Tue Sep 29, 2009 3:59 am
Hi, guys
I'm trying debug my game using PSPlink bug I always have this fail message
Code: Select all
host0:/> debug GodsDefense.prx
debug GodsDefense.prx
PSPLink USB GDBServer (c) 2k7 TyRaNiD
host0:/> Could not load module host0:/GodsDefense.prx (0x80020001)
Usage: usbgdb.prx program [args]
I followed this article
http://ufpr.dl.sourceforge.net/project/ ... clipse.pdf
Anyone have this problem ?
Other Information
I'm using OSLib MOD 1.1.0 + PSPSDK 0.9.5 + TinyXML
Firmware 5.50gen b2, PSP 2000
PspLink 3.0 oe
My Make File
Code: Select all
TARGET = GodsDefense
CFLAGS = -O2 -g -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti -DTIXML_USE_STL
ASFLAGS = $(CFLAGS)
GAMEOBJECTS=Src/Main.o Src/AnykeyScreen.o Src/ScreenManager.o Src/TitleScreen.o Src/MainMenuScreen.o Src/GameOptionsScreen.o \
Src/GameScreen.o Src/HelpScreen.o Src/AboutScreen.o Src/MultiplayerScreen.o Src/PauseScreen.o Src/GameGUI.o \
Src/Resource.o Src/ExitScreen.o Src/GodLibrary.o Src/WarningScreen.o Src/Tower.o Src/Projectile.o Src/Enemy.o Src/Map.o \
Src/EndingScreen.o
TINYXML=tinyxml/tinystr.o tinyxml/tinyxml.o tinyxml/tinyxmlerror.o tinyxml/tinyxmlparser.o
OBJS = $(TINYXML) $(GAMEOBJECTS)
LIBDIR =
LDFLAGS =
LIBS = -losl -lpng -lz -lpsphprm -lpspaudiolib -lpspaudio -lpspsdk -lpspctrl -lpspumd -lpsprtc \
-lpsppower -lpspgum -lpspgu -lm -lpspaudiolib -lpspaudiocodec -lstdc++ -lpspwlan -lpsphttp -lpspssl
BUILD_PRX = 1
PSP_FW_VERSION=390
PSP_LARGE_MEMORY = 1
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Gods Defense
PSP_EBOOT_ICON = ICON0.png
PSP_EBOOT_PIC1 = PIC1.png
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
willow :--)
Posts: 107 Joined: Sat Jan 13, 2007 11:50 am
Post
by willow :--) » Wed Sep 30, 2009 11:12 am
could be that you are trying to run a 3.x homebrew with a 1.5 version of PSPLink, or the other way around.
Which version of PSPLink are you using ?
autilio
Posts: 6 Joined: Tue Sep 29, 2009 3:51 am
Post
by autilio » Wed Sep 30, 2009 9:53 pm
PspLink 3.0 OE
willow :--)
Posts: 107 Joined: Sat Jan 13, 2007 11:50 am
Post
by willow :--) » Wed Sep 30, 2009 10:00 pm
Ok, no problem here, then.
have you tried compiling a sample from the PSPSDK and run it through PSPLink, to see if it comes from your application or you PSPLink installation ?
autilio
Posts: 6 Joined: Tue Sep 29, 2009 3:51 am
Post
by autilio » Wed Sep 30, 2009 10:25 pm
yes, the cube sample works fine.
TyRaNiD
Posts: 907 Joined: Sun Jan 18, 2004 12:23 am
Post
by TyRaNiD » Thu Oct 01, 2009 5:32 am
you are possibly running out of kernel memory, not sure how much 5.50 has available, try running the memfree command in psplink before and after and see if you have virtually no memory left. Alas if it is kernel mode memory issues you are stuffed :)
autilio
Posts: 6 Joined: Tue Sep 29, 2009 3:51 am
Post
by autilio » Thu Oct 01, 2009 6:36 am
Before
Code: Select all
host0:/> meminfo
meminfo
Memory Partitions:
N | BASE | SIZE | TOTALFREE | MAXFREE | ATTR |
---|------------|----------|-----------|-----------|------|
1 | 0x88000000 | 3145728 | 301312 | 269312 | 000C |
2 | 0x08800000 | 54525952 | 54508800 | 54508800 | 000F |
3 | 0x88000000 | 3145728 | 301312 | 269312 | 000C |
4 | 0x88300000 | 1048576 | 1048576 | 1048576 | 000C |
5 | 0x08400000 | 4194304 | 4194304 | 4194304 | 000F |
6 | 0x08800000 | 54525952 | 54508800 | 54508800 | 000F |
8 | 0x8BC00000 | 0 | 0 | 0 | 000C |
10 | 0x8BC00000 | 4194304 | 4194304 | 4194304 | 000C |
11 | 0x8BC00000 | 0 | 0 | 0 | 000C |
host0:/> memreg
memreg
Memory Regions:
Region 0: Base 0x00010000 - Size 0x00004000 - Scratchpad
Region 1: Base 0x40010000 - Size 0x00004000 - Scratchpad (uncached)
Region 2: Base 0x04000000 - Size 0x00200000 - VRAM
Region 3: Base 0x44000000 - Size 0x00200000 - VRAM (uncached)
Region 4: Base 0x08800000 - Size 0x01800000 - User memory
Region 5: Base 0x48800000 - Size 0x01800000 - User memory (uncached)
Region 6: Base 0x88000000 - Size 0x00400000 - Kernel memory (low)
Region 7: Base 0xA8000000 - Size 0x00400000 - Kernel memory (low uncached)
Region 10: Base 0x88800000 - Size 0x01800000 - Kernel memory (high)
Region 11: Base 0xA8800000 - Size 0x01800000 - Kernel memory (high uncached)
Region 12: Base 0xBFC00000 - Size 0x00100000 - Internal RAM
After
Code: Select all
host0:/> debug GodsDefense.prx
debug GodsDefense.prx
PSPLink USB GDBServer (c) 2k7 TyRaNiD
host0:/> Could not load module host0:/GodsDefense.prx (0x80020001)
Usage: usbgdb.prx program [args]
host0:/> meminfo
meminfo
Memory Partitions:
N | BASE | SIZE | TOTALFREE | MAXFREE | ATTR |
---|------------|----------|-----------|-----------|------|
1 | 0x88000000 | 3145728 | 279296 | 247296 | 000C |
2 | 0x08800000 | 54525952 | 54508800 | 54508800 | 000F |
3 | 0x88000000 | 3145728 | 279296 | 247296 | 000C |
4 | 0x88300000 | 1048576 | 1048576 | 1048576 | 000C |
5 | 0x08400000 | 4194304 | 4194304 | 4194304 | 000F |
6 | 0x08800000 | 54525952 | 54508800 | 54508800 | 000F |
8 | 0x8BC00000 | 0 | 0 | 0 | 000C |
10 | 0x8BC00000 | 4194304 | 4194304 | 4194304 | 000C |
11 | 0x8BC00000 | 0 | 0 | 0 | 000C |
host0:/> memreg
memreg
Memory Regions:
Region 0: Base 0x00010000 - Size 0x00004000 - Scratchpad
Region 1: Base 0x40010000 - Size 0x00004000 - Scratchpad (uncached)
Region 2: Base 0x04000000 - Size 0x00200000 - VRAM
Region 3: Base 0x44000000 - Size 0x00200000 - VRAM (uncached)
Region 4: Base 0x08800000 - Size 0x01800000 - User memory
Region 5: Base 0x48800000 - Size 0x01800000 - User memory (uncached)
Region 6: Base 0x88000000 - Size 0x00400000 - Kernel memory (low)
Region 7: Base 0xA8000000 - Size 0x00400000 - Kernel memory (low uncached)
Region 10: Base 0x88800000 - Size 0x01800000 - Kernel memory (high)
Region 11: Base 0xA8800000 - Size 0x01800000 - Kernel memory (high uncached)
Region 12: Base 0xBFC00000 - Size 0x00100000 - Internal RAM
When I was using 5.00 M33-6, the problem was the same.
J.F.
Posts: 2906 Joined: Sun Feb 22, 2004 11:41 am
Post
by J.F. » Fri Oct 02, 2009 2:22 am
What macros are you using for the module header in main.c?
autilio
Posts: 6 Joined: Tue Sep 29, 2009 3:51 am
Post
by autilio » Fri Oct 02, 2009 2:32 am
Code: Select all
PSP_MODULE_INFO("Gods Defense", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(PSP_THREAD_ATTR_USER | PSP_THREAD_ATTR_VFPU);
/*
Since malloc uses the heap defined at compile time, we should use a negative value such as PSP_HEAP_SIZE_KB(-1024)
instead of a hardcoded value. So you'll have 23MB on Phat and 55MB on the Slim with 1MB for stacks etc in either case.
*/
PSP_HEAP_SIZE_KB(-1024);