mirror of
https://github.com/sanni/cartreader.git
synced 2024-11-10 23:15:08 +01:00
Add files via upload
adding support for AM29LV160, AM29LV320 and AM29LV640
This commit is contained in:
parent
b917a6241a
commit
fe91177864
@ -170,7 +170,7 @@ void flashromMenu8() {
|
|||||||
writeFlash29F1601();
|
writeFlash29F1601();
|
||||||
else if ((flashid == 0xC2F1) || (flashid == 0xC2F9))
|
else if ((flashid == 0xC2F1) || (flashid == 0xC2F9))
|
||||||
writeFlash29F1610();
|
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();
|
writeFlash29LV640();
|
||||||
else if (flashid == 0x017E) {
|
else if (flashid == 0x017E) {
|
||||||
// sector size, write buffer size
|
// sector size, write buffer size
|
||||||
@ -286,7 +286,7 @@ void flashromMenu16() {
|
|||||||
time = millis();
|
time = millis();
|
||||||
if (flashid == 0xC2F3) {
|
if (flashid == 0xC2F3) {
|
||||||
writeFlash16_29F1601();
|
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();
|
writeFlash16_29LV640();
|
||||||
} else {
|
} else {
|
||||||
writeFlash16();
|
writeFlash16();
|
||||||
@ -447,6 +447,21 @@ idtheflash:
|
|||||||
println_Msg(F("ATTENTION 3.3V"));
|
println_Msg(F("ATTENTION 3.3V"));
|
||||||
flashSize = 8388608;
|
flashSize = 8388608;
|
||||||
flashromType = 2;
|
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) {
|
} else if (flashid == 0x0141) {
|
||||||
println_Msg(F("AM29F032B detected"));
|
println_Msg(F("AM29F032B detected"));
|
||||||
flashSize = 4194304;
|
flashSize = 4194304;
|
||||||
@ -631,6 +646,21 @@ void id_Flash16() {
|
|||||||
println_Msg(F("ATTENTION 3.3V"));
|
println_Msg(F("ATTENTION 3.3V"));
|
||||||
flashSize = 8388608;
|
flashSize = 8388608;
|
||||||
flashromType = 2;
|
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) {
|
} else if (flashid == 0xC2FC) {
|
||||||
println_Msg(F("MX26L6420 detected"));
|
println_Msg(F("MX26L6420 detected"));
|
||||||
println_Msg(F("ATTENTION 3.3V"));
|
println_Msg(F("ATTENTION 3.3V"));
|
||||||
|
Loading…
Reference in New Issue
Block a user