aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Common/SWUpdate
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-07-24 14:03:35 +0300
committerShlomo Hecht <shlomo@twine-s.com>2019-07-24 14:03:35 +0300
commit1a4e2e8a731c7d4c6150de73b36b7c40d6422cd7 (patch)
treea211d3fdbe6dc8e98a14a50b4d7d2161bbc91a4f /Software/Embedded_SW/Embedded/Common/SWUpdate
parent17a32af2a2500d6da0e59d3085ddfd43d0ee5270 (diff)
downloadTango-1a4e2e8a731c7d4c6150de73b36b7c40d6422cd7.tar.gz
Tango-1a4e2e8a731c7d4c6150de73b36b7c40d6422cd7.zip
Version 1.4.2.5 firmware upgrade works, improved thread load. (works????)
Diffstat (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate')
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c2
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c5
-rw-r--r--Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.h1
3 files changed, 3 insertions, 5 deletions
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
index 05b118c90..1e02283e0 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c
@@ -53,7 +53,7 @@ FIL *UploadFileHandle = 0; //the system supports a single active file
FIL *DownloadFileHandle = 0; //the system supports a single active file
char FileHandleChar[5];
char ErrorMsg[100];
-#define MAX_CHUNK_LENGTH 4000
+#define MAX_CHUNK_LENGTH 5500
int32_t FileLength = 0;
int32_t FileReceivedLength = 0;
int32_t FileSentLength = 0;
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
index dabd5ff44..139b452dc 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.c
@@ -71,6 +71,7 @@ uint32_t ActivateVersionCallBackFunction(uint32_t IfIndex, uint32_t BusyFlag)
if (Reboot == true)
{
+ LOG_ERROR(255,"Update successful, Rebooting in 5 seconds");
Task_sleep (120000000*5);
Power_Reset();
}
@@ -186,10 +187,6 @@ uint32_t ActivateVersionRequestFunc(MessageContainer* requestContainer)
activate_version_request__free_unpacked(request,NULL);
SendChars(container_buffer, container_size);
- if (Reboot == true)
- {
- Power_Reset();
- }
return OK;
}
diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.h b/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.h
index 1d11a84b6..2b0a9bff9 100644
--- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.h
+++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FirmwareUpgrade.h
@@ -9,6 +9,7 @@
#define COMMON_SWUPDATE_FIRMWAREUPGRADE_H_
extern int CurrentFileSize;
+extern int CurrentRunningFile;
uint32_t ActivateVersionRequestFunc(MessageContainer* requestContainer);
uint32_t ValidateVersionRequestFunc(MessageContainer* requestContainer);