Skip to content

Commit

Permalink
Added support new chip type - AT45DBxx SPI Flash
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbigmdm committed May 23, 2024
1 parent c25c6b0 commit 2ee35bc
Show file tree
Hide file tree
Showing 35 changed files with 1,580 additions and 1,118 deletions.
5 changes: 4 additions & 1 deletion IMSProg_editor/ezp_chip_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ void MainWindow::on_actionOpen_triggered()
else if(chips[recNo].chipTypeTxt.compare("93_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xff, 0xcc, 0xcc)));
else if(chips[recNo].chipTypeTxt.compare("95_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xcc, 0xff, 0xcc)));
else if(chips[recNo].chipTypeTxt.compare("25_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xff, 0xcc, 0xff)));
else if(chips[recNo].chipTypeTxt.compare("45_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xcc, 0xcc, 0xff)));
item = new QStandardItem(chips[recNo].chipManuf);
model->setItem(recNo, 1, item);
item = new QStandardItem(chips[recNo].chipName);
Expand Down Expand Up @@ -253,7 +254,7 @@ QString MainWindow::bytePrint(unsigned char z)
QString rez;
rez = "0";
if (a < 1024) rez = QString::number(a) + " B";
else if ((a < 1024 * 1024)) rez = QString::number(a/1024) + " K";
else if ((a < 1024 * 1024) || (a % (1024 * 1024) > 0)) rez = QString::number(a/1024) + " K";
else rez = QString::number(a/1024/1024) + " M";
return rez;
}
Expand All @@ -275,6 +276,7 @@ QString MainWindow::bytePrint(unsigned char z)
else if(tmpStr.compare("93_EEPROM")==0) model->item(row, 0)->setBackground(QBrush(QColor(0xff, 0xcc, 0xcc)));
else if(tmpStr.compare("95_EEPROM")==0) model->item(row, 0)->setBackground(QBrush(QColor(0xcc, 0xff, 0xcc)));
else if(tmpStr.compare("25_EEPROM")==0) model->item(row, 0)->setBackground(QBrush(QColor(0xff, 0xcc, 0xff)));
else if(tmpStr.compare("45_EEPROM")==0) model->item(row, 0)->setBackground(QBrush(QColor(0xcc, 0xcc, 0xff)));
else model->item(row, 0)->setBackground(QBrush(QColor(0xff, 0xff, 0xff)));
}
}
Expand Down Expand Up @@ -802,6 +804,7 @@ void MainWindow::on_actionImport_from_CSV_triggered()
else if(chType.compare("93_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xff, 0xcc, 0xcc)));
else if(chType.compare("95_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xcc, 0xff, 0xcc)));
else if(chType.compare("25_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xff, 0xcc, 0xff)));
else if(chType.compare("45_EEPROM")==0) model->item(recNo, 0)->setBackground(QBrush(QColor(0xcc, 0xcc, 0xff)));
else model->item(recNo, 0)->setBackground(QBrush(QColor(0xff, 0xff, 0xff)));

}
Expand Down
2 changes: 1 addition & 1 deletion IMSProg_editor/ezp_chip_editor.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class MainWindow : public QMainWindow
QStandardItem *item;
const QString csvHeader = "Type;Manufacture;IC Name;JEDEC ID;SIZE;Block size;Type HEX;Algorithm;Delay;Extend;EEPROM;EEPROM pages;VCC\n";
const QString csvHeader2 = "Type,Manufacture,IC Name,JEDEC ID,SIZE,Block size,Type HEX,Algorithm,Delay,Extend,EEPROM,EEPROM pages,VCC\n";
QVector <QString> chType = {"SPI_FLASH","25_EEPROM","93_EEPROM","24_EEPROM","95_EEPROM"};
QVector <QString> chType = {"SPI_FLASH","25_EEPROM","93_EEPROM","24_EEPROM","95_EEPROM", "45_EEPROM"};
struct chip_data {
QString chipManuf;
QString chipTypeTxt;
Expand Down
44 changes: 22 additions & 22 deletions IMSProg_editor/language/chipEditor_de_DE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@
<message>
<location filename="../ezp_chip_editor.cpp" line="51"/>
<location filename="../ezp_chip_editor.cpp" line="53"/>
<location filename="../ezp_chip_editor.cpp" line="732"/>
<location filename="../ezp_chip_editor.cpp" line="753"/>
<location filename="../ezp_chip_editor.cpp" line="734"/>
<location filename="../ezp_chip_editor.cpp" line="755"/>
<source>Open the file</source>
<translation>Öffnen Sie die Datei</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="56"/>
<location filename="../ezp_chip_editor.cpp" line="697"/>
<location filename="../ezp_chip_editor.cpp" line="735"/>
<location filename="../ezp_chip_editor.cpp" line="756"/>
<location filename="../ezp_chip_editor.cpp" line="699"/>
<location filename="../ezp_chip_editor.cpp" line="737"/>
<location filename="../ezp_chip_editor.cpp" line="758"/>
<source>Current file: </source>
<translation>Aktuelle Datei: </translation>
</message>
Expand Down Expand Up @@ -223,47 +223,47 @@ Seiten</translation>
<translation>VCC</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="528"/>
<location filename="../ezp_chip_editor.cpp" line="565"/>
<location filename="../ezp_chip_editor.cpp" line="593"/>
<location filename="../ezp_chip_editor.cpp" line="632"/>
<location filename="../ezp_chip_editor.cpp" line="672"/>
<location filename="../ezp_chip_editor.cpp" line="792"/>
<location filename="../ezp_chip_editor.cpp" line="824"/>
<location filename="../ezp_chip_editor.cpp" line="530"/>
<location filename="../ezp_chip_editor.cpp" line="567"/>
<location filename="../ezp_chip_editor.cpp" line="595"/>
<location filename="../ezp_chip_editor.cpp" line="634"/>
<location filename="../ezp_chip_editor.cpp" line="674"/>
<location filename="../ezp_chip_editor.cpp" line="794"/>
<location filename="../ezp_chip_editor.cpp" line="827"/>
<source>Warning</source>
<translation>Warnung</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="528"/>
<location filename="../ezp_chip_editor.cpp" line="565"/>
<location filename="../ezp_chip_editor.cpp" line="593"/>
<location filename="../ezp_chip_editor.cpp" line="632"/>
<location filename="../ezp_chip_editor.cpp" line="672"/>
<location filename="../ezp_chip_editor.cpp" line="530"/>
<location filename="../ezp_chip_editor.cpp" line="567"/>
<location filename="../ezp_chip_editor.cpp" line="595"/>
<location filename="../ezp_chip_editor.cpp" line="634"/>
<location filename="../ezp_chip_editor.cpp" line="674"/>
<source>No string selected.</source>
<translation>Keine Zeichenfolge ausgewählt.</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="692"/>
<location filename="../ezp_chip_editor.cpp" line="694"/>
<source>Saving file</source>
<translation>Speichern der Datei</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="694"/>
<location filename="../ezp_chip_editor.cpp" line="696"/>
<source>Save file</source>
<translation>Datei speichern</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="751"/>
<location filename="../ezp_chip_editor.cpp" line="753"/>
<source>Opening file</source>
<translation>Datei öffnen</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="792"/>
<location filename="../ezp_chip_editor.cpp" line="794"/>
<source>Invalid CSV data file format.</source>
<translation>Ungültiges CSV-Dateiformat.</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="824"/>
<location filename="../ezp_chip_editor.cpp" line="827"/>
<source>Invalid CSV header file format.</source>
<translation>Ungültiges CSV-Header-Dateiformat.</translation>
</message>
Expand Down
44 changes: 22 additions & 22 deletions IMSProg_editor/language/chipEditor_es_ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@
<message>
<location filename="../ezp_chip_editor.cpp" line="51"/>
<location filename="../ezp_chip_editor.cpp" line="53"/>
<location filename="../ezp_chip_editor.cpp" line="732"/>
<location filename="../ezp_chip_editor.cpp" line="753"/>
<location filename="../ezp_chip_editor.cpp" line="734"/>
<location filename="../ezp_chip_editor.cpp" line="755"/>
<source>Open the file</source>
<translation>Abrir el expediente</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="56"/>
<location filename="../ezp_chip_editor.cpp" line="697"/>
<location filename="../ezp_chip_editor.cpp" line="735"/>
<location filename="../ezp_chip_editor.cpp" line="756"/>
<location filename="../ezp_chip_editor.cpp" line="699"/>
<location filename="../ezp_chip_editor.cpp" line="737"/>
<location filename="../ezp_chip_editor.cpp" line="758"/>
<source>Current file: </source>
<translation>Archivo actual:</translation>
</message>
Expand Down Expand Up @@ -223,47 +223,47 @@ páginas</translation>
<translation>Питание</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="528"/>
<location filename="../ezp_chip_editor.cpp" line="565"/>
<location filename="../ezp_chip_editor.cpp" line="593"/>
<location filename="../ezp_chip_editor.cpp" line="632"/>
<location filename="../ezp_chip_editor.cpp" line="672"/>
<location filename="../ezp_chip_editor.cpp" line="792"/>
<location filename="../ezp_chip_editor.cpp" line="824"/>
<location filename="../ezp_chip_editor.cpp" line="530"/>
<location filename="../ezp_chip_editor.cpp" line="567"/>
<location filename="../ezp_chip_editor.cpp" line="595"/>
<location filename="../ezp_chip_editor.cpp" line="634"/>
<location filename="../ezp_chip_editor.cpp" line="674"/>
<location filename="../ezp_chip_editor.cpp" line="794"/>
<location filename="../ezp_chip_editor.cpp" line="827"/>
<source>Warning</source>
<translation>Advertencia</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="528"/>
<location filename="../ezp_chip_editor.cpp" line="565"/>
<location filename="../ezp_chip_editor.cpp" line="593"/>
<location filename="../ezp_chip_editor.cpp" line="632"/>
<location filename="../ezp_chip_editor.cpp" line="672"/>
<location filename="../ezp_chip_editor.cpp" line="530"/>
<location filename="../ezp_chip_editor.cpp" line="567"/>
<location filename="../ezp_chip_editor.cpp" line="595"/>
<location filename="../ezp_chip_editor.cpp" line="634"/>
<location filename="../ezp_chip_editor.cpp" line="674"/>
<source>No string selected.</source>
<translation>No se ha seleccionado ninguna cadena.</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="692"/>
<location filename="../ezp_chip_editor.cpp" line="694"/>
<source>Saving file</source>
<translation>Guardar archivo</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="694"/>
<location filename="../ezp_chip_editor.cpp" line="696"/>
<source>Save file</source>
<translation>Guardar archivo</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="751"/>
<location filename="../ezp_chip_editor.cpp" line="753"/>
<source>Opening file</source>
<translation>Abrir expediente</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="792"/>
<location filename="../ezp_chip_editor.cpp" line="794"/>
<source>Invalid CSV data file format.</source>
<translation>Formato de archivo de datos CSV no válido.</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="824"/>
<location filename="../ezp_chip_editor.cpp" line="827"/>
<source>Invalid CSV header file format.</source>
<translation>Formato de archivo de cabecera CSV no válido.</translation>
</message>
Expand Down
44 changes: 22 additions & 22 deletions IMSProg_editor/language/chipEditor_hu_HU.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,16 +132,16 @@
<message>
<location filename="../ezp_chip_editor.cpp" line="51"/>
<location filename="../ezp_chip_editor.cpp" line="53"/>
<location filename="../ezp_chip_editor.cpp" line="732"/>
<location filename="../ezp_chip_editor.cpp" line="753"/>
<location filename="../ezp_chip_editor.cpp" line="734"/>
<location filename="../ezp_chip_editor.cpp" line="755"/>
<source>Open the file</source>
<translation>Fájl megnyitása</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="56"/>
<location filename="../ezp_chip_editor.cpp" line="697"/>
<location filename="../ezp_chip_editor.cpp" line="735"/>
<location filename="../ezp_chip_editor.cpp" line="756"/>
<location filename="../ezp_chip_editor.cpp" line="699"/>
<location filename="../ezp_chip_editor.cpp" line="737"/>
<location filename="../ezp_chip_editor.cpp" line="758"/>
<source>Current file: </source>
<translation>Jelenlegi fájl: </translation>
</message>
Expand Down Expand Up @@ -221,47 +221,47 @@ lapok</translation>
<translation>VCC</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="528"/>
<location filename="../ezp_chip_editor.cpp" line="565"/>
<location filename="../ezp_chip_editor.cpp" line="593"/>
<location filename="../ezp_chip_editor.cpp" line="632"/>
<location filename="../ezp_chip_editor.cpp" line="672"/>
<location filename="../ezp_chip_editor.cpp" line="792"/>
<location filename="../ezp_chip_editor.cpp" line="824"/>
<location filename="../ezp_chip_editor.cpp" line="530"/>
<location filename="../ezp_chip_editor.cpp" line="567"/>
<location filename="../ezp_chip_editor.cpp" line="595"/>
<location filename="../ezp_chip_editor.cpp" line="634"/>
<location filename="../ezp_chip_editor.cpp" line="674"/>
<location filename="../ezp_chip_editor.cpp" line="794"/>
<location filename="../ezp_chip_editor.cpp" line="827"/>
<source>Warning</source>
<translation>Figyelmeztetés</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="528"/>
<location filename="../ezp_chip_editor.cpp" line="565"/>
<location filename="../ezp_chip_editor.cpp" line="593"/>
<location filename="../ezp_chip_editor.cpp" line="632"/>
<location filename="../ezp_chip_editor.cpp" line="672"/>
<location filename="../ezp_chip_editor.cpp" line="530"/>
<location filename="../ezp_chip_editor.cpp" line="567"/>
<location filename="../ezp_chip_editor.cpp" line="595"/>
<location filename="../ezp_chip_editor.cpp" line="634"/>
<location filename="../ezp_chip_editor.cpp" line="674"/>
<source>No string selected.</source>
<translation>Nincs karakterlánc( string) kiválasztva.</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="692"/>
<location filename="../ezp_chip_editor.cpp" line="694"/>
<source>Saving file</source>
<translation>Fájl mentése</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="694"/>
<location filename="../ezp_chip_editor.cpp" line="696"/>
<source>Save file</source>
<translation>Fájl mentése</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="751"/>
<location filename="../ezp_chip_editor.cpp" line="753"/>
<source>Opening file</source>
<translation>Fájl megnyitása</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="792"/>
<location filename="../ezp_chip_editor.cpp" line="794"/>
<source>Invalid CSV data file format.</source>
<translation>Érvénytelen CSV adatfájlformátum.</translation>
</message>
<message>
<location filename="../ezp_chip_editor.cpp" line="824"/>
<location filename="../ezp_chip_editor.cpp" line="827"/>
<source>Invalid CSV header file format.</source>
<translation>Érvénytelen CSV fejlécfájlformátum.</translation>
</message>
Expand Down
Loading

0 comments on commit 2ee35bc

Please sign in to comment.