|
@@ -471,6 +471,25 @@ bool TivaFlash::getTargetImgInfo(int nSlvID, int nMbID)
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+bool TivaFlash::getFileImgInfo(void)
|
|
|
|
+{
|
|
|
|
+ if(m_bExecuting)
|
|
|
|
+ return false;
|
|
|
|
+ m_curSlvID = 0;
|
|
|
|
+
|
|
|
|
+ setImgSizeFile(0);
|
|
|
|
+ setImgCRC32File(0.0);
|
|
|
|
+ setImgMaterialFile("");
|
|
|
|
+ setImgBuildFile("");
|
|
|
|
+
|
|
|
|
+ QStringList args;
|
|
|
|
+ args << "--show-file-img-info";
|
|
|
|
+ args << "--plugin-mode";
|
|
|
|
+ args << QString::fromStdString(m_imgFile);
|
|
|
|
+ m_qProcess.start(QString::fromStdString(m_tivaFlashUtilPath), args, QIODevice::ReadOnly);
|
|
|
|
+ return true;
|
|
|
|
+}
|
|
|
|
+
|
|
bool TivaFlash::pingTarget(int nSlvID, int nMbID)
|
|
bool TivaFlash::pingTarget(int nSlvID, int nMbID)
|
|
{
|
|
{
|
|
if(m_bExecuting)
|
|
if(m_bExecuting)
|
|
@@ -569,6 +588,24 @@ bool TivaFlash::uploadImgFile(int nSlvID, int nMbID)
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+bool TivaFlash::reviveBootloader(int nSlvID)
|
|
|
|
+{
|
|
|
|
+ if(m_bExecuting)
|
|
|
|
+ return false;
|
|
|
|
+ if(!_IS_VALID_SLV_ID(nSlvID))
|
|
|
|
+ return false;
|
|
|
|
+ m_curSlvID = nSlvID;
|
|
|
|
+
|
|
|
|
+ QStringList args;
|
|
|
|
+ args << "--revive-boot";
|
|
|
|
+ args << QString::asprintf("--itf-name=%s", m_itfName.c_str());
|
|
|
|
+ getSlavIDs(nSlvID, 0, args);
|
|
|
|
+ getForceAllParities(args);
|
|
|
|
+ args << "--plugin-mode";
|
|
|
|
+ m_qProcess.start(QString::fromStdString(m_tivaFlashUtilPath), args, QIODevice::ReadOnly);
|
|
|
|
+ return true;
|
|
|
|
+}
|
|
|
|
+
|
|
bool TivaFlash::clearImgInfo(int nSlvID)
|
|
bool TivaFlash::clearImgInfo(int nSlvID)
|
|
{
|
|
{
|
|
if(m_bExecuting)
|
|
if(m_bExecuting)
|