mirror of
https://github.com/sanni/cartreader.git
synced 2025-01-15 06:29:08 +01:00
Update N64.ino
Update Xplorer64 functions in N64.ino to fix a potential issue for some hardware.
This commit is contained in:
parent
3a30c0f5ed
commit
e92e42c581
@ -4542,8 +4542,7 @@ void flashXplorer_N64() {
|
|||||||
println_Msg(F(""));
|
println_Msg(F(""));
|
||||||
println_Msg(F("Turn Cart Reader off now"));
|
println_Msg(F("Turn Cart Reader off now"));
|
||||||
display_Update();
|
display_Update();
|
||||||
while (1)
|
while (1);
|
||||||
;
|
|
||||||
} else {
|
} else {
|
||||||
display_Clear();
|
display_Clear();
|
||||||
display_Update();
|
display_Update();
|
||||||
@ -4580,9 +4579,7 @@ void idXplorer_N64() {
|
|||||||
setAddress_N64(0x10740000);
|
setAddress_N64(0x10740000);
|
||||||
readWord_N64();
|
readWord_N64();
|
||||||
|
|
||||||
if (flashid == 0x0808) {
|
if (flashid != 0x0808) {
|
||||||
flashSize = 262144;
|
|
||||||
} else {
|
|
||||||
println_Msg(F("Check cart connection"));
|
println_Msg(F("Check cart connection"));
|
||||||
println_Msg(F("Unknown Flash ID"));
|
println_Msg(F("Unknown Flash ID"));
|
||||||
sprintf(flashid_str, "%04X", flashid);
|
sprintf(flashid_str, "%04X", flashid);
|
||||||
@ -4708,7 +4705,7 @@ void eraseXplorer_N64() {
|
|||||||
println_Msg(F("Erasing..."));
|
println_Msg(F("Erasing..."));
|
||||||
display_Update();
|
display_Update();
|
||||||
|
|
||||||
// Send chip erase to SST 29LE010 / AMTEL AT29LV010A / SST 29EE010
|
// Send chip erase to SST 29LE010
|
||||||
oddXPaddrWrite(0x1040AAAA, 0xAAAA);
|
oddXPaddrWrite(0x1040AAAA, 0xAAAA);
|
||||||
evenXPaddrWrite(0x10405555, 0x5555);
|
evenXPaddrWrite(0x10405555, 0x5555);
|
||||||
oddXPaddrWrite(0x1040AAAA, 0x8080);
|
oddXPaddrWrite(0x1040AAAA, 0x8080);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user