From 39d7e52509e9400b52b01d7de43216d5d123c7b6 Mon Sep 17 00:00:00 2001 From: sanni Date: Fri, 8 Sep 2017 14:46:24 +0200 Subject: [PATCH] V28B: Add reset to readmode before blankcheck for GBA repro with Intel flashrom --- Cart_Reader/Cart_Reader.ino | 4 ++-- Cart_Reader/GBA.ino | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index 01d749c..0b26618 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -3,7 +3,7 @@ Author: sanni Date: 2017-09-08 - Version: V28A + Version: V28B SD lib: https://github.com/greiman/SdFat LCD lib: https://github.com/adafruit/Adafruit_SSD1306 @@ -34,7 +34,7 @@ YamaArashi - GBA flashrom bank switch command **********************************************************************************/ -char ver[5] = "V28A"; +char ver[5] = "V28B"; /****************************************** Define Output diff --git a/Cart_Reader/GBA.ino b/Cart_Reader/GBA.ino index b7df057..2f3cb49 100644 --- a/Cart_Reader/GBA.ino +++ b/Cart_Reader/GBA.ino @@ -2377,6 +2377,13 @@ void flashRepro_GBA() { println_Msg(F("Erasing...")); display_Update(); eraseIntel4000_GBA(); + delay(1000); + resetIntel_GBA(0x8000); + delay(1000); + resetIntel_GBA(0x100000); + delay(1000); + resetIntel_GBA(0x200000); + delay(1000); } else if (strcmp(flashid, "227E") == 0) { //if (sectorCheckMX29GL128E_GBA()) {