mirror of
https://github.com/sanni/cartreader.git
synced 2024-12-24 12:01:53 +01:00
flash ID bugfix
This commit is contained in:
parent
fcc3ba2bba
commit
0081ad7b2f
@ -4,8 +4,8 @@
|
|||||||
This project represents a community-driven effort to provide
|
This project represents a community-driven effort to provide
|
||||||
an easy to build and easy to modify cartridge dumper.
|
an easy to build and easy to modify cartridge dumper.
|
||||||
|
|
||||||
Date: 13.01.2022
|
Date: 19.01.2022
|
||||||
Version: 7.3
|
Version: 7.4
|
||||||
|
|
||||||
SD lib: https://github.com/greiman/SdFat
|
SD lib: https://github.com/greiman/SdFat
|
||||||
OLED lib: https://github.com/adafruit/Adafruit_SSD1306
|
OLED lib: https://github.com/adafruit/Adafruit_SSD1306
|
||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
**********************************************************************************/
|
**********************************************************************************/
|
||||||
|
|
||||||
char ver[5] = "7.3";
|
char ver[5] = "7.4";
|
||||||
|
|
||||||
/******************************************
|
/******************************************
|
||||||
Libraries
|
Libraries
|
||||||
@ -604,7 +604,7 @@ void aboutScreen() {
|
|||||||
display_Clear();
|
display_Clear();
|
||||||
println_Msg(F("Cartridge Reader"));
|
println_Msg(F("Cartridge Reader"));
|
||||||
println_Msg(F("github.com/sanni"));
|
println_Msg(F("github.com/sanni"));
|
||||||
print_Msg(F("2021 Version "));
|
print_Msg(F("2022 Version "));
|
||||||
println_Msg(ver);
|
println_Msg(ver);
|
||||||
println_Msg(F(""));
|
println_Msg(F(""));
|
||||||
println_Msg(F(""));
|
println_Msg(F(""));
|
||||||
|
@ -189,6 +189,7 @@ void flashromMenu8() {
|
|||||||
case 4:
|
case 4:
|
||||||
time = 0;
|
time = 0;
|
||||||
display_Clear();
|
display_Clear();
|
||||||
|
resetFlash8();
|
||||||
println_Msg(F("ID Flashrom"));
|
println_Msg(F("ID Flashrom"));
|
||||||
switch (flashromType) {
|
switch (flashromType) {
|
||||||
case 1: idFlash29F032(); break;
|
case 1: idFlash29F032(); break;
|
||||||
@ -399,8 +400,8 @@ void epromMenu() {
|
|||||||
Flash IDs
|
Flash IDs
|
||||||
*****************************************/
|
*****************************************/
|
||||||
void id_Flash8() {
|
void id_Flash8() {
|
||||||
// ID flash
|
// Test if 28FXXX series flash (type 2 flashrom)
|
||||||
idFlash29F032();
|
idFlash28FXXX();
|
||||||
|
|
||||||
// Print start screen
|
// Print start screen
|
||||||
idtheflash:
|
idtheflash:
|
||||||
@ -557,16 +558,19 @@ idtheflash:
|
|||||||
flashromType = 3;
|
flashromType = 3;
|
||||||
}
|
}
|
||||||
else if (secondID == 1) {
|
else if (secondID == 1) {
|
||||||
// Backup first ID read-out
|
// Read ID a second time using a different command (type 1 flashrom)
|
||||||
strncpy(vendorID, flashid, 5);
|
resetFlash8();
|
||||||
// Read ID a second time using a different command
|
idFlash29F032();
|
||||||
idFlash29F1610();
|
|
||||||
secondID = 2;
|
secondID = 2;
|
||||||
goto idtheflash;
|
goto idtheflash;
|
||||||
}
|
}
|
||||||
else if (secondID == 2) {
|
else if (secondID == 2) {
|
||||||
// test if 28FXXX series flash
|
// Backup first ID read-out
|
||||||
idFlash28FXXX();
|
strncpy(vendorID, flashid, 5);
|
||||||
|
|
||||||
|
// Read ID a third time using a different command (type 2 flashrom)
|
||||||
|
resetFlash8();
|
||||||
|
idFlash29F1610();
|
||||||
secondID = 0;
|
secondID = 0;
|
||||||
goto idtheflash;
|
goto idtheflash;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user