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 

PSPlink + OSLib Mod + Tinyxml

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



Joined: 29 Sep 2009
Posts: 8

PostPosted: Tue Sep 29, 2009 3:59 am    Post subject: PSPlink + OSLib Mod + Tinyxml Reply with quote

Hi, guys

I'm trying debug my game using PSPlink bug I always have this fail message

Code:
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/minpspw/book/PSP%20Dev%20with%20Eclipse/pspeclipse.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:
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
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Wed Sep 30, 2009 11:12 am    Post subject: Reply with quote

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 ?
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
autilio



Joined: 29 Sep 2009
Posts: 8

PostPosted: Wed Sep 30, 2009 9:53 pm    Post subject: Reply with quote

PspLink 3.0 OE
Back to top
View user's profile Send private message
willow :--)



Joined: 13 Jan 2007
Posts: 126

PostPosted: Wed Sep 30, 2009 10:00 pm    Post subject: Reply with quote

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 ?
_________________
Wagic. Play that card game against an AI on your PSP
Back to top
View user's profile Send private message
autilio



Joined: 29 Sep 2009
Posts: 8

PostPosted: Wed Sep 30, 2009 10:25 pm    Post subject: Reply with quote

yes, the cube sample works fine.
Back to top
View user's profile Send private message
TyRaNiD



Joined: 18 Jan 2004
Posts: 918

PostPosted: Thu Oct 01, 2009 5:32 am    Post subject: Reply with quote

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 :)
Back to top
View user's profile Send private message
autilio



Joined: 29 Sep 2009
Posts: 8

PostPosted: Thu Oct 01, 2009 6:36 am    Post subject: Reply with quote

Before

Code:
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:
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.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Fri Oct 02, 2009 2:22 am    Post subject: Reply with quote

What macros are you using for the module header in main.c?
Back to top
View user's profile Send private message AIM Address
autilio



Joined: 29 Sep 2009
Posts: 8

PostPosted: Fri Oct 02, 2009 2:32 am    Post subject: Reply with quote

Code:
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);
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