From 8e7ae835766f9044178c177f8d20650b5ba77abb Mon Sep 17 00:00:00 2001 From: Phil Eichinger Date: Thu, 24 Oct 2019 21:58:32 +0200 Subject: [PATCH] Add support for Intel PC28F256M29 Tested with 2 repro carts --- Cart_Reader/GBA.ino | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino index 3e1c9a6..1a48f50 100644 --- a/Cart_Reader/GBA.ino +++ b/Cart_Reader/GBA.ino @@ -2482,6 +2482,9 @@ void flashRepro_GBA() { else if ((romType == 0x1) || (romType == 0x4)) { println_Msg(F("Fujitsu MSP55LV128N")); } + else if ((romType == 0x89)) { + println_Msg(F("Intel PC28F256M29")); + } else { println_Msg(romType); print_Error(F("Unknown manufacturer"), true); @@ -2543,8 +2546,9 @@ void flashRepro_GBA() { //else { println_Msg(F("Erasing...")); display_Update(); - if (romType == 0xC2) { + if ((romType == 0xC2) || (romType == 0x89)) { //MX29GL128E + //PC28F256M29 (0x89) sectorEraseMX29GL128E_GBA(); } else if ((romType == 0x1) || (romType == 0x4)) { @@ -2568,8 +2572,9 @@ void flashRepro_GBA() { writeIntel4000_GBA(); } else if (strcmp(flashid, "227E") == 0) { - if (romType == 0xC2) { - //MX29GL128E + if ((romType == 0xC2) || (romType == 0x89)) { + //MX29GL128E (0xC2) + //PC28F256M29 (0x89) writeMX29GL128E_GBA(); } else if ((romType == 0x1) || (romType == 0x4)) {