Setup for Debugging on PS2?

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
telva
Posts: 3
Joined: Tue Jan 27, 2004 11:59 pm
Location: South Africa

Setup for Debugging on PS2?

Post by telva »

Hi,

Firstly thanks to all those generous people who have figured all this out, created the tools and written the tutorials.

I have downloaded various tools, configured the development environment and tested it all by compiling and downloading some sample source. At the moment I have my PC connected to the PS2 via a PL-2301 USB cable.

Can I debug my code running on the PS2? What are the most basic hardware requirements to do this? What solution gives the best results?

thanks for the help.
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

Most common way of debug is ofcourse printf. for naplink you have something call npm_printf that will send message to the console, otherwise you have scr_printf to write to the screen, other than that there is a gdb stub in cvs that you can include in your elf.
Kung VU
MrHTFord
Posts: 35
Joined: Tue Feb 10, 2004 2:04 am
Location: England

ps2gdb

Post by MrHTFord »

As blackdroid says, there's a stub you can use in cvs. I only hacked it up to show that it could be done, and as mentioned elsewhere, it's painfully slow to use, due to the fact that it uses ps2ip and lwip for it's comms.

As you're using naplink, the stub in it's current form is of no use.

One solution (the best option) is for someone who's got the SIO stuff going to spend a few hours hacking it into useability. If I had the hardware (or could solder to save my life), I'd do it myself, but I don't and can't, respectively.

Another solution would be to buy a network adapter and write a version of the stub that communicates via SMAP in as direct a fashion as possible. I've not looked into the feasability of this though.

Have fun.
Post Reply