From 35db5e7f33684864366aae4d7fd28cb775c536f8 Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Wed, 15 May 2024 16:05:00 +0200 Subject: [PATCH 1/2] Ota H7 unmount filesystem before reset hotfix --- src/ota/implementation/OTASTM32H7.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ota/implementation/OTASTM32H7.cpp b/src/ota/implementation/OTASTM32H7.cpp index b1cbe7017..c3cefdd86 100644 --- a/src/ota/implementation/OTASTM32H7.cpp +++ b/src/ota/implementation/OTASTM32H7.cpp @@ -83,6 +83,8 @@ OTACloudProcessInterface::State STM32H7OTACloudProcess::flashOTA() { return OtaStorageOpenFail; } + storageClean(); + // this sets the registries in RTC to load the firmware from the storage selected at the next reboot STM32H747::writeBackupRegister(RTCBackup::DR0, 0x07AA); STM32H747::writeBackupRegister(RTCBackup::DR1, storage); @@ -113,7 +115,9 @@ void STM32H7OTACloudProcess::storageClean() { DEBUG_VERBOSE(F("storage clean")); if(decompressed != nullptr) { - fclose(decompressed); + int res = fclose(decompressed); + DEBUG_VERBOSE("error on fclose %d", res); + decompressed = nullptr; } From ee8e9bb37064cc19035195c7e803d7b63e86bbe1 Mon Sep 17 00:00:00 2001 From: Andrea Gilardoni Date: Thu, 18 Apr 2024 15:39:52 +0200 Subject: [PATCH 2/2] CI: removed unused libraries --- .github/workflows/compile-examples.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/compile-examples.yml b/.github/workflows/compile-examples.yml index 0e6c98ef9..a4e68ab0d 100644 --- a/.github/workflows/compile-examples.yml +++ b/.github/workflows/compile-examples.yml @@ -170,7 +170,6 @@ jobs: - name: arduino:mbed_portenta libraries: | - name: ArduinoECCX08 - - name: Arduino_Portenta_OTA sketch-paths: | - examples/ArduinoIoTCloud-DeferredOTA - examples/utility/Provisioning @@ -181,7 +180,6 @@ jobs: # Install mbed_nicla platform via Boards Manager - name: arduino:mbed_nicla libraries: | - - name: Arduino_Portenta_OTA sketch-paths: | - examples/ArduinoIoTCloud-DeferredOTA - examples/utility/Provisioning @@ -193,7 +191,6 @@ jobs: - name: arduino:mbed_opta libraries: | - name: ArduinoECCX08 - - name: Arduino_Portenta_OTA sketch-paths: | - examples/ArduinoIoTCloud-DeferredOTA - examples/utility/Provisioning @@ -205,7 +202,6 @@ jobs: - name: arduino:mbed_giga libraries: | - name: ArduinoECCX08 - - name: Arduino_Portenta_OTA sketch-paths: | - examples/ArduinoIoTCloud-DeferredOTA - examples/utility/Provisioning @@ -229,8 +225,6 @@ jobs: platforms: | # Install arduino_esp32 platform via Boards Manager - name: arduino:esp32 - libraries: | - - name: Arduino_ESP32_OTA sketch-paths: | - examples/ArduinoIoTCloud-DeferredOTA # Edge Control @@ -257,8 +251,6 @@ jobs: # Install ESP32 platform via Boards Manager - name: esp32:esp32 source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json - libraries: | - - name: Arduino_ESP32_OTA sketch-paths: | - examples/ArduinoIoTCloud-DeferredOTA