Skip to content

Commit

Permalink
V2.7: Fix flashing 29F032 Snes repro
Browse files Browse the repository at this point in the history
  • Loading branch information
sanni committed Jan 31, 2019
1 parent 4d1d964 commit 7f74f22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cart_Reader/Cart_Reader.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -37,7 +37,7 @@
vogelfreiheit - N64 flashram fix
**********************************************************************************/
char ver[5] = "2.6";
char ver[5] = "2.7";

/******************************************
Define Starting Point
Expand Down
8 changes: 4 additions & 4 deletions Cart_Reader/FLASH.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit 7f74f22

Please sign in to comment.