As a reminder, the first thing user code does is print something.
> Are you able to post a full project that (at least sometimes) exhibits this problem, somewhere?
Hopefully that won't be needed.
Below all output on verbose (should have remembered that):
Code: Select all
Wrote 3072 bytes (160 compressed) at 0x00008000 in 0.0 seconds (effective 1572.7 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
MONITOR
--- idf_monitor on COM4 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
etsRչ ╗016:22:MSH
. (POWE%UMT),bo0x1BSPI_TMQ}1║SH_BOj
c˥ͥ: 0, *]A0xee
ckE0x00,E0A0,d_0x0bcs0_0xbhd_d.0,wp_dr0C둕DIO, ckdZj
l+0x&blen:SH0x3fflen:83j
loa0000,10LNH+0x48040b╹6Mj
e0¢
D Ɋ) bo_flaK╗jՁset bkpa0x000╗(wasxfff+j5
I (35) boot: ESP-IDF v3.2-dev-518-g020ade65 2nd stage bootloader
I (35) boot: compile time 08:07:37
I (35) boot: Enabling RNG early entropy source...
D (41) boot: magic e9
D (43) boot: segments 04
D (46) boot: spi_mode 02
D (48) boot: spi_speed 0f
D (51) boot: spi_size 02
I (54) boot: SPI Speed : 80MHz
I (58) boot: SPI Mode : DIO
I (62) boot: SPI Flash Size : 4MB
D (66) bootloader_flash: mmu set paddr=00000000 count=1
D (71) boot: mapped partition table 0x8000 at 0x3f408000
D (77) flash_parts: partition table verified, 8 entries
I (82) boot: Partition Table:
I (85) boot: ## Label Usage Type ST Offset Length
D (93) boot: load partition table entry 0x3f408000
D (98) boot: type=1 subtype=2
I (101) boot: 0 nvs WiFi data 01 02 00009000 00004000
D (108) boot: load partition table entry 0x3f408020
D (113) boot: type=1 subtype=0
I (116) boot: 1 otadata OTA data 01 00 0000d000 00002000
D (124) boot: load partition table entry 0x3f408040
D (129) boot: type=1 subtype=1
I (132) boot: 2 phy_init RF data 01 01 0000f000 00001000
D (139) boot: load partition table entry 0x3f408060
D (144) boot: type=0 subtype=0
I (147) boot: 3 factory factory app 00 00 00010000 000e1000
D (155) boot: load partition table entry 0x3f408080
D (160) boot: type=0 subtype=10
I (163) boot: 4 ota_0 OTA app 00 10 00100000 000e1000
D (171) boot: load partition table entry 0x3f4080a0
D (176) boot: type=0 subtype=11
I (179) boot: 5 ota_1 OTA app 00 11 001f0000 000e1000
D (186) boot: load partition table entry 0x3f4080c0
D (191) boot: type=1 subtype=82
I (195) boot: 6 storage Unknown data 01 82 002d1000 0012c000
I (202) boot: End of partition table
D (206) boot: OTA data offset 0xd000
D (210) bootloader_flash: mmu set paddr=00000000 count=1
D (215) boot: OTA sequence values A 0xffffffff B 0xffffffff
D (221) boot: OTA sequence numbers both empty (all-0xFF) or partition table does
not have bootable ota_apps (app_count=2)
I (232) boot: Defaulting to factory image
D (237) boot: Trying partition index -1 offs 0x10000 size 0xe1000
D (243) esp_image: reading image header @ 0x10000
D (248) bootloader_flash: mmu set block paddr=0x00010000 (was 0xffffffff)
D (255) esp_image: image header: 0xe9 0x09 0x02 0x03 40080e50
V (260) esp_image: loading segment header 0 at offset 0x10018
V (266) esp_image: segment data length 0x2ca2c data starts 0x10020
V (272) esp_image: segment 0 map_segment 1 segment_data_offs 0x10020 load_addr 0
x3f400020
I (281) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x2ca2c (18
2828) map
D (290) bootloader_flash: mmu set paddr=00010000 count=3
V (348) esp_image: loading segment header 1 at offset 0x3ca4c
D (348) bootloader_flash: mmu set block paddr=0x00030000 (was 0xffffffff)
V (350) esp_image: segment data length 0x35bc data starts 0x3ca54
V (356) esp_image: segment 1 map_segment 0 segment_data_offs 0x3ca54 load_addr 0
x3ffb0000
I (364) esp_image: segment 1: paddr=0x0003ca54 vaddr=0x3ffb0000 size=0x035bc ( 1
3756) load
D (373) bootloader_flash: mmu set paddr=00030000 count=2
V (383) esp_image: loading segment header 2 at offset 0x40010
D (384) bootloader_flash: mmu set block paddr=0x00040000 (was 0xffffffff)
V (391) esp_image: segment data length 0x797a4 data starts 0x40018
V (397) esp_image: segment 2 map_segment 1 segment_data_offs 0x40018 load_addr 0
x400d0018
0x400d0018: _stext at ??:?
I (406) esp_image: segment 2: paddr=0x00040018 vaddr=0x400d0018 size=0x797a4 (49
7572) map
0x400d0018: _stext at ??:?
D (414) bootloader_flash: mmu set paddr=00040000 count=8
V (565) esp_image: loading segment header 3 at offset 0xb97bc
D (565) bootloader_flash: mmu set block paddr=0x000b0000 (was 0xffffffff)
V (566) esp_image: segment data length 0x1c80 data starts 0xb97c4
V (572) esp_image: segment 3 map_segment 0 segment_data_offs 0xb97c4 load_addr 0
x3ffb35bc
I (580) esp_image: segment 3: paddr=0x000b97c4 vaddr=0x3ffb35bc size=0x01c80 (
7296) load
D (589) bootloader_flash: mmu set paddr=000b0000 count=1
V (597) esp_image: loading segment header 4 at offset 0xbb444
D (601) bootloader_flash: mmu set block paddr=0x000b0000 (was 0xffffffff)
V (607) esp_image: segment data length 0x0 data starts 0xbb44c
V (613) esp_image: segment 4 map_segment 0 segment_data_offs 0xbb44c load_addr 0
x3ffb523c
I (622) esp_image: segment 4: paddr=0x000bb44c vaddr=0x3ffb523c size=0x00000 (
0) load
D (631) bootloader_flash: mmu set paddr=000b0000 count=1
V (636) esp_image: loading segment header 5 at offset 0xbb44c
D (642) bootloader_flash: mmu set block paddr=0x000b0000 (was 0xffffffff)
V (649) esp_image: segment data length 0x400 data starts 0xbb454
V (655) esp_image: segment 5 map_segment 0 segment_data_offs 0xbb454 load_addr 0
x40080000
0x40080000: _WindowOverflow4 at C:/msys32/home/user/esp/esp-idf/components/freer
tos/xtensa_vectors.S:1685
I (663) esp_image: segment 5: paddr=0x000bb454 vaddr=0x40080000 size=0x00400 (
1024) load
0x40080000: _WindowOverflow4 at C:/msys32/home/user/esp/esp-idf/components/freer
tos/xtensa_vectors.S:1685
D (672) bootloader_flash: mmu set paddr=000b0000 count=1
V (678) esp_image: loading segment header 6 at offset 0xbb854
D (683) bootloader_flash: mmu set block paddr=0x000b0000 (was 0xffffffff)
V (690) esp_image: segment data length 0xfe64 data starts 0xbb85c
V (696) esp_image: segment 6 map_segment 0 segment_data_offs 0xbb85c load_addr 0
x40080400
I (704) esp_image: segment 6: paddr=0x000bb85c vaddr=0x40080400 size=0x0fe64 ( 6
5124) load
D (713) bootloader_flash: mmu set paddr=000b0000 count=2
V (742) esp_image: loading segment header 7 at offset 0xcb6c0
D (742) bootloader_flash: mmu set block paddr=0x000c0000 (was 0xffffffff)
V (743) esp_image: segment data length 0x0 data starts 0xcb6c8
V (749) esp_image: segment 7 map_segment 0 segment_data_offs 0xcb6c8 load_addr 0
x400c0000
I (757) esp_image: segment 7: paddr=0x000cb6c8 vaddr=0x400c0000 size=0x00000 (
0) load
D (766) bootloader_flash: mmu set paddr=000c0000 count=1
V (772) esp_image: loading segment header 8 at offset 0xcb6c8
D (778) bootloader_flash: mmu set block paddr=0x000c0000 (was 0xffffffff)
V (784) esp_image: segment data length 0x0 data starts 0xcb6d0
V (790) esp_image: segment 8 map_segment 0 segment_data_offs 0xcb6d0 load_addr 0
x50000000
I (799) esp_image: segment 8: paddr=0x000cb6d0 vaddr=0x50000000 size=0x00000 (
0) load
D (808) bootloader_flash: mmu set paddr=000c0000 count=1
V (813) esp_image: image start 0x00010000 end of last section 0x000cb6d0
D (820) bootloader_flash: mmu set block paddr=0x000c0000 (was 0xffffffff)
D (827) esp_image: Calculated hash: 4643567abf858c0679b7126579c73d306fb4265884f0
3bd23ff0a12c9ea88854
D (836) bootloader_flash: mmu set paddr=000c0000 count=1
D (841) bootloader_flash: mmu set paddr=000c0000 count=1
I (857) boot: Loaded app from partition at offset 0x10000
I (857) boot: Disabling RNG early entropy source...
D (858) boot: Mapping segment 0 as IROM
D (862) boot: Mapping segment 2 as DROM
D (866) boot: calling set_cache_and_start_app
D (870) boot: configure drom and irom and start
V (875) boot: d mmu set paddr=00040000 vaddr=400d0000 size=497572 n=8
V (882) boot: rc=0
V (884) boot: rc=0
V (886) boot: i mmu set paddr=00010000 vaddr=3f400000 size=182828 n=3
V (892) boot: rc=0
V (894) boot: rc=0
D (896) boot: start: 0x40080e50
0x40080e50: call_start_cpu0 at C:/msys32/home/user/esp/esp-idf/components/esp32/
cpu_start.c:114
I (900) cpu_start: Pro cpu up.
I (903) cpu_start: Single core mode
I (908) heap_init: Initializing. RAM available for dynamic allocation:
I (915) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
I (921) heap_init: At 3FFC3480 len 0001CB80 (114 KiB): DRAM
I (927) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (933) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (940) heap_init: At 40090264 len 0000FD9C (63 KiB): IRAM
I (946) cpu_start: Pro cpu start user code