Print first 40 bytes if flashrom is unknown

This commit is contained in:
sanni 2022-01-13 17:07:58 +01:00
parent 21ac032fb9
commit 6a830e651d
3 changed files with 26 additions and 4 deletions

View File

@ -4,7 +4,7 @@
This project represents a community-driven effort to provide
an easy to build and easy to modify cartridge dumper.
Date: 29.11.2021
Date: 13.01.2022
Version: 7.3
SD lib: https://github.com/greiman/SdFat

View File

@ -580,7 +580,21 @@ idtheflash:
print_Msg(F("ID Type 2: "));
println_Msg(flashid);
println_Msg(" ");
print_Error(F("UNKNOWN FLASHROM"), true);
println_Msg(F("UNKNOWN FLASHROM"));
println_Msg(" ");
println_Msg(F("Press Button..."));
display_Update();
wait();
// print first 40 bytes of flash
display_Clear();
println_Msg(F("First 40 bytes:"));
println_Msg(F(""));
printFlash(40);
println_Msg(F(""));
display_Update();
resetFlash8();
print_Error(F("Press Button to reset"), true);
}
println_Msg(" ");
println_Msg(F("Press Button..."));

View File

@ -1,11 +1,19 @@
//******************************************
// CHOOSE HARDWARE VERSION
// !!! CHOOSE HARDWARE VERSION !!!
//******************************************
#define HW4
// Remove // in front of the line with your hardware version
//#define HW4
//#define HW3
//#define HW2
//#define HW1
//#define SERIAL_MONITOR
//******************************************
// !!! CHOOSE HARDWARE VERSION !!!
//******************************************
#if !(defined(HW1) || defined(HW2) || defined(HW3) || defined(HW4) || defined(SERIAL_MONITOR))
# error !!! PLEASE CHOOSE HARDWARE VERSION IN OPTIONS.H !!!
#endif
#if defined(HW4)
#define enable_LCD