From 7f74f22ce7f36bfd82deb6bd5ec5f0738069f73c Mon Sep 17 00:00:00 2001 From: sanni Date: Thu, 31 Jan 2019 15:30:00 +0100 Subject: [PATCH] V2.7: Fix flashing 29F032 Snes repro --- Cart_Reader/Cart_Reader.ino | 6 +++--- Cart_Reader/FLASH.ino | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index 57fba10..820c170 100644 --- a/Cart_Reader/Cart_Reader.ino +++ b/Cart_Reader/Cart_Reader.ino @@ -2,8 +2,8 @@ Cartridge Reader for Arduino Mega2560 Author: sanni - Date: 18-01-2019 - Version: 2.6 + Date: 31-01-2019 + Version: 2.7 SD lib: https://github.com/greiman/SdFat LCD lib: https://github.com/adafruit/Adafruit_SSD1306 @@ -37,7 +37,7 @@ vogelfreiheit - N64 flashram fix **********************************************************************************/ -char ver[5] = "2.6"; +char ver[5] = "2.7"; /****************************************** Define Starting Point diff --git a/Cart_Reader/FLASH.ino b/Cart_Reader/FLASH.ino index 760b8f2..e7f794b 100644 --- a/Cart_Reader/FLASH.ino +++ b/Cart_Reader/FLASH.ino @@ -894,8 +894,8 @@ void busyCheck29F032(byte c) { // Set data pins to input dataIn8(); - // Setting OE(PH1) CE(PH6)LOW - PORTH &= ~((1 << 1) | (1 << 6)); + // Setting OE(PH1) OE_SNS(PH3) CE(PH6)LOW + PORTH &= ~((1 << 1) | (1 << 3) | (1 << 6)); // Setting WE(PH4) WE_SNES(PH5) HIGH PORTH |= (1 << 4) | (1 << 5); @@ -905,8 +905,8 @@ void busyCheck29F032(byte c) { // Set data pins to output dataOut(); - // Setting OE(PH1) HIGH - PORTH |= (1 << 1); + // Setting OE(PH1) OE_SNS(PH3) HIGH + PORTH |= (1 << 1) | (1 << 3); } /****************************************** 29F1610 flashrom functions