Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lagomorph opened this issue Dec 9, 2022 · 10 comments
Closed

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

lagomorph opened this issue Dec 9, 2022 · 10 comments

Comments

@lagomorph
Copy link

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
Copy link

@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
Copy link
Owner

kalymos commented Jan 13, 2023

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
Copy link
Author

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
Copy link
Owner

kalymos commented Jan 13, 2023

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
Copy link

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

@kalymos
Copy link
Owner

kalymos commented Jan 14, 2023

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
Copy link

some-git-user commented Jan 15, 2023

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
Copy link
Owner

kalymos commented Jan 16, 2023

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
Copy link
Author

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

@kalymos
Copy link
Owner

kalymos commented Jan 16, 2023

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

@kalymos kalymos closed this as completed Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants