kalymos / PsNee

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

Does PSNee need to be flashed via SPI for a PU-7 board? #53

Closed dazzaXx closed 6 months ago

dazzaXx commented 6 months ago

Hi, just wondering if SPI flashing is needed for a PU-7 board, I have an Arduino Nano on the way and noticed some mentions of SPI flashing the comments of the .ino code file as well as around the web, I presume that is for the "PM-41 patching" portion but I just wanted to double check that it is fine to upload the code via the usb port.

Thanks!

kalymos commented 6 months ago

The best is always to flash in isp, this eliminates the boot code.

The easiest way to do this is to transform an Arduino into an ISP programmer, with the Arduino as ISP sketch

Le jeu. 21 mars 2024 à 21:14, dazzaXx @.***> a écrit :

Hi, just wondering if SPI flashing is needed for a PU-7 board, I have an Arduino Nano on the way and noticed some mentions of SPI flashing the comments of the .ino code file as well as around the web, I presume that is for the "PM-41 patching" portion but I just wanted to double check.

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/kalymos/PsNee/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDOKBHJVQQJEGYK46ADKY3YZM5RZAVCNFSM6AAAAABFCEJTCOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDCMBZGA2TSMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

dazzaXx commented 6 months ago

Do you have any recommendations for SPI Programmer sketches?

EDIT: Apologies, I know what you mean now.

kalymos commented 6 months ago

The one that is available in the Arduino ;)

https://docs.arduino.cc/built-in-examples/arduino-isp/ArduinoISP/

Le jeu. 21 mars 2024 à 23:23, dazzaXx @.***> a écrit :

Do you have any recommendations for SPI Programmer sketches?

— Reply to this email directly, view it on GitHub https://github.com/kalymos/PsNee/issues/53#issuecomment-2013954175, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDOKBF2RA77KL6F5D6QSSDYZNMULAVCNFSM6AAAAABFCEJTCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJTHE2TIMJXGU . You are receiving this because you commented.Message ID: @.***>

dazzaXx commented 6 months ago

Thank you, I'm a bit of a noob when it comes to arduino and ive never used an ISP flasher before, i've only used the upload button in the IDE xD

dazzaXx commented 6 months ago

Hi, i've just finished making a ISP flasher with my spare mega2560 I had lying around and tested flashing another arduino with it and it finally works! (I'm not a coder at all so it took me HOURS to figure it out)

So for now i'll close this issue so it's not left open. Now it's ready for when my nano arrives for PsNee!

Thanks for the help mate, I really do appreciate the help and tips. 👍

kalymos commented 6 months ago

two little extra tips, using the ISP you can install the bootloader (in Arduino choose the right card, and in the options installed the bootloader) installing the bootloader with Arduino modifies part of the registers (often called fuse ) which sometimes allows the Attiny to work correctly

Le sam. 23 mars 2024 à 01:40, dazzaXx @.***> a écrit :

Hi, i've just finished making a ISP flasher with my spare mega2560 I had lying around and tested flashing another arduino with it and it finally works! (I'm not a coder at all so it took me HOURS to figure it out)

So for now i'll close this issue so it's not left open. Now it's ready for when my nano arrives for PsNee!

Thanks for the help mate, I really do appreciate the help and tips. 👍

— Reply to this email directly, view it on GitHub https://github.com/kalymos/PsNee/issues/53#issuecomment-2016233763, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDOKBGRU24N7QP5XWMWS5DYZTFRHAVCNFSM6AAAAABFCEJTCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGIZTGNZWGM . You are receiving this because you commented.Message ID: @.***>

dazzaXx commented 6 months ago

Is that needed for a Nano? I know when you flash with ISP it removes the bootloader for faster boot times which is needed for this use of PsNee, is the Burn Bootloader option for say if I wanted to upload normally to it again?

kalymos commented 6 months ago

Normally it's not necessary for a Nano, and for the rest that's it

Le sam. 23 mars 2024 à 19:30, dazzaXx @.***> a écrit :

Is that needed for a Nano? I know when you flash with ISP it removes the bootloader for faster boot times which is needed for this use of PsNee, is the Burn Bootloader option for say if I wanted to upload normally to it again?

— Reply to this email directly, view it on GitHub https://github.com/kalymos/PsNee/issues/53#issuecomment-2016569693, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDOKBHEMLM3MOBE4AZS3SDYZXC5TAVCNFSM6AAAAABFCEJTCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWGU3DSNRZGM . You are receiving this because you commented.Message ID: @.***>

dazzaXx commented 6 months ago

Hi me again, i've recieved the nano but it has a 328PB processor in it, and I cannot flash it by just choosing the nano option since it expects just a 328P, i installed MiniCore and managed to flash it with that as it has a PB variant option. Are these settings appropriate?

Or is there more preferred route to flashing it?

Thank you!

image

EDIT: This is also the output, not wired up to the PS1 yet tho. image