Hm, I'm scratching my head here then, not much that I know of that corrupts the boot process but leaves a perfectly valid flash in place.. Any chance there's extraordinary circumstances (high EMI, very high or low temperatures, power fluctuations) that could have affected the device?
Thanks for your prompt response.
There may be chances of Power Fluctuation or Temperature impact as it is used under roof where Solar System is installed and also device is getting powered from Solar Inverter.
We have already started process to measure with Power Regulator and started to validate that circuit as it is creating random issues.
Also we have faced similar kind of issue into one another device in which device is getting boot from Boot loader and trying to boot from 0x10000 default location in which Checsum Error is getting then trying to boot from secondary OTA partition.
Below are logs for that device for reference
[2022-02-22 12:02:22.998] ets Jul 29 2019 12:21:46
[2022-02-22 12:02:22.998]
[2022-02-22 12:02:22.998] rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
[2022-02-22 12:02:22.998] configsip: 0, SPIWP:0xee
[2022-02-22 12:02:22.998] clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[2022-02-22 12:02:22.998] mode:DOUT, clock div:2
[2022-02-22 12:02:22.998] load:0x3fff0018,len:4
[2022-02-22 12:02:22.998] load:0x3fff001c,len:5800
[2022-02-22 12:02:22.998] load:0x40078000,len:7756
[2022-02-22 12:02:22.998] load:0x40080000,len:5876
[2022-02-22 12:02:22.998] entry 0x40080318
[2022-02-22 12:02:22.998] I (29) boot: ESP-IDF v3.1-beta1-216-gd91c425178 2nd stage bootloader
[2022-02-22 12:02:22.998] I (29) boot: compile time 11:10:31
[2022-02-22 12:02:22.998] I (30) boot: Enabling RNG early entropy source...
[2022-02-22 12:02:22.998] I (36) boot: SPI Speed : 40MHz
[2022-02-22 12:02:22.998] I (40) boot: SPI Mode : DOUT
[2022-02-22 12:02:22.998] I (44) boot: SPI Flash Size : 16MB
[2022-02-22 12:02:22.998] I (48) boot: Partition Table:
[2022-02-22 12:02:22.998] I (52) boot: ## Label Usage Type ST Offset Length
[2022-02-22 12:02:22.998] I (59) boot: 0 nvs WiFi data 01 02 00009000 00004000
[2022-02-22 12:02:22.998] I (66) boot: 1 otadata OTA data 01 00 0000d000 00002000
[2022-02-22 12:02:22.998] I (74) boot: 2 phy_init RF data 01 01 0000f000 00001000
[2022-02-22 12:02:22.999] I (81) boot: 3 factory factory app 00 00 00010000 00200000
[2022-02-22 12:02:22.999] I (89) boot: 4 ota_0 OTA app 00 10 00210000 00200000
[2022-02-22 12:02:22.999] I (96) boot: 5 storage Unknown data 01 82 0081c000 00200000
[2022-02-22 12:02:22.999] I (104) boot: End of partition table
[2022-02-22 12:02:22.999] I (108) boot: Defaulting to factory image
[2022-02-22 12:02:22.999] I (113) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2d2ec (185068) map
[2022-02-22 12:02:23.071] I (189) esp_image: segment 1: paddr=0x0003d314 vaddr=0x3ffb0000 size=0x02cfc ( 11516) load
[2022-02-22 12:02:23.071] I (193) esp_image: segment 2: paddr=0x00040018 vaddr=0x400d0018 size=0x9fcd0 (654544) map
[2022-02-22 12:02:23.330] I (432) esp_image: segment 3: paddr=0x000dfcf0 vaddr=0x3ffb2cfc size=0x00ed8 ( 3800) load
[2022-02-22 12:02:23.330] I (434) esp_image: segment 4: paddr=0x000e0bd0 vaddr=0x3ffb3bd4 size=0x00000 ( 0) load
[2022-02-22 12:02:23.330] I (439) esp_image: segment 5: paddr=0x000e0bd8 vaddr=0x40080000 size=0x00400 ( 1024) load
[2022-02-22 12:02:23.330] I (449) esp_image: segment 6: paddr=0x000e0fe0 vaddr=0x40080400 size=0x12340 ( 74560) load
[2022-02-22 12:02:23.390] I (488) esp_image: segment 7: paddr=0x000f3328 vaddr=0x400c0000 size=0x00000 ( 0) load
[2022-02-22 12:02:23.390] I (488) esp_image: segment 8: paddr=0x000f3330 vaddr=0x50000000 size=0x00000 ( 0) load
[2022-02-22 12:02:23.390] E (495) esp_image: Checksum failed. Calculated 0x29 read 0x2d
[2022-02-22 12:02:23.390] E (501) boot: Factory app partition is not bootable
That device is also placed for Solar System and powered by Inverter.
Let me know if need anything else from my end.