Need to understand PSPLink

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
AllSystemGo
Posts: 26
Joined: Sat Jun 02, 2007 1:15 am

Need to understand PSPLink

Post by AllSystemGo »

Hi,

I just finished installing PSPLink on Ubuntu and I would like to understand how to analyse the messages it sends me.

1- I get this once I start pspsh

Code: Select all

host0:/> Exception - Bus error (data)
Thread ID - 0x04600843
Th Name   - user_main
Module ID - 0x04625335
Mod Name  - "iPDA"
EPC       - 0x0895BD1C
Cause     - 0x1000001C
BadVAddr  - 0x5AE1B55A
Status    - 0x60088613
zr:0x00000000 at:0x0008FF00 v0:0x00000601 v1:0x08A20EA0
a0:0x089EEEF0 a1:0x08A20810 a2:0x00000000 a3:0x00000000
t0:0x00000001 t1:0x00000000 t2:0x00000000 t3:0x00000007
t4:0x09FBFC28 t5:0x00000E00 t6:0x08961074 t7:0x00088600
s0:0x00000010 s1:0x09FBFE44 s2:0x08A20EA0 s3:0x09FBFCE8
s4:0x00000010 s5:0x00000013 s6:0xDEADBEEF s7:0xDEADBEEF
t8:0x00000001 t9:0x00000030 k0:0x09FBFF00 k1:0x00000000
gp:0x08A0A6D0 sp:0x09FBFC98 fp:0x09FBFEB0 ra:0x089005D8
0x0895BD1C: 0x8CE60000 '....' - lw         $a2, 0($a3)
2-

I would like to know why once I run the pspsh and get the error up there I can't run it again. I get this error

Failed to Load/Start module 'host0:/iPDA.elf' Error: 0x800200D9

Thank you for your help

Cheers

EDIT: I would like to add that I'm using M33-2 Firmware!
PSPJunkie
Posts: 14
Joined: Tue Jan 23, 2007 12:55 pm
Location: Jersey
Contact:

Post by PSPJunkie »

1.) That's an exception, or a crash. The best thing to do is run this via command line:
psp-addr2line -fe whatever.elf/prx EPC/RA
NOTE: '/' in the above line represents 'or', so you would type one or the other, not both.

In this case, your EPC is 0x0895BD1C, and your RA (Return Address) is 0x089005D8.

The 'whatever.elf/prx' is the target file from your makefile.
TARGET = myapp
If you compile it for the 1.50 kernel, then you would pass 'myapp.elf', and 'myapp.prx' for the 3.xx kernel.

For this to work you need to add '-g' to the CFLAGS in your makefile (It tells the compile not to strip debug symbols).

Running psp-addr2line with the options I showed above SHOULD give you a line number that will help you to find the source of the exception.

2.) The error, 0x800200D9, means that the PSP was unable to allocate enough memory to launch your application. Most commonly this is because you ran your application once, then tried to run it again, putting it into memory twice. Just type 'reset' into the pspsh shell to reset pspsh and try running your application again.
AllSystemGo
Posts: 26
Joined: Sat Jun 02, 2007 1:15 am

Post by AllSystemGo »

Wow this is the best explaination ever!!!

Thank you very much for your help I realy appreciate it

BTW: Does it matter if I am using the Firmware M33-2. If it does what should I do exactly??
Vincent_M
Posts: 73
Joined: Tue Apr 03, 2007 4:16 am

Post by Vincent_M »

DUH... That's what it was. You had to type reset to fix the problem. That's what it was. Thanks PSPJunkie, I tried helping AllSystemGo earlier, but it never dawned on me.
Post Reply