From 0ba49236990f65d918340e2f25c42201e3ba46b8 Mon Sep 17 00:00:00 2001 From: sanni Date: Tue, 9 Jan 2018 23:36:09 +0100 Subject: [PATCH] V30H: Fix MX29L3211 flashing as 16bit in 8bit mode --- Cart_Reader/Cart_Reader.ino | 10 +++++----- Cart_Reader/FLASH.ino | 3 +-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Cart_Reader/Cart_Reader.ino b/Cart_Reader/Cart_Reader.ino index bd37577..fdbb6f3 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: 2017-12-20 - Version: V30G + Date: 2018-01-09 + Version: V30H SD lib: https://github.com/greiman/SdFat LCD lib: https://github.com/adafruit/Adafruit_SSD1306 @@ -35,7 +35,7 @@ infinest - help with GB Memory cart **********************************************************************************/ -char ver[5] = "V30G"; +char ver[5] = "V30H"; /****************************************** Define Starting Point @@ -338,7 +338,7 @@ void aboutScreen() { display.drawBitmap(0, 0, sig, 128, 64, 1); println_Msg(F("Cartridge Reader")); println_Msg(F("github.com/sanni")); - print_Msg(F("2017 ")); + print_Msg(F("2018 ")); println_Msg(ver); println_Msg(F("")); println_Msg(F("")); @@ -456,7 +456,7 @@ void setup() { // Serial Begin Serial.begin(9600); Serial.println(F("Cartridge Reader")); - Serial.println(F("2017 sanni")); + Serial.println(F("2018 sanni")); Serial.println(""); // LED rgb.setColor(0, 0, 255); diff --git a/Cart_Reader/FLASH.ino b/Cart_Reader/FLASH.ino index 26b6928..599935d 100644 --- a/Cart_Reader/FLASH.ino +++ b/Cart_Reader/FLASH.ino @@ -128,7 +128,7 @@ void flashromMenu8() { else if (flashromType == 2) { if (strcmp(flashid, "C2F3") == 0) writeFlash29F1601(); - else if (strcmp(flashid, "C2F1") == 0) + else if ((strcmp(flashid, "C2F1") == 0) || (strcmp(flashid, "C2F9") == 0)) writeFlash29F1610(); else if ((strcmp(flashid, "C2C4") == 0) || (strcmp(flashid, "C2A8") == 0) || (strcmp(flashid, "C2C9") == 0)) writeFlash29LV640(); @@ -946,7 +946,6 @@ void writeFlash29LV640() { // Write current byte writeByte_Flash(currByte + c, sdBuffer[c]); // Check if write is complete - //busyCheck29F032(sdBuffer[c]); busyCheck29LV640(currByte + c, sdBuffer[c]); } }