Somrtimes ota works well,sometimes ota will go wrong.
Posted: Tue Oct 24, 2017 2:08 am
I have some problem with OTA.Sometimes,When halfway through the ota,it will go wrong.Sometimes it can ota successfully!
My device is control by nrf52 through uart1 command.
When I use old device which have 4M flash and no nrf52,It work well whith OTA.(with no source code changed.)
Now,my device only have 2M flash.But ,I already had adjust the partitions.
My factory app is 571K, ota app is 644K.Sometimes ota works well,sometimes ota will go wrong.
This is the log.
Thanks for your help.
My device is control by nrf52 through uart1 command.
When I use old device which have 4M flash and no nrf52,It work well whith OTA.(with no source code changed.)
Now,my device only have 2M flash.But ,I already had adjust the partitions.
My factory app is 571K, ota app is 644K.Sometimes ota works well,sometimes ota will go wrong.
Code: Select all
nvs, data, nvs, 0x9000, 0x4000
otadata, data, ota, 0xd000, 0x2000
phy_init, data, phy, 0xf000, 0x1000
factory, 0, 0, 0x10000, 576K
ota_0, 0, ota_0, , 704K
ota_1, 0, ota_1, , 704K
Code: Select all
OTA_NOW:buff_len = 436,resp_body_start = 1[0;32mI (85167) YH_OTA: -----Have written image length 26681-----[0m
OTA_NOW:buff_len = 1024,resp_body_start = 1[0;32mI (85173) YH_OTA: -----Have written image length 27705-----[0m
ets Jun 8 2016 00:22:57
rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun 8 2016 00:22:57
rst:0x7 (TG0WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun 8 2016 00:22:57