aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-10-27 12:04:23 +0200
committerShlomo Hecht <shlomo@twine-s.com>2020-10-27 12:04:23 +0200
commit2d36ca07a6b43cf997aea3a987ed97cd3afcb655 (patch)
tree66967c02359b13965cbb5dda303d54566cbde65d /Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
parentc1dbc0def7c7401432195461df5eb4face4025ba (diff)
downloadTango-2d36ca07a6b43cf997aea3a987ed97cd3afcb655.tar.gz
Tango-2d36ca07a6b43cf997aea3a987ed97cd3afcb655.zip
fix flash writing (parameters. now causes reset!), improve logs saving on errfile.txt, prevent motor alarms after hw configuration
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
index dbbe47ddb..2d39d25ec 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
@@ -165,6 +165,8 @@ uint32_t ActivateVersionRequestFunc(MessageContainer* requestContainer)
usnprintf(FullPath, 50, "%s%s%s", request->path,"/", VersionPackage->filedescriptors[File_i]->filename);
FFresult = f_unlink("//SYSINFO//EMBPARAM.CFG");
FFresult |= f_rename (FullPath, "//SYSINFO//EMBPARAM.CFG");
+ FlashInit();
+ Reboot = true;
LoadConfigurationParamsFromFile(true);
Report("ConfigParams",__FILE__,FFresult,(int)NumberOfFiles,RpWarning,CurrentRunningFile,0);
CurrentRunningFile++;
@@ -173,7 +175,9 @@ uint32_t ActivateVersionRequestFunc(MessageContainer* requestContainer)
usnprintf(FullPath, 50, "%s%s%s", request->path,"/", VersionPackage->filedescriptors[File_i]->filename);
FFresult = f_unlink("//SYSINFO//PROCESSP.CFG");
FFresult |= f_rename (FullPath, "//SYSINFO//PROCESSP.CFG");
- LoadProcessParamsFromFile();
+ //LoadProcessParamsFromFile();
+ FlashInit();
+ Reboot = true;
Report("ProcessParams",__FILE__,FFresult,(int)NumberOfFiles,RpWarning,CurrentRunningFile,0);
CurrentRunningFile++;
break;