This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 86
long wait after "go to ota recycle" when I perform FOTA_DEMO #2
Comments
The expiration between two ota is 120s that is defined in ota_config.h |
The program will wait at "vTaskDelete(ota_task_handle);" LOCAL void upgrade_recycle(void)
{
totallength = 0;
sumlength = 0;
flash_erased = false;
system_upgrade_deinit();
vTaskDelete(ota_task_handle);
ota_task_handle = NULL;
if (system_upgrade_flag_check() == UPGRADE_FLAG_FINISH) {
system_upgrade_reboot(); // if need
}
}
|
It seems that when program execute "vTaskDelete(ota_task_handle)" and the program will hang up itself. When ota_timeout expired, the program execute "vTaskDelete(ota_task_handle)" again, then it causes the program collapse and the hardware reboot. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi!
Thank you for your FOTA_DEMO, I tried it and get it work by my own simple http server. I have problems on that when I download user2.bin from remote server, and run to print "go to ota recycle", then I have to wait until some timer expires. The log is showed below, long wait between "go to ota recycle" and "reboot ot use2"
So what is the reason about it?
Thank you!
The text was updated successfully, but these errors were encountered: