From 1171059d96c39662cef5c7414cd387048c2372d9 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Thu, 12 Dec 2019 15:44:30 +0200 Subject: improvements and debugging --- Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c') diff --git a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c index 5650cbd1b..b23b4361b 100644 --- a/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c +++ b/Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c @@ -176,6 +176,8 @@ uint32_t FileChunkUploadRequestFunc(MessageContainer* requestContainer) else { FileReceivedLength += WrittenBytes; + ReportWithPackageFilter(CommFilter,"Chunk received", __FILE__,WrittenBytes,FileReceivedLength, RpMessage,msec_millisecondCounter, 0); + //REPORT_MSG (FileReceivedLength,"file upload chunk"); if (FileReceivedLength == FileLength) { -- cgit v1.3.1 From 1b92f30f6dfa27392ffd8460ebeb17c17550db7b Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Wed, 18 Dec 2019 09:00:24 +0200 Subject: version 1.4.6.1 PMR: thread load and power down reporting. fix USB driver large files bug. ids pressure relief. some looking into the thread load sequence --- Software/Embedded_SW/Embedded/.cproject | 4 +- .../Embedded/Common/SWUpdate/FileSystem.c | 25 ++- .../Embedded/Common/SWUpdate/FileSystem.h | 2 + .../Embedded/Communication/CommunicationTask.c | 39 +++-- .../Embedded/Communication/CommunicationTask.h | 2 +- .../Embedded_SW/Embedded/Communication/Container.c | 14 ++ .../Communication/PMR/Common/MessageType.pb-c.c | 28 ++- .../Communication/PMR/Common/MessageType.pb-c.h | 10 +- .../StartThreadLoadingUpdateRequest.pb-c.c | 72 -------- .../StartThreadLoadingUpdateRequest.pb-c.h | 70 -------- .../StartThreadLoadingUpdateResponse.pb-c.c | 92 ---------- .../StartThreadLoadingUpdateResponse.pb-c.h | 73 -------- .../PMR/Diagnostics/ThreadLoadingState.pb-c.c | 63 ------- .../PMR/Diagnostics/ThreadLoadingState.pb-c.h | 56 ------ .../FirmwareUpgrade/VersionFileDescriptor.pb-c.c | 19 +- .../FirmwareUpgrade/VersionFileDescriptor.pb-c.h | 4 +- .../PMR/Power/AbortPowerDownRequest.pb-c.c | 72 ++++++++ .../PMR/Power/AbortPowerDownRequest.pb-c.h | 70 ++++++++ .../PMR/Power/AbortPowerDownResponse.pb-c.c | 72 ++++++++ .../PMR/Power/AbortPowerDownResponse.pb-c.h | 70 ++++++++ .../Communication/PMR/Power/PowerDownState.pb-c.c | 65 +++++++ .../Communication/PMR/Power/PowerDownState.pb-c.h | 57 ++++++ .../PMR/Power/StartPowerDownRequest.pb-c.c | 72 ++++++++ .../PMR/Power/StartPowerDownRequest.pb-c.h | 70 ++++++++ .../PMR/Power/StartPowerDownResponse.pb-c.c | 118 +++++++++++++ .../PMR/Power/StartPowerDownResponse.pb-c.h | 76 ++++++++ .../ContinueThreadLoadingRequest.pb-c.c | 92 ++++++++++ .../ContinueThreadLoadingRequest.pb-c.h | 72 ++++++++ .../ContinueThreadLoadingResponse.pb-c.c | 105 +++++++++++ .../ContinueThreadLoadingResponse.pb-c.h | 74 ++++++++ .../ThreadLoading/StartThreadLoadingRequest.pb-c.c | 72 ++++++++ .../ThreadLoading/StartThreadLoadingRequest.pb-c.h | 70 ++++++++ .../StartThreadLoadingResponse.pb-c.c | 105 +++++++++++ .../StartThreadLoadingResponse.pb-c.h | 74 ++++++++ .../PMR/ThreadLoading/ThreadLoadingState.pb-c.c | 47 +++++ .../PMR/ThreadLoading/ThreadLoadingState.pb-c.h | 48 +++++ .../Embedded/Drivers/Motors/MotorActions.c | 1 + .../Embedded/Drivers/USB_Communication/USBCDCD.c | 96 ++++++---- .../Embedded/Drivers/flash_ram/MCU_E2Prom.c | 21 +++ .../Embedded/Drivers/flash_ram/MCU_E2Prom.h | 5 + .../Embedded/Modules/AlarmHandling/AlarmHandling.c | 1 - .../Embedded/Modules/Control/MillisecTask.c | 1 - .../Embedded_SW/Embedded/Modules/Control/control.c | 2 + .../Embedded/Modules/Diagnostics/Diagnostics.c | 23 ++- .../Embedded_SW/Embedded/Modules/IDS/IDS_maint.c | 5 +- .../Embedded_SW/Embedded/Modules/Thread/Thread.h | 1 + .../Embedded/Modules/Thread/ThreadLoad.c | 195 ++++++++++++++++++++- .../Embedded/Modules/Thread/Thread_ex.h | 3 + .../Embedded/Modules/Thread/Thread_print.c | 34 ++-- .../StateMachines/Initialization/InitSequence.c | 6 +- .../Initialization/PowerOffSequence.c | 147 +++++++++++++++- .../Initialization/PowerOffSequence.h | 4 + 52 files changed, 2068 insertions(+), 551 deletions(-) delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/StartThreadLoadingUpdateRequest.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/StartThreadLoadingUpdateRequest.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/StartThreadLoadingUpdateResponse.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/StartThreadLoadingUpdateResponse.pb-c.h delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadLoadingState.pb-c.c delete mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Diagnostics/ThreadLoadingState.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/AbortPowerDownRequest.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/AbortPowerDownRequest.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/AbortPowerDownResponse.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/AbortPowerDownResponse.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/PowerDownState.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/PowerDownState.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/StartPowerDownRequest.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/StartPowerDownRequest.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/StartPowerDownResponse.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/Power/StartPowerDownResponse.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingRequest.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ContinueThreadLoadingResponse.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingRequest.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/StartThreadLoadingResponse.pb-c.h create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.c create mode 100644 Software/Embedded_SW/Embedded/Communication/PMR/ThreadLoading/ThreadLoadingState.pb-c.h (limited to 'Software/Embedded_SW/Embedded/Common/SWUpdate/FileSystem.c') diff --git a/Software/Embedded_SW/Embedded/.cproject b/Software/Embedded_SW/Embedded/.cproject index b1d8a3283..7463c7147 100644 --- a/Software/Embedded_SW/Embedded/.cproject +++ b/Software/Embedded_SW/Embedded/.cproject @@ -170,7 +170,7 @@ - + @@ -288,7 +288,7 @@ - +