aboutsummaryrefslogtreecommitdiffhomepage
path: root/Cart_Reader/FLASH.ino
diff options
context:
space:
mode:
authorChomemel <[email protected]>2023-05-14 08:23:54 +0200
committerGitHub <[email protected]>2023-05-14 08:23:54 +0200
commitfe911778646e030e1d51b12fa6bc5c89016d5030 (patch)
tree7beaf11c0c1fab3d06f7056beeaf9a336cb92bec /Cart_Reader/FLASH.ino
parentb917a6241a9b6ca1f5f6d91ef746aae85b8c2764 (diff)
downloadcartreader-fe911778646e030e1d51b12fa6bc5c89016d5030.tar.gz
cartreader-fe911778646e030e1d51b12fa6bc5c89016d5030.zip
Add files via upload
adding support for AM29LV160, AM29LV320 and AM29LV640
Diffstat (limited to 'Cart_Reader/FLASH.ino')
-rw-r--r--Cart_Reader/FLASH.ino34
1 files changed, 32 insertions, 2 deletions
diff --git a/Cart_Reader/FLASH.ino b/Cart_Reader/FLASH.ino
index 0f214eb..cb7d70a 100644
--- a/Cart_Reader/FLASH.ino
+++ b/Cart_Reader/FLASH.ino
@@ -170,7 +170,7 @@ void flashromMenu8() {
writeFlash29F1601();
else if ((flashid == 0xC2F1) || (flashid == 0xC2F9))
writeFlash29F1610();
- else if ((flashid == 0xC2C4) || (flashid == 0xC249) || (flashid == 0xC2A7) || (flashid == 0xC2A8) || (flashid == 0xC2C9) || (flashid == 0xC2CB))
+ else if ((flashid == 0xC2C4) || (flashid == 0xC249) || (flashid == 0xC2A7) || (flashid == 0xC2A8) || (flashid == 0xC2C9) || (flashid == 0xC2CB) || (flashid == 0x0149) || (flashid == 0x01C4) || (flashid == 0x01F9) || (flashid == 0x01F6) || (flashid == 0x01D7))
writeFlash29LV640();
else if (flashid == 0x017E) {
// sector size, write buffer size
@@ -286,7 +286,7 @@ void flashromMenu16() {
time = millis();
if (flashid == 0xC2F3) {
writeFlash16_29F1601();
- } else if ((flashid == 0xC2C4) || (flashid == 0xC249) || (flashid == 0xC2A7) || (flashid == 0xC2A8) || (flashid == 0xC2C9) || (flashid == 0xC2CB) || (flashid == 0xC2FC)) {
+ } else if ((flashid == 0xC2C4) || (flashid == 0xC249) || (flashid == 0xC2A7) || (flashid == 0xC2A8) || (flashid == 0xC2C9) || (flashid == 0xC2CB) || (flashid == 0x0149) || (flashid == 0x01C4) || (flashid == 0x01F9) || (flashid == 0x01F6) || (flashid == 0x01D7) || (flashid == 0xC2FC)) {
writeFlash16_29LV640();
} else {
writeFlash16();
@@ -447,6 +447,21 @@ idtheflash:
println_Msg(F("ATTENTION 3.3V"));
flashSize = 8388608;
flashromType = 2;
+ } else if ((flashid == 0x0149) || (flashid == 0x01C4)) {
+ println_Msg(F("AM29LV160 detected"));
+ println_Msg(F("ATTENTION 3.3V"));
+ flashSize = 2097152;
+ flashromType = 2;
+ } else if ((flashid == 0x01F9) || (flashid == 0x01F6)) {
+ println_Msg(F("AM29LV320 detected"));
+ println_Msg(F("ATTENTION 3.3V"));
+ flashSize = 4194304;
+ flashromType = 2;
+ } else if (flashid == 0x01D7) {
+ println_Msg(F("AM29LV640 detected"));
+ println_Msg(F("ATTENTION 3.3V"));
+ flashSize = 8388608;
+ flashromType = 2;
} else if (flashid == 0x0141) {
println_Msg(F("AM29F032B detected"));
flashSize = 4194304;
@@ -631,6 +646,21 @@ void id_Flash16() {
println_Msg(F("ATTENTION 3.3V"));
flashSize = 8388608;
flashromType = 2;
+ } else if ((flashid == 0x0149) || (flashid == 0x01C4)) {
+ println_Msg(F("AM29LV160 detected"));
+ println_Msg(F("ATTENTION 3.3V"));
+ flashSize = 2097152;
+ flashromType = 2;
+ } else if ((flashid == 0x01F9) || (flashid == 0x01F6)) {
+ println_Msg(F("AM29LV320 detected"));
+ println_Msg(F("ATTENTION 3.3V"));
+ flashSize = 4194304;
+ flashromType = 2;
+ } else if (flashid == 0x01D7) {
+ println_Msg(F("AM29LV640 detected"));
+ println_Msg(F("ATTENTION 3.3V"));
+ flashSize = 8388608;
+ flashromType = 2;
} else if (flashid == 0xC2FC) {
println_Msg(F("MX26L6420 detected"));
println_Msg(F("ATTENTION 3.3V"));