Closed ActoryOu closed 5 months ago
Notify other tasks that OTA is stopped when fail to activate new image.
As #73 discussed (in additional question), when OTA fail to activate new image, we should notify other tasks to continue.
Run OTA test with hacking that OTA pal fail to activate the image like below.
OtaErr_t OTA_ActivateNewImage( void ) { // skip for simplify if( ( otaAgent.pOtaInterface != NULL ) && ( otaAgent.pOtaInterface->pal.activate != NULL ) ) { // comment out below line to make activation fail to test this scenario. // palStatus = otaAgent.pOtaInterface->pal.activate( &( otaAgent.fileContext ) ); } // skip for simplify return ( ( palStatus >> OTA_PAL_SUB_BITS ) == ( uint32_t ) OtaPalSuccess ) ? OtaErrNone : OtaErrActivateFailed; }
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Notify other tasks that OTA is stopped when fail to activate new image.
Description
As #73 discussed (in additional question), when OTA fail to activate new image, we should notify other tasks to continue.
Test Steps
Run OTA test with hacking that OTA pal fail to activate the image like below.
Checklist:
Related Issue
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.