Skip to content

Commit

Permalink
Adds sl_wfx_host_post_bootloader_spi_transfer in relevant failure out…
Browse files Browse the repository at this point in the history
…comes
  • Loading branch information
rosahay-silabs committed May 26, 2023
1 parent 6f67224 commit 3bded1b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/platform/silabs/efr32/OTAImageProcessorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
ChipLogError(SoftwareUpdate, "%s: bootloader_verifyImage() error %ld", __func__, err);
// Call the OTARequestor API to reset the state
GetRequestorInstance()->CancelImageUpdate();
#if (defined(EFR32MG24) && defined(SL_WIFI))
sl_wfx_host_post_bootloader_spi_transfer();
#endif
return;
}

Expand All @@ -221,14 +224,17 @@ void OTAImageProcessorImpl::HandleApply(intptr_t context)
ChipLogError(SoftwareUpdate, "%s: bootloader_setImageToBootload() error %ld", __func__, err);
// Call the OTARequestor API to reset the state
GetRequestorInstance()->CancelImageUpdate();
#if (defined(EFR32MG24) && defined(SL_WIFI))
sl_wfx_host_post_bootloader_spi_transfer();
#endif
return;
}

// This reboots the device
CORE_CRITICAL_SECTION(bootloader_rebootAndInstall();)
#if (defined(EFR32MG24) && defined(SL_WIFI))
sl_wfx_host_post_bootloader_spi_transfer();
#endif
// This reboots the device
CORE_CRITICAL_SECTION(bootloader_rebootAndInstall();)
}

void OTAImageProcessorImpl::HandleAbort(intptr_t context)
Expand Down

0 comments on commit 3bded1b

Please sign in to comment.