Welcome, Guest!

Here are some external resources you may find helpful
  • Hello, Guest.

    With the recent attacks against members, and lack of care towards their mental health we have started a fundraiser to help fund the life saving charity the Samaritans. Without their support and efforts many people we know wouldn't be alive.

    If you're able to help, you can donate via our fundraiser on GoFundMe Link

    Thank you.

WIP Modern Debugger for the OG PS1

SjefCoder

Registered
Registered
Joined
Mar 4, 2020
Messages
14
Reaction score
30
Points
13
Hi all,
Everyone inevitably remembers how you could boot a Yaroze disc and debug your code.
However, that software is very ancient by today's standards.
Accordingly, I set out to develop a new boot disc that allow you to connect with GDB and debug your code on retail hardware.
Hopefully this can lower the bar for PSX development and slowly make the ancient (unaffordable) hardware obsolete for development purposes.

The files can be downloaded from here:


A video of me narrating and putting things into action can be seen here:

 
Last edited:

Dedok179

Registered
Registered
Joined
Jul 9, 2019
Messages
9
Reaction score
0
Points
1
It works with PSY-Q? What interface is used to connect the pc and console?
 

Trimesh

2020 Donator
2020 Donator
Registered
Joined
May 30, 2019
Messages
231
Reaction score
204
Points
43
AG User Name
Trimesh
AG Join Date
Jul 4, 2008
Just out of interest, where does this load the debugger stub and can you change it? I have a couple of consoles that I've modified to support 8MB of RAM, and it would be nice to be able to load the debugger up at the top of memory so the standard 2MB on the retail consoles is completely clean.
 

SjefCoder

Registered
Registered
Joined
Mar 4, 2020
Messages
14
Reaction score
30
Points
13
Just out of interest, where does this load the debugger stub and can you change it? I have a couple of consoles that I've modified to support 8MB of RAM, and it would be nice to be able to load the debugger up at the top of memory so the standard 2MB on the retail consoles is completely clean.
Haha, help me with procuring an 8mb console, and you may load the debugger up in my head :p
 

SjefCoder

Registered
Registered
Joined
Mar 4, 2020
Messages
14
Reaction score
30
Points
13
Ok, in all seriousness, would love to test this functionality. Had looked into the 8mb upgrade (as it would solidify my ambition to make the dtl-h2000 obsolete), but I neither have the chips nor the air-soldering skills :(
 

Trimesh

2020 Donator
2020 Donator
Registered
Joined
May 30, 2019
Messages
231
Reaction score
204
Points
43
AG User Name
Trimesh
AG Join Date
Jul 4, 2008
Ok, in all seriousness, would love to test this functionality. Had looked into the 8mb upgrade (as it would solidify my ambition to make the dtl-h2000 obsolete), but I neither have the chips nor the air-soldering skills :(

Well, I can send you the chips, but you will need to find someone to install them...
 

SjefCoder

Registered
Registered
Joined
Mar 4, 2020
Messages
14
Reaction score
30
Points
13
So here, is a small update. I have finally been able to build the loader, so the debug stub needs not be compiled inside the software to be tested. Rather, the software to be tested can be uploaded on the spot (just like the Yaroze boot disc).
The screenshot shows a piece of hello world code compiled with n00bsdk being debugged on a Mac via gdb. I added a gdb layout config as it is more robust and responsive than vsCode, and also mimics the old Sony Dos debuggers.

gdbpsx.png
 

SjefCoder

Registered
Registered
Joined
Mar 4, 2020
Messages
14
Reaction score
30
Points
13
Status update.
I have to thank Trimesh. He was gracious enough to donate one of his boards, so I can experiment and test on a working 8mb retail console.
Meanwhile I am trying to abstract away the interface into a proxy like setup, so that it becomes possible to have different connections to the PSX (i.e. not only serial, but also much faster options like the Raspberry PI or CPLD (options, whose credits go to: DanHansbro)).

Well, I can send you the chips, but you will need to find someone to install them...
 

Trimesh

2020 Donator
2020 Donator
Registered
Joined
May 30, 2019
Messages
231
Reaction score
204
Points
43
AG User Name
Trimesh
AG Join Date
Jul 4, 2008
Cool - glad you got it and rather surprised it arrived so quickly seeing as how messed up shipping has been recently.

Just for reference, the board was originally from a SCPH-5500, so it has a Japanese mechacon and outputs NTSC. Since it only has the original NTSC oscillator, it will produce an out of spec composite signal in PAL mode which will probably display in black and white (although RGB still works if you have a suitable cable). It will however boot discs from any region - there is a PSNee installed and the original Japanese boot ROM (which rejects non-Japanese discs) has been replaced with a US one.

Have fun!
 

SjefCoder

Registered
Registered
Joined
Mar 4, 2020
Messages
14
Reaction score
30
Points
13
Here is a video demo. I have finally achieved a level of stability and speed that I feel comfortable with. Hopefully I can soon release the first alpha. In the video you can see me print out memory contents, set breakpoints, and step through code.

 

mgarcia

Registered
Registered
Joined
Jun 21, 2019
Messages
3
Reaction score
1
Points
3
AG User Name
gwald
AG Join Date
Jan 7, 2016
^^ first post contains download files.
Hey, this a cool project, but Net Yaroze isn't elf format exec, it's ecoff format.
Does it work with net yaroze ecoff format exec?
 
Top