kalymos / PsNee

PsNee, an open source stealth modchip for the Sony Playstation 1
476 stars 70 forks source link

Works great with an ATtiny85 on a PU-8 #35

Closed lagomorph closed 1 year ago

lagomorph commented 1 year ago

No issue, just wanted to report success. Serial debug even works at 115200 which surprises me a bit. Every once in a while I'll get the play CD screen with a burned CD but it's pretty rare. Cool stuff!

some-git-user commented 1 year ago

@lagomorph sorry for taking over your thread, but maybe you could give me some help with attiny85. I programmed the attiny85 with ardiuno as ISP without a problem. But after soldering, the PU-23 does not read any game disc. Neither originals nor backups. After reading the disc, the ps1 stuck at "please insert ps1 disc" screen. But audio CDs working fine.

kalymos commented 1 year ago

It seems to me of memory it can be the internet clock of 85, which is not perfect. The two parameters to modify can be on line 152-153

lagomorph commented 1 year ago

Not sure about the PU-23. Are you able to get debug info out of it by defining PSNEEDEBUG? If I connect it up to a console I get something like:

m 0 41000101234900000200257F 41000101235000000200FCFF 010002012351000024669F7F 01000201235200002466FCFF 010002012353000024669F7F 01000301235400054454FCFF 010003012355000544549F7F 01000301235600054454FCFF 010004012357001019509F7F 01000401235800101950FCFF 010004012359001019509F7F 01000501236000154026FCFF 010005012361001540269F7F 01000501236200154026FCFF ! 410100000006000001699F7F 41010000000500000170FCFF 410100000004000001719F7F 41010000000300000172FCFF 410100000002000001739F7F 41010000000100000174FCFF 410100000009000001669F7F 41010000000800000167FCFF 410100000007000001689F7F 41010000000600000169FCFF 410100000005000001709F7F 41010000000400000171FCFF 410100000003000001729F7F 41010000000200000173FCFF 410100000001000001749F7F 41010000000900000166FCFF 410100000008000001679F7F 41010000000700000168FCFF 410100000006000001699F7F 41010000000500000170FCFF 410100000004000001719F7F 41010000000300000172FCFF 410100000002000001739F7F 41010000000100000174FCFF 410100000009000001669F7F 41010000000800000167FCFF 410100000007000001689F7F 41010000000600000169FCFF ...

kalymos commented 1 year ago

If you want more info on serial output, you can find more info on the original forum. http://www.psxdev.net/forum/viewtopic.php?f=47&t=1262&start=40 Seems to me that it's mostly about playhead movement instructions

some-git-user commented 1 year ago

Ok, thank you guys. It's my first programmed chip ever. Will try to enable debugging.

kalymos commented 1 year ago

Welcome. looking again at the message of lagomorph, and the code, the important moment is the !, this is the moment when the chips will send the hack, and that it should come from a problem of clock

some-git-user commented 1 year ago

Can confirm it's working on PU-23, but can't really tell why. Tested with Dino Crisis. Only thing I changed, is the define PSNEEDEBUG flag, but didn't need to debug yet. Also this time, I choose "Burn Bootloader" before flashing the Attiny85. Is this even necessary and I forgot it in the first place?

kalymos commented 1 year ago

It's not necessary. Arduino bootloader operation introduces boot latency, which prevents proper operation of PsNee if you boot the console with a CD in it.

The bootloader is only necessary, when you want to program with the TxTr interface, if you prefer the SIP which does not need a bootloader.

lagomorph commented 1 year ago

Burning the bootloader also sets the fuses. Maybe an old fuse value was causing issues. 🤷‍♂️

kalymos commented 1 year ago

I didn't know that it modifies the fuses, it's always good to take as a trick