File tree 5 files changed +7
-15
lines changed
src/platform/silabs/multi-ota
5 files changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ CHIP_ERROR OTAFirmwareProcessor::Clear()
68
68
CHIP_ERROR OTAFirmwareProcessor::ProcessInternal (ByteSpan & block)
69
69
{
70
70
uint32_t err = SL_BOOTLOADER_OK;
71
+ ChipLogProgress (SoftwareUpdate," ProcessInternal Thread Block processing" );
71
72
if (!mDescriptorProcessed )
72
73
{
73
74
ReturnErrorOnFailure (ProcessDescriptor (block));
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ CHIP_ERROR chip::OTAMultiImageProcessorImpl::OtaHookInit()
57
57
#ifndef SLI_SI91X_MCU_INTERFACE
58
58
static chip::OTAFirmwareProcessor sApplicationProcessor ;
59
59
sApplicationProcessor .RegisterDescriptorCallback (ProcessDescriptor);
60
- ReturnErrorOnFailure (imageProcessor.RegisterProcessor (APPLICATION , &sApplicationProcessor ));
60
+ ReturnErrorOnFailure (imageProcessor.RegisterProcessor (static_cast < uint32_t >(OTAProcessorTag:: kApplicationProcessor ) , &sApplicationProcessor ));
61
61
#endif
62
62
63
63
#if OTA_TEST_CUSTOM_TLVS
@@ -69,9 +69,9 @@ CHIP_ERROR chip::OTAMultiImageProcessorImpl::OtaHookInit()
69
69
customProcessor2.RegisterDescriptorCallback (ProcessDescriptor);
70
70
customProcessor3.RegisterDescriptorCallback (ProcessDescriptor);
71
71
72
- ReturnErrorOnFailure (imageProcessor.RegisterProcessor (8 , &customProcessor1));
73
- ReturnErrorOnFailure (imageProcessor.RegisterProcessor (9 , &customProcessor2));
74
- ReturnErrorOnFailure (imageProcessor.RegisterProcessor (10 , &customProcessor3));
72
+ ReturnErrorOnFailure (imageProcessor.RegisterProcessor (static_cast < uint32_t >(OTAProcessorTag:: kCustomProcessor1 ) , &customProcessor1));
73
+ ReturnErrorOnFailure (imageProcessor.RegisterProcessor (static_cast < uint32_t >(OTAProcessorTag:: kCustomProcessor2 ) , &customProcessor2));
74
+ ReturnErrorOnFailure (imageProcessor.RegisterProcessor (static_cast < uint32_t >(OTAProcessorTag:: kCustomProcessor3 ) , &customProcessor3));
75
75
#endif
76
76
77
77
#ifdef SL_WIFI
Original file line number Diff line number Diff line change @@ -29,23 +29,15 @@ using namespace ::chip::DeviceLayer::Internal;
29
29
30
30
static chip::OTAMultiImageProcessorImpl gImageProcessor ;
31
31
32
- #if SL_WIFI
33
- #include < platform/silabs/wifi/ncp/spi_multiplex.h>
34
- #endif // SL_WIFI
35
-
36
32
extern " C" {
37
33
#if SL_BTLCTRL_MUX
38
34
#include " btl_interface.h"
39
35
#include " sl_core.h"
40
36
#endif // SL_BTLCTRL_MUX
41
37
#include " em_bus.h" // For CORE_CRITICAL_SECTION
42
38
#ifndef SLI_SI91X_MCU_INTERFACE // required for 917 NCP
43
- #include " spi_multiplex.h"
44
39
#include " btl_interface.h"
45
40
#endif // SLI_SI91X_MCU_INTERFACE
46
- #ifdef CHIP_9117
47
- #include " spi_multiplex.h"
48
- #endif // CHIP_9117
49
41
}
50
42
51
43
namespace chip {
Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ typedef enum
36
36
APPLICATION,
37
37
BOOTLOADER,
38
38
FACTORY_DATA,
39
- WIFI_917_NCP_TA,
40
- WIFI_917_SOC_TA, /* This is used as scan result and start */
41
- WIFI_917_NCP_COMBINED
39
+ WIFI_917_TA_M4_COMBINED,
42
40
} OTAImageType;
43
41
44
42
#if SL_MATTER_ENABLE_OTA_ENCRYPTION
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ CHIP_ERROR OTAWiFiFirmwareProcessor::ProcessInternal(ByteSpan & block)
75
75
// Used to tranfer other block to processor
76
76
static uint8_t writeDataBuffer[1024 ] __attribute__ ((aligned (4 ))) = { 0 };
77
77
78
+ ChipLogProgress (SoftwareUpdate," ProcessInternal WiFi Block processing" );
78
79
if (!mDescriptorProcessed )
79
80
{
80
81
ReturnErrorOnFailure (ProcessDescriptor (block));
You can’t perform that action at this time.
0 commit comments