HI Team,
I’m trying to figure out how I’m going to use the IFU on a SC20260D-based product we have in the field. I inherited this product from another engineer and I am having trouble getting the IFU to work updating my application with older firmware version to the latest - it will update the firmware fine then it will wipe the application without installing the new TCA and I have to download it manually. Does this have to do with 2.1.3 changing the way that the updater works?
Here is my code that I’m using to fire the IFU:
try{
updater.AuthenticateFirmware(out var versionFw);
try
{
updater.AuthenticateApplication(out var versionApp);
// create updating screen and flush
scrn.FillRectangle(DataDefs.LacoBckrnd, 0, 0, 800, 480);
scrn.DrawString(RetString("updatesoftwaremsg"), DataDefs.fontArial_36, DataDefs.LacoDataFont, 220, 200);
scrn.DrawString(RetString("wait99"), DataDefs.fontArial_36, DataDefs.LacoDataFont, 250, 250);
scrn.Flush();
updater.FlashAndReset(); // never returns
}
catch
{
//Application authentication failed.
Stat.UpdateErrorcode = 4;
Stat.UpdateSoftware = false;
}
}
catch
{
//Firmware authentication failed.
Stat.UpdateErrorcode = 3;
Stat.UpdateSoftware = false;
}
Am I missing a step here? What can I do to make sure that when our next software release comes out our customers will be able to update properly?