Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp32s3 fails chip_id, erase_flash, etc (ESPTOOL-565) #808

Closed
1 task done
bamason2 opened this issue Dec 8, 2022 · 16 comments
Closed
1 task done

esp32s3 fails chip_id, erase_flash, etc (ESPTOOL-565) #808

bamason2 opened this issue Dec 8, 2022 · 16 comments

Comments

@bamason2
Copy link

bamason2 commented Dec 8, 2022

Operating System

macOs 13.0.1

Esptool Version

Esptool 4.4

Python Version

Python 3.9.15

Chip Description

esp32-s3

Device Description

Adafruit feather esp32-s3

Hardware Configuration

No response

How is Esptool Run

Terminal

Full Esptool Command Line that Was Run

esptool.py --port /dev/tty.usbmodem101 --baud 115200 --chip esp32s3 chip_id

Esptool Output

Serial port /dev/tty.usbmodem101
Connecting...
Detecting chip type... ESP32-S3
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:5c:92:c4
Uploading stub...
Running stub...

and the trace;

esptool.py --trace --port /dev/tty.usbmodem101 --baud 115200 --chip esp32s3 chip_id
esptool.py v4.4
Serial port /dev/tty.usbmodem101
Connecting...TRACE +0.000 command op=0x08 data len=36 wait_response=1 timeout=2.000 data=
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU
TRACE +0.001 Write 46 bytes: 
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
TRACE +0.002 Read 1 bytes: c0
TRACE +0.000 Read 27 bytes: 
    0108040007071220 00000000c0c00108 | ....... ........
    0400070712200000 0000c0           | ..... .....
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 42 bytes: 
    c001080400070712 2000000000c0c001 | ........ .......
    0804000707122000 000000c0c0010804 | ...... .........
    0007071220000000 00c0             | .... .....
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 28 bytes: 
    c001080400070712 2000000000c0c001 | ........ .......
    0804000707122000 000000c0         | ...... .....
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000

TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=00100040
TRACE +0.000 Write 14 bytes: c0000a04000000000000100040c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000900000000000000c0
TRACE +0.000 Received full packet: 010a04000900000000000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=4cf1ce3f
TRACE +0.000 Write 14 bytes: c0000a0400000000004cf1ce3fc0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000400000000000000c0
TRACE +0.000 Received full packet: 010a04000400000000000000
TRACE +0.000 command op=0x14 data len=0 wait_response=1 timeout=2.000 data=
TRACE +0.000 Write 10 bytes: c00014000000000000c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 33 bytes: 
    0114180004000000 0000000000000000 | ................
    0000000c09000000 0000000000000000 | ................
    c0                                | .
TRACE +0.000 Received full packet: 
    0114180004000000 0000000000000000 | ................
    0000000c09000000 0000000000000000 | ................
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=58700060
TRACE +0.000 Write 14 bytes: c0000a04000000000058700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04008ce4067800000000c0
TRACE +0.000 Received full packet: 010a04008ce4067800000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=58700060
TRACE +0.000 Write 14 bytes: c0000a04000000000058700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04008ce4067800000000c0
TRACE +0.000 Received full packet: 010a04008ce4067800000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=50700060
TRACE +0.000 Write 14 bytes: c0000a04000000000050700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000000048a00000000c0
TRACE +0.000 Received full packet: 010a04000000048a00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=58700060
TRACE +0.000 Write 14 bytes: c0000a04000000000058700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04008ce4067800000000c0
TRACE +0.000 Received full packet: 010a04008ce4067800000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=50700060
TRACE +0.000 Write 14 bytes: c0000a04000000000050700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000000048a00000000c0
TRACE +0.000 Received full packet: 010a04000000048a00000000
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=44700060
TRACE +0.000 Write 14 bytes: c0000a04000000000044700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a0400c4925cfa00000000c0
TRACE +0.000 Received full packet: 010a0400c4925cfa00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=2.000 data=48700060
TRACE +0.000 Write 14 bytes: c0000a04000000000048700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a040012f4000000000000c0
TRACE +0.000 Received full packet: 010a040012f4000000000000
MAC: f4:12:fa:5c:92:c4
Uploading stub...
TRACE +0.001 command op=0x05 data len=16 wait_response=1 timeout=2.000 data=bc130000010000000018000000803740
TRACE +0.000 Write 26 bytes: 
    c000051000000000 00bc130000010000 | ................
    0000180000008037 40c0             | .......7@.
TRACE +0.001 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0105040012f4000000000000c0
TRACE +0.000 Received full packet: 0105040012f4000000000000
TRACE +0.000 command op=0x07 data len=5068 wait_response=1 timeout=2.000 data=
    bc13000000000000 0000000000000000 | ................
    1480036000800360 b42bcb3f04800360 | ...`...`.+.?...`
    36410081fbff0c49 c020009908c60400 | 6A.....I. ......
    0081f8ffc02000a8 0881f7ffa0a07488 | ..... ........t.
    08e0080021f6ffc0 2000880227e8e11d | ....!... ...'...
    f000000008000060 1c00006000000060 | .......`...`...`
    1000006036410021 fbffc02000380241 | ...`6A.!... .8.A
    faffc02000280420 20949ce206050000 | ... .(.  .......
    0041f6ff81e5ffc0 2000a8048808a0a0 | .A...... .......
    74e008000b226602 e786f4ff21f1ffc0 | t...."f.....!...
    200039021df00000 5420006054300060 |  .9.....T .`T0.`
    36410091fdffc020 0088098080245648 | 6A..... .....$VH
    ff91faffc0200088 098080245648ff1d | ..... .....$VH..
    f00000002c200060 0020006000000008 | ...., .`. .`....
    364100e5fcff21fb ff0c08c020008902 | 6A....!..... ...
    91fbff81f9ffc020 00926800c0200098 | ....... ..h.. ..
    085679ffc0200088 027cf28022302020 | .Vy.. ...|.."0  
    041df00000000040 36410065fcff169a | .......@6A.e....
    ff81edff91fcffc0 20009908c0200098 | ........ .... ..
    085679ff1df00000 9800cb3f1080ca3f | .Vy........?...?
    8080000084800000 4040000050c0ca3f | ........@@..P..?
    9c00cb3f364100b1 f8ff20a074252101 | ...?6A.... .t%!.
    96ea0581f6ff91f6 ffa0a074909880c0 | ...........t....
    2000b2290091f3ff 908880c020009218 |  ..)........ ...
    009090f41bc9c0c0 f4c02000c258009a | .......... ..X..
    9bc02000a24900c0 200092180081eaff | .. ..I.. .......
    9090f48080f48799 4681e4ff91e5ffa1 | ........F.......
    e8ff9a98c02000c8 09b1e4ff879c1946 | ..... .........F
    02007ce8871ae146 09000000c0200089 | ..|....F..... ..
    0ac02000b9094602 00c02000b90ac020 | .. ...F... .... 
    00890991d8ff9a88 0c09c02000925800 | ........... ..X.
    1df00000e8080040 f4080040b8080040 | .......@...@...@
    3681000c4b0c1a81 fbffe008002c0706 | 6...K........,..
    11000c4b0c1a81f8 ffe008007054430c | ...K........pTC.
    080c16d09511ed02 8941893199213911 | .........A.1.!9.
    89012c0f0c8d1c2c 0c4bad0669616951 | ..,....,.K..iaiQ
    81efffe008000c4b ad0681eaffe00800 | .......K........
    5a335a225044c0e6 14b70c021df00000 | Z3Z"PD..........
    3681000c4b0c1a81 e3ffe008001c0606 | 6...K...........
    0c0000006054430c 080c1ad095110c8d | ....`TC.........
    3931ed028961a951 994189218911d901 | 91...a.Q.A.!....
    2c0f0ccc0c4b81d9 ffe008005044c05a | ,....K......PD.Z
    335a22e614cd0c02 1df0000014280040 | 3Z"..........(.@
    36410020a22081fd ffe008001df00000 | 6A. . ..........
    5c07004036410081 feffe00800220a18 | \..@6A......."..
    0c1922c2fd0c0820 89832d081df00000 | ..".... ..-.....
    36410081f7ffe008 00220a180c1922c2 | 6A......."....".
    fc0c082089832d08 1df0000000000200 | ... ..-.........
    bcffce3f88260040 841b004094260040 | ...?.&.@...@.&.@
    901b0040364100e5 faffac6a31f9ff41 | ...@6A.....j1..A
    f7ff8cb2a80381f7 ffe00800ad040609 | ................
    00ad0481f5ffe008 00a80381f4ffe008 | ................
    00460800a5f9ff81 edff32a020a08383 | .F........2. ...
    80a82016920081ee ffe0080086010000 | .. .............
    81eaffe008001df0 364100a5f5ff22a0 | ........6A....".
    01565a00a5f6ffa0 2a202020041df000 | .VZ.....*   ....
    0000ca3f0400ca3f 10000c6060000c60 | ...?...?...``..`
    000c0000fff3ffff 364100e5fcff166a | ........6A.....j
    04b1f7ff822b0016 d80381f6ff922800 | .....+........(.
    bc49a1f5ff7cccc0 2000880a909014c0 | .I...|.. .......
    8810908820c02000 890a880ba1f0ffb1 | .... . .........
    f0ffc02000980ab0 8810b1eeffb09910 | ... ............
    908820c02000890a 1df00000f82bcb3f | .. . ........+.?
    b82bcb3f28260040 36410021fcff81c0 | .+.?(&.@6A.!....
    ffc802a808b1faff 81fbffe008000c08 | ................
    89021df090060040 364100a5eaff16aa | .......@6A......
    0081f2ff8228008c 18e5fcff25ebff16 | .....(......%...
    1a000c4a81f8ffe0 08001df048060040 | ...J........H..@
    36410025e8ff164a 0391e8ff822900a2 | 6A.%...J.....)..
    c801a90991e7ff0c 0a8a9922490082c8 | ..........."I...
    c10c1980a983a080 74cc88a2af40aa22 | ........t....@."
    2089839c9825f8ff 06050000000020a2 |  ....%........ .
    2081eeffe00800a5 e5ff162a00a5f8ff |  ..........*....
    1df0000036410082 a0c0ad0287920da2 | ....6A..........
    a0dbe5f9ffa2a0dc 460300000082a0db | ........F.......
    879205e5f8ffa2a0 dd65f8ff1df00000 | .........e......
    3641003a32060200 00a202001b2265fc | 6A.:2........"e.
    ff3792f41df00000 364100a2a0c025f6 | .7......6A....%.
    ff1df000b02bcb3f ac2bcb3f40260040 | .....+.?.+.?@&.@
    34260040d0260040 3661007cc8ad0287 | 4&.@.&.@6a.|....
    932d317fffc60500 00a8030c1cbd0181 | .-1.............
    f7ffe0080081c0fe a201008808e00800 | ................
    a80381f3ffe00800 e61addc60a000000 | ................
    6603260c03cd010c 2b32610081eeffe0 | f.&.....+2a.....
    0800980181e8ff37 990da808661a0831 | .......7....f..1
    e6ffc02000a24300 99081df000008000 | ... ..C.........
    00000001a000cb3f ffffff0004200060 | .......?..... .`
    0c09004000090040 36410031faff2223 | ...@...@6A.1.."#
    04161209a5b5ff16 ba0888430cf90c02 | ...........C....
    87a90e8223029088 1092a00180298320 | ....#........). 
    207465b7ffa5b0ff b82391efff408b11 |  te......#...@..
    87b92c9c82fb2bb0 b2a30c4c000c40b0 | ..,...+....L..@.
    b0b10c1a81ebffe0 08001c02460e000c | ............F...
    4c0c1a81e8ffe008 000c12860a000000 | L...............
    91dfffcc1291deff a1e1ffc02000890a | ............ ...
    81bafec020009908 c0200098085679ff | .... .... ...Vy.
    1c090c182089932d 0888432088c08943 | .... ..-..C ...C
    88232a2829231df0 140a004036610041 | .#*()#.....@6a.A
    d1ff583450336316 930b58145a53505c | ..X4P3c...X.ZSP\
    4186000025f4ff68 44a61604682467a5 | A...%..hD...h$g.
    f2e5a9ff169aff78 1461c7ff30578057 | .......x.a..0W.W
    b66db2a0040c1a81 e7fee00800705074 | .m...........pPt
    92a1005069c067b3 08cd03bd02ad0706 | ...Pi.g.........
    0f0060c62020b220 70a72052d5ff9911 | ..`.  . p. R....
    3a55e5b7ff505841 0c0806050090c920 | :U...PXA....... 
    8261009911a5b6ff 880162d6011b8880 | .a........b.....
    807498116aa760b2 805738e060c3c025 | .t..j.`..W8.`..%
    b5ff0c4b0c1a81cf fee0080086050000 | ...K............
    cd03bd02ad0781d4 ffe00800a0a0748c | ..............t.
    3a22a0c429542814 3a22291428343032 | :"..)T(.:").(402
    c03264031df00000 70e2fa3f08200060 | .2d.....p..?. .`
    00004000bc0a0040 c80a004036610025 | ..@....@...@6a.%
    9bff31f9ff10b120 30a32081faffe008 | ..1.... 0. .....
    004d0a0c12ecba88 0192a20090881089 | .M..............
    01659fff91f2ffa1 f2ffc020008809a0 | .e......... ....
    8820c020008909b8 01ad0381efffe008 | . . ............
    00a024831df00000 ff0f000036410081 | ..$.........6A..
    85ff92a001924800 309c4192680291fa | ......H.0.A.h...
    ff32680129383030 b49a222a33303c41 | .2h.)800.."*30<A
    0c022958394865f8 ff2d0a8c1a22a0c5 | ..)X9He..-..."..
    1df0000000100000 581000005c1c0040 | ........X...\..@
    200a0040681c0040 741c0040362121a2 |  ..@h..@t..@6!!.
    d11081faffe00800 460e000051f6ff91 | ........F...Q...
    6eff5043633a82cd 04bd0120a22087b9 | n.PCc:..... . ..
    05e5a9ff46010081 f2ffe00800a0a074 | ....F..........t
    fc4acd04bd01a2d1 1081eeffe0080040 | .J.............@
    22804033c05633fc a1e8ffb2d11010aa | ".@3.V3.........
    8081e9ffe00800a1 e4ff1c0b1aaa25cc | ..............%.
    ff2d030601000000 22a0631df0000000 | .-......".c.....
    6c10000068100000 7010000078100000 | l...h...p...x...
    7410000060060040 36412161fbff1a66 | t...`..@6A!a...f
    59060c0562d11050 a52052661a65adff | Y...b..P. Rf.e..
    71d1ff47b702063f 00ad0681d0ffe008 | q..G...?........
    0081f2ff71efff1a 887a919908c62d00 | ....q....z....-.
    5073c0a141ff7074 633a82cd07bd0187 | Ps..A.ptc:......
    ba0920a220a59eff 06020000ad0281c4 | .. . ...........
    ffe00800a0a0749c 5a0c088266167d08 | ......t.Z...f.}.
    91e4ff81e0ff1a99 8aa1a909860d0000 | ................
    65c3ff70b720ad01 65c1ffe5c2ffcd07 | e..p. ..e.......
    10b12060a62081b7 ffe008007a227a55 | .. `. ......z"zU
    37b5c581d5ff7226 1a1a8888087075c0 | 7.....r&.....pu.
    87378c86ecff92a0 0092466c91d0ff10 | .7........Fl....
    9980a2290081cfff e0080056dafeb1a6 | ...).......V....
    ffa2066c1abba5a7 00f7ea13f6471081 | ...l.........G..
    c8ff1a8888087a98 a249001b7746f1ff | ......z..I..wF..
    7ce9979ac0664708 72261a37b70277b5 | |....fG.r&.7..w.
    9ea199ff60b62010 aa80819bffe00800 | ....`. .........
    65baffa195ffb2a0 101aaa65b8ffa5b9 | e..........e....
    ff0c1a259dff1df0 0000ca3f4f484149 | ...%.......?OHAI
    fc2bcb3f44813740 98200c60a0823740 | .+.?D.7@. .`..7@
    e884374008000860 80210c6010803740 | ..7@...`.!.`..7@
    1080036054803740 0c00006038400060 | ...`T.7@...`8@.`
    ffff000000000100 0000000410270000 | .............'..
    2c81006000000080 8c80000010400000 | ,..`.........@..
    0000ffff00400000 0800ca3f0c00ca3f | .....@.....?...?
    14000060f0ffff00 fc2bcb3f1000ca3f | ...`.....+.?...?
    b800cb3f80070040 781b0040b8260040 | ...?...@x..@.&.@
    64260040741f0040 ec0a0040500a0040 | d&.@t..@...@P..@
    000600401c290040 2427004008280040 | ...@.).@$'.@.(.@
    e406004074810440 9c090040fc090040 | ...@t..@...@...@
    080a0040a8060040 840900406c090040 | ...@...@...@l..@
    9009004028080040 d806004036e10021 | ...@(..@...@6..!
    cbffa2a00022610c 81e7ffe00800a593 | ....."a.........
    ff168a045155fe31 53fec02000222500 | ....QU.1S.. ."%.
    4150fe29033151fe c02000680369047c | AP.).1Q.. .h.i.|
    c66022100c266022 20c0200029052804 | .`"..&`" . .).(.
    414dfe40221042a4 00402220c0200029 | AM.@".B..@" . .)
    0306020049024b22 460200000021b2ff | ....I.K"F....!..
    31b4ff0c043732eb e5a4ff0c4ba2c130 | 1....72.....K..0
    e5a2ff65a4ff41a9 fd21a9fd31aeff2a | ...e..A..!..1..*
    24c020004902215c fd3902a581ff2d0a | $. .I.!\.9....-.
    16fa052113fec18b fea802b2a002818d | ...!............
    fee0080031a5ffb1 a5ff1c1a0c0cc020 | ....1.......... 
    00a90381bdffe008 00a108fe52a00181 | ............R...
    0cfee00800b19eff a80281b8ffe00800 | ................
    a8028104fee00800 a80281b5ffe00800 | ................
    3199ffc020002803 502220c020002903 | 1... .(.P" . .).
    061700e57cff16ea 023193ffa2a011b1 | ....|....1......
    93ffc02000a26300 cd0281a7ffe00800 | ... ..c.........
    3190ff0c45c02000 2803a1f0fd502220 | 1...E. .(....P" 
    c020002903460800 b18bffcd0a0c5a81 | . .).F........Z.
    9effe008003188ff 52a101c020002803 | .....1..R... .(.
    2c0a502220c02000 290381e9fde00800 | ,.P" . .).......
    8199ffe008002181 ffc020002802ccba | ......!... .(...
    1cc330221022c2f8 0c1320a3830c0b81 | ..0".".... .....
    92ffe00800f17aff d1fbfec17affb17a | ......z.....z..z
    ffe2a1000c0a818d ffe00800217bff51 | ............!{.Q
    6dfe2a4462d52b46 1600000000814afe | m.*Db.+F......J.
    c020003208003030 74167304a1ccfdc0 | . .2..00t.s.....
    200022480081ccfd e00800a16cff8180 |  ."H........l...
    ffe008008180ffe0 08007169ff7ce8c0 | ..........qi.|..
    20003807a168ff80 3310c02000390781 |  .8..h..3.. .9..
    7affe008008179ff e0080020a2208178 | z.....y.... . .x
    ffe00800c0200028 041602fa0c07c020 | ..... .(....... 
    0038040c12c02000 7904224124220301 | .8.... .y."A$"..
    0c2879a122412582 51131c377712221c | .(y."A%.Q..7w.".
    4777121f66921f22 0303720302802211 | Gw..f.."..r...".
    7022206642102823 c02000280229a106 | p" fB.(#. .(.)..
    01001c2222511325 87ff0c8ba2c12425 | ...""Q.%......$%
    85ffb20303820302 2149ff80bb11808b | ........!I......
    202020f487b211a2 a0c0a580ffa2a0ee |    .............
    2580ff6584ff86de ff7203010cd22797 | %..e.....r....'.
    0246d70077325966 6702061201f67723 | .F..w2Yfg.....w#
    66370246a700f647 0a662702c68a0006 | f7.F...G.f'.....
    2b00000066470286 ba0066570246ed00 | +...fG....fW.F..
    c62600000c922797 02c6ce0077321066 | .&....'.....w2.f
    7702c6ee00668702 4623000620000000 | w....f..F#.. ...
    66970246e0000cb2 27970246b600461b | f..F....'..F..F.
    001c422797028629 0077322f1c122797 | ..B'...).w2/..'.
    02c68f007732100c f227970286670066 | ....w2...'...g.f
    b702c67c00861100 1c2227970206a100 | ...|....."'.....
    1c32279702466700 c60c000022a0d227 | .2'..Fg....."..'
    9702866200773214 22a0d02797020622 | ...b.w2."..'..."
    0022a0d127970286 250046040022a0d3 | ."..'...%.F.."..
    27970286800122a0 d42797020679000c | '....."..'...y..
    0722a0ff06e80000 002c490c0722a0c0 | .".......,I.."..
    97180246e4002d07 79a10c7720a22065 | ...F..-.y..w . e
    70ff20a220e56fff e573ffe573ffb2a0 | p. . .o..s..s...
    08a2c1240b77a571 ff56f7fd46460000 | ...$.w.q.V..FF..
    22a00156f83580b8 2080a820c2c11081 | "..V.5.. .. ....
    0dffe008008d0a56 ba34bd07a2c11082 | .......V.4......
    6113e56effc6b000 00000c1256683382 | a..n........Vh3.
    61138105ffe00800 822113c657000000 | a........!..W...
    002688040c1206c7 0078232833208720 | .&.......x#(3 . 
    8080b456d8fe658f ff567afec60b0000 | ...V..e..Vz.....
    81d6fd70ac4177b8 17bd0a0c4c0c1a81 | ...p.Aw.....L...
    d5fde00800860300 22d2f072d7104603 | ........"..r..F.
    0081f2fee0080016 dafe86edff0000cc | ................
    12c695007090f456 59fcc60c0091c6fd | ....p..VY.......
    70a0f577b91ebd0a c2a004a2a00181c4 | p..w............
    fde00800c6040000 91cefe9a2291c5fe | ............"...
    9a77c6020081e2fe e00800169afe86dc | .w..............
    ff81c0fe2738c52a 27c60a0081b7fd70 | ....'8.*'......p
    ac4177b816bd0a0c 4c0c1a81b6fde008 | .Aw.....L.......
    0046030072d71046 0300000081d4fee0 | .F..r..F........
    080016eafec6ceff 7792d04677000c07 | ........w..Fw...
    22a0c02688028693 000c072d07c69100 | "..&.......-....
    26b8f5c6690022a0 0126b802868d00b2 | &...i."..&......
    2303a22302658bff 46080022a00126b8 | #..#.e..F.."..&.
    0246880091acfe82 230472a00022a0c2 | .F......#.r.."..
    87b902468400b853 a8232584ff0c170c | ...F...S.#%.....
    02a02793867f0000 0022a00126b802c6 | ..'......"..&...
    7c00822304919ffe 72a00022a0c287b9 | |..#....r.."....
    02c678002833b853 a823202882e580ff | ..x.(3.S.# (....
    7189fd0c08896772 d72b29270c12a028 | q.....gr.+)'...(
    834670009184fd0c 07a2090022a0c677 | .Fp........."..w
    9a02866c00285998 23b2c8f0b099c082 | ...l.(Y.#.......
    a0c090289392a0ef 860200007a838208 | ...(........z...
    181b77809930b727 f272030582030480 | ..w..0.'.r......
    7711807720820306 0088117078208203 | w..w ......px ..
    0780880170882080 99c082a0c10c0790 | ....p. .........
    2893865800816bfd 22a0c69208007d09 | (..X..k.".....}.
    16491598380c0722 a0c8771902c65100 | .I..8.."..w...Q.
    9248002858464f00 1c890c070c129718 | .H.(XFO.........
    02c64c00f873e863 d853c843b833a823 | ..L..s.c.S.C.3.#
    817bfee008007d0a 0c0a702a83c64500 | .{....}...p*..E.
    00000c12264802c6 4200a8230c0b8172 | ....&H..B..#...r
    fee0080006210000 80a0340c0722a0c0 | .....!....4.."..
    771a02463c008084 418b937d0a7cfbc6 | w..F<...A..}.|..
    0f00a83982611392 6112b261118168fe | ...9.a..a..a..h.
    e008009221128221 132829a819c22900 | ....!..!.()...).
    a0a210b221112602 0ec02000d22c0020 | ....!.&... ..,. 
    2b30d0221020aa20 c02000a90c1b7792 | +0.". . . ....w.
    c9108737bc0694ff 6648028692ff0c07 | ...7....fH......
    22a0c04624000c12 26b802c621002146 | "..F$...&...!.!F
    fe88537823890221 45fe79020c02061d | ..Sx#..!E.y.....
    00c141fe0c07d80c b2c8f00c128d07b0 | ..A.............
    8293d02793208810 22a0c6779859913b | ...'. .."..w.Y.;
    fe22a0c9e809b73e 4eb0a01422a0c077 | .".....>N..."..w
    9a452d0a0c1f4602 002a7378674b2279 | .E-...F..*sxgK"y
    0a8d0f207ec02aad b732ed16a8dda90c | ... ~.*..2......
    7909c674ff000c12 66881a712cfe2807 | y..t....f..q,.(.
    16220022a0c80c0a a9077127fea9070c | ."."......q'....
    1720a7932d0a0c07 20a074a537ff70a0 | . ..-... .t.7.p.
    742537ff253bff56 92ae72030182a00f | t%7.%;.V..r.....
    8717427738156647 02067c0066670286 | ..Bw8.fG..|.fg..
    8200263702c6b2fe 062100001c222797 | ..&7.....!..."'.
    0206760077320c1c 12279702063f0046 | ..v.w2...'...?.F
    acfe000022a0d227 175322a0d4271777 | ...."..'.S"..'.w
    06a8fe0000007223 033223026514ff56 | ......r#.2#.e..V
    1aa9a102fe8116fe e008008109fe9109 | ................
    fec02000822800ad 0280b435c0881190 | .. ..(.....5....
    8810808b2070b882 30bbc28116fee008 | .... p..0.......
    00a2a3e8810bfee0 08008695fe00d223 | ...............#
    05c22304b22303a8 23e565ff0691fe00 | ..#..#..#.e.....
    b2030322030280bb 1120bb20b2cbf0a2 | ..."..... . ....
    c318a543ffc68afe 2203037203028022 | ...C...."..r..."
    117022208105fee0 080071dafc22c2f0 | .p" ......q.."..
    883780226316b2a0 88178a82808c4186 | .7."c.........A.
    0200000082611325 36ff8221139847a6 | .....a.%6..!..G.
    190592270297a8eb 65ebfe169affa227 | ...'....e......'
    0120c220b2c31881 f5fde00800164a00 | . . ..........J.
    32a0c4395738172a 33391738372023c0 | 2..9W8.*39.87 #.
    293781effde00800 066efe0022c31822 | )7.......n..".."
    6110720303820302 80771180772072c7 | a.r......w..w r.
    f00c1946200021d0 fd31b0fb980279b1 | ...F .!..1....y.
    9033c0394138260c 1937b70292a00392 | .3.9A8&..7......
    6112652eff922112 31c9fd9901b22110 | a.e...!.1.....!.
    e802a1c7fdc2c12c f2c11030d32081d9 | .......,...0. ..
    fde008009d0ab826 a8b1822110a0bbc0 | .......&...!....
    aa88b926a077c0b8 02a8410c1caabb0c | ...&.w....A.....
    0a90ac83b9028261 10a0a07430bbc0cc | .......a...t0...
    6ad2db80d0ac838c da30a320926112e5 | j........0. .a..
    32ff922112326200 3225038ca7908f31 | 2..!.2b.2%.....1
    9088c0d6280056c3 f6d6790022a0c729 | ....(.V...y."..)
    554600008c498cb3 063efe0022a0c8cc | UF...I...>.."...
    53c63bfe0022a0c9 29558639fe282356 | S.;.."..)U.9.(#V
    128e650effa195fd 81aafde00800a505 | ..e.............
    ff81b5fde0080046 32fe000000283316 | .......F2....(3.
    128c650cffa2a3e8 81a2fde00800a503 | ..e.............
    ffe00200062bfe00 00e502ff1df00000 | .....+..........
    3641009d0282a0c0 280387990fcc320c | 6A......(.....2.
    120607000c022903 7ce2860e00261205 | ......).|....&..
    26221406030082a0 db8029238799280c | &"........)#..(.
    2229037cf2c60700 22a0dc27990a0c12 | ").|...."..'....
    29032d0806040000 0082a0dd7cf28799 | ).-.........|...
    060c12290322a0db 1df00000         | ...)."......
TRACE +0.005 Write 5181 bytes: 
    c00007cc13440000 00bc130000000000 | .....D..........
    0000000000000000 0014800360008003 | ............`...
    60b42bcb3f048003 6036410081fbff0c | `.+.?...`6A.....
    49dbdc20009908c6 04000081f8ffdbdc | I.. ............
    2000a80881f7ffa0 a0748808e0080021 |  ........t.....!
    f6ffdbdc20008802 27e8e11df0000000 | .... ...'.......
    080000601c000060 0000006010000060 | ...`...`...`...`
    36410021fbffdbdc 2000380241faffdb | 6A.!.... .8.A...
    dc20002804202094 9ce2060500000041 | . .(.  ........A
    f6ff81e5ffdbdc20 00a8048808a0a074 | ....... .......t
    e008000b226602e7 86f4ff21f1ffdbdc | ...."f.....!....
    200039021df00000 5420006054300060 |  .9.....T .`T0.`
    36410091fdffdbdc 2000880980802456 | 6A...... .....$V
    48ff91faffdbdc20 0088098080245648 | H...... .....$VH
    ff1df00000002c20 0060002000600000 | ......, .`. .`..
    0008364100e5fcff 21fbff0c08dbdc20 | ..6A....!...... 
    00890291fbff81f9 ffdbdc2000926800 | ........... ..h.
    dbdc200098085679 ffdbdc200088027c | .. ...Vy... ...|
    f28022302020041d f000000000403641 | .."0  .......@6A
    0065fcff169aff81 edff91fcffdbdc20 | .e............. 
    009908dbdc200098 085679ff1df00000 | ..... ...Vy.....
    9800cb3f1080ca3f 8080000084800000 | ...?...?........
    4040000050dbdcca 3f9c00cb3f364100 | @@..P...?...?6A.
    b1f8ff20a0742521 0196ea0581f6ff91 | ... .t%!........
    f6ffa0a074909880 dbdc2000b2290091 | ....t..... ..)..
    f3ff908880dbdc20 009218009090f41b | ....... ........
    c9dbdcdbdcf4dbdc 2000c258009a9bdb | ........ ..X....
    dc2000a24900dbdc 200092180081eaff | . ..I... .......
    9090f48080f48799 4681e4ff91e5ffa1 | ........F.......
    e8ff9a98dbdc2000 c809b1e4ff879c19 | ...... .........
    4602007ce8871ae1 4609000000dbdc20 | F..|....F...... 
    00890adbdc2000b9 09460200dbdc2000 | ..... ...F.... .
    b90adbdc20008909 91d8ff9a880c09db | .... ...........
    dc20009258001df0 0000e8080040f408 | . ..X........@..
    0040b80800403681 000c4b0c1a81fbff | .@...@6...K.....
    e008002c07061100 0c4b0c1a81f8ffe0 | ...,.....K......
    08007054430c080c 16d09511ed028941 | ..pTC..........A
    8931992139118901 2c0f0c8d1c2c0c4b | .1.!9...,....,.K
    ad066961695181ef ffe008000c4bad06 | ..iaiQ.......K..
    81eaffe008005a33 5a225044dbdce614 | ......Z3Z"PD....
    b70c021df0000036 81000c4b0c1a81e3 | .......6...K....
    ffe008001c06060c 0000006054430c08 | ...........`TC..
    0c1ad095110c8d39 31ed028961a95199 | .......91...a.Q.
    4189218911d9012c 0f0ccc0c4b81d9ff | A.!....,....K...
    e008005044dbdc5a 335a22e614cd0c02 | ...PD..Z3Z".....
    1df0000014280040 36410020a22081fd | .....(.@6A. . ..
    ffe008001df00000 5c07004036410081 | ........\..@6A..
    feffe00800220a18 0c1922c2fd0c0820 | ....."....".... 
    89832d081df00000 36410081f7ffe008 | ..-.....6A......
    00220a180c1922c2 fc0c082089832d08 | ."....".... ..-.
    1df0000000000200 bcffce3f88260040 | ...........?.&.@
    841b004094260040 901b0040364100e5 | ...@.&.@...@6A..
    faffac6a31f9ff41 f7ff8cb2a80381f7 | ...j1..A........
    ffe00800ad040609 00ad0481f5ffe008 | ................
    00a80381f4ffe008 00460800a5f9ff81 | .........F......
    edff32a020a08383 80a82016920081ee | ..2. ..... .....
    ffe0080086010000 81eaffe008001df0 | ................
    364100a5f5ff22a0 01565a00a5f6ffa0 | 6A...."..VZ.....
    2a202020041df000 0000ca3f0400ca3f | *   .......?...?
    10000c6060000c60 000c0000fff3ffff | ...``..`........
    364100e5fcff166a 04b1f7ff822b0016 | 6A.....j.....+..
    d80381f6ff922800 bc49a1f5ff7cccdb | ......(..I...|..
    dc2000880a909014 dbdc8810908820db | . ............ .
    dc2000890a880ba1 f0ffb1f0ffdbdc20 | . ............. 
    00980ab08810b1ee ffb09910908820db | .............. .
    dc2000890a1df000 00f82bcb3fb82bcb | . ........+.?.+.
    3f28260040364100 21fcff81dbdcffc8 | ?(&.@6A.!.......
    02a808b1faff81fb ffe008000c088902 | ................
    1df0900600403641 00a5eaff16aa0081 | .....@6A........
    f2ff8228008c18e5 fcff25ebff161a00 | ...(......%.....
    0c4a81f8ffe00800 1df0480600403641 | .J........H..@6A
    0025e8ff164a0391 e8ff822900a2c801 | .%...J.....)....
    a90991e7ff0c0a8a 9922490082c8c10c | ........."I.....
    1980a983a08074cc 88a2af40aa222089 | ......t....@." .
    839c9825f8ff0605 0000000020a22081 | ...%........ . .
    eeffe00800a5e5ff 162a00a5f8ff1df0 | .........*......
    000036410082a0db dcad0287920da2a0 | ..6A............
    dbdde5f9ffa2a0dc 460300000082a0db | ........F.......
    dd879205e5f8ffa2 a0dd65f8ff1df000 | ..........e.....
    003641003a320602 0000a202001b2265 | .6A.:2........"e
    fcff3792f41df000 00364100a2a0dbdc | ..7......6A.....
    25f6ff1df000b02b cb3fac2bcb3f4026 | %......+.?.+.?@&
    004034260040d026 00403661007cc8ad | .@4&.@.&.@6a.|..
    0287932d317fffc6 050000a8030c1cbd | ...-1...........
    0181f7ffe0080081 dbdcfea201008808 | ................
    e00800a80381f3ff e00800e61addc60a | ................
    0000006603260c03 cd010c2b32610081 | ...f.&.....+2a..
    eeffe00800980181 e8ff37990da80866 | ..........7....f
    1a0831e6ffdbdc20 00a2430099081df0 | ..1.... ..C.....
    0000800000000001 a000cb3fffffff00 | ...........?....
    042000600c090040 0009004036410031 | . .`...@...@6A.1
    faff222304161209 a5b5ff16ba088843 | .."#...........C
    0cf90c0287a90e82 230290881092a001 | ........#.......
    80298320207465b7 ffa5b0ffb82391ef | .).  te......#..
    ff408b1187b92c9c 82fb2bb0b2a30c4c | .@....,...+....L
    000c40b0b0b10c1a 81ebffe008001c02 | ..@.............
    460e000c4c0c1a81 e8ffe008000c1286 | F...L...........
    0a00000091dfffcc 1291deffa1e1ffdb | ................
    dc2000890a81bafe dbdc20009908dbdc | . ........ .....
    200098085679ff1c 090c182089932d08 |  ...Vy..... ..-.
    88432088dbdc8943 88232a2829231df0 | .C ....C.#*()#..
    140a004036610041 d1ff583450336316 | ...@6a.A..X4P3c.
    930b58145a53505c 4186000025f4ff68 | ..X.ZSP\A...%..h
    44a61604682467a5 f2e5a9ff169aff78 | D...h$g........x
    1461c7ff30578057 b66db2a0040c1a81 | .a..0W.W.m......
    e7fee00800705074 92a1005069dbdc67 | .....pPt...Pi..g
    b308cd03bd02ad07 060f0060c62020b2 | ...........`.  .
    2070a72052d5ff99 113a55e5b7ff5058 |  p. R....:U...PX
    410c0806050090c9 208261009911a5b6 | A....... .a.....
    ff880162d6011b88 80807498116aa760 | ...b......t..j.`
    b2805738e060c3db dc25b5ff0c4b0c1a | ..W8.`...%...K..
    81cffee008008605 0000cd03bd02ad07 | ................
    81d4ffe00800a0a0 748c3a22a0c42954 | ........t.:"..)T
    28143a2229142834 3032dbdc3264031d | (.:").(402..2d..
    f0000070e2fa3f08 20006000004000bc | ...p..?. .`..@..
    0a0040c80a004036 6100259bff31f9ff | ..@...@6a.%..1..
    10b12030a32081fa ffe008004d0a0c12 | .. 0. ......M...
    ecba880192a20090 88108901659fff91 | ............e...
    f2ffa1f2ffdbdc20 008809a08820dbdc | ....... ..... ..
    20008909b801ad03 81efffe00800a024 |  ..............$
    831df00000ff0f00 003641008185ff92 | .........6A.....
    a001924800309c41 92680291faff3268 | ...H.0.A.h....2h
    0129383030b49a22 2a33303c410c0229 | .)800.."*30<A..)
    58394865f8ff2d0a 8c1a22a0c51df000 | X9He..-...".....
    0000100000581000 005c1c0040200a00 | .....X...\..@ ..
    40681c0040741c00 40362121a2d11081 | @h..@t..@6!!....
    faffe00800460e00 0051f6ff916eff50 | .....F...Q...n.P
    43633a82cd04bd01 20a22087b905e5a9 | Cc:..... . .....
    ff46010081f2ffe0 0800a0a074fc4acd | .F..........t.J.
    04bd01a2d11081ee ffe0080040228040 | ............@".@
    33dbdc5633fca1e8 ffb2d11010aa8081 | 3..V3...........
    e9ffe00800a1e4ff 1c0b1aaa25ccff2d | ............%..-
    03060100000022a0 631df00000006c10 | ......".c.....l.
    0000681000007010 0000781000007410 | ..h...p...x...t.
    0000600600403641 2161fbff1a665906 | ..`..@6A!a...fY.
    0c0562d11050a520 52661a65adff71d1 | ..b..P. Rf.e..q.
    ff47b702063f00ad 0681d0ffe0080081 | .G...?..........
    f2ff71efff1a887a 919908c62d005073 | ..q....z....-.Ps
    dbdca141ff707463 3a82cd07bd0187ba | ...A.ptc:.......
    0920a220a59eff06 020000ad0281c4ff | . . ............
    e00800a0a0749c5a 0c088266167d0891 | .....t.Z...f.}..
    e4ff81e0ff1a998a a1a909860d000065 | ...............e
    c3ff70b720ad0165 c1ffe5c2ffcd0710 | ..p. ..e........
    b12060a62081b7ff e008007a227a5537 | . `. ......z"zU7
    b5c581d5ff72261a 1a8888087075dbdc | .....r&.....pu..
    87378c86ecff92a0 0092466c91d0ff10 | .7........Fl....
    9980a2290081cfff e0080056dafeb1a6 | ...).......V....
    ffa2066c1abba5a7 00f7ea13f6471081 | ...l.........G..
    c8ff1a8888087a98 a249001b7746f1ff | ......z..I..wF..
    7ce9979adbdc6647 0872261a37b70277 | |.....fG.r&.7..w
    b59ea199ff60b620 10aa80819bffe008 | .....`. ........
    0065baffa195ffb2 a0101aaa65b8ffa5 | .e..........e...
    b9ff0c1a259dff1d f00000ca3f4f4841 | ....%.......?OHA
    49fc2bcb3f448137 4098200c60a08237 | I.+.?D.7@. .`..7
    40e8843740080008 6080210c60108037 | @..7@...`.!.`..7
    4010800360548037 400c000060384000 | @...`T.7@...`8@.
    60ffff0000000001 0000000004102700 | `.............'.
    002c810060000000 808c800000104000 | .,..`.........@.
    000000ffff004000 000800ca3f0c00ca | ......@.....?...
    3f14000060f0ffff 00fc2bcb3f1000ca | ?...`.....+.?...
    3fb800cb3f800700 40781b0040b82600 | ?...?...@x..@.&.
    4064260040741f00 40ec0a0040500a00 | @d&.@t..@...@P..
    40000600401c2900 4024270040082800 | @...@.).@$'.@.(.
    40e4060040748104 409c090040fc0900 | @...@t..@...@...
    40080a0040a80600 40840900406c0900 | @...@...@...@l..
    4090090040280800 40d806004036e100 | @...@(..@...@6..
    21cbffa2a0002261 0c81e7ffe00800a5 | !....."a........
    93ff168a045155fe 3153fedbdc200022 | .....QU.1S... ."
    25004150fe290331 51fedbdc20006803 | %.AP.).1Q... .h.
    69047cc66022100c 26602220dbdc2000 | i.|.`"..&`" .. .
    29052804414dfe40 221042a400402220 | ).(.AM.@".B..@" 
    dbdc200029030602 0049024b22460200 | .. .)....I.K"F..
    000021b2ff31b4ff 0c043732ebe5a4ff | ..!..1....72....
    0c4ba2c130e5a2ff 65a4ff41a9fd21a9 | .K..0...e..A..!.
    fd31aeff2a24dbdc 20004902215cfd39 | .1..*$.. .I.!\.9
    02a581ff2d0a16fa 052113fec18bfea8 | ....-....!......
    02b2a002818dfee0 080031a5ffb1a5ff | ..........1.....
    1c1a0c0cdbdc2000 a90381bdffe00800 | ...... .........
    a108fe52a001810c fee00800b19effa8 | ...R............
    0281b8ffe00800a8 028104fee00800a8 | ................
    0281b5ffe0080031 99ffdbdc20002803 | .......1.... .(.
    502220dbdc200029 03061700e57cff16 | P" .. .).....|..
    ea023193ffa2a011 b193ffdbdc2000a2 | ..1.......... ..
    6300cd0281a7ffe0 08003190ff0c45db | c.........1...E.
    dc20002803a1f0fd 502220dbdc200029 | . .(....P" .. .)
    03460800b18bffcd 0a0c5a819effe008 | .F........Z.....
    003188ff52a101db dc200028032c0a50 | .1..R.... .(.,.P
    2220dbdc20002903 81e9fde008008199 | " .. .).........
    ffe008002181ffdb dc20002802ccba1c | ....!.... .(....
    c330221022c2f80c 1320a3830c0b8192 | .0".".... ......
    ffe00800f17affd1 fbfec17affb17aff | .....z.....z..z.
    e2a1000c0a818dff e00800217bff516d | ...........!{.Qm
    fe2a4462d52b4616 00000000814afedb | .*Db.+F......J..
    dc20003208003030 74167304a1ccfddb | . .2..00t.s.....
    dc200022480081cc fde00800a16cff81 | . ."H........l..
    80ffe008008180ff e008007169ff7ce8 | ...........qi.|.
    dbdc20003807a168 ff803310dbdc2000 | .. .8..h..3... .
    3907817affe00800 8179ffe0080020a2 | 9..z.....y.... .
    208178ffe00800db dc200028041602fa |  .x...... .(....
    0c07dbdc20003804 0c12dbdc20007904 | .... .8..... .y.
    2241242203010c28 79a1224125825113 | "A$"...(y."A%.Q.
    1c377712221c4777 121f66921f220303 | .7w.".Gw..f.."..
    7203028022117022 206642102823dbdc | r...".p" fB.(#..
    2000280229a10601 001c222251132587 |  .(.).....""Q.%.
    ff0c8ba2c1242585 ffb2030382030221 | .....$%........!
    49ff80bb11808b20 2020f487b211a2a0 | I......   ......
    dbdca580ffa2a0ee 2580ff6584ff86de | ........%..e....
    ff7203010cd22797 0246d70077325966 | .r....'..F..w2Yf
    6702061201f67723 66370246a700f647 | g.....w#f7.F...G
    0a662702c68a0006 2b00000066470286 | .f'.....+...fG..
    ba0066570246ed00 c62600000c922797 | ..fW.F...&....'.
    02c6ce0077321066 7702c6ee00668702 | ....w2.fw....f..
    4623000620000000 66970246e0000cb2 | F#.. ...f..F....
    27970246b600461b 001c422797028629 | '..F..F...B'...)
    0077322f1c122797 02c68f007732100c | .w2/..'.....w2..
    f227970286670066 b702c67c00861100 | .'...g.f...|....
    1c2227970206a100 1c32279702466700 | ."'......2'..Fg.
    c60c000022a0d227 9702866200773214 | ...."..'...b.w2.
    22a0d02797020622 0022a0d127970286 | "..'..."."..'...
    250046040022a0d3 27970286800122a0 | %.F.."..'.....".
    d42797020679000c 0722a0ff06e80000 | .'...y..."......
    002c490c0722a0db dc97180246e4002d | .,I.."......F..-
    0779a10c7720a220 6570ff20a220e56f | .y..w . ep. . .o
    ffe573ffe573ffb2 a008a2c1240b77a5 | ..s..s......$.w.
    71ff56f7fd464600 0022a00156f83580 | q.V..FF.."..V.5.
    b82080a820c2c110 810dffe008008d0a | . .. ...........
    56ba34bd07a2c110 826113e56effc6b0 | V.4......a..n...
    0000000c12566833 8261138105ffe008 | .....Vh3.a......
    00822113c6570000 00002688040c1206 | ..!..W....&.....
    c700782328332087 208080b456d8fe65 | ..x#(3 . ...V..e
    8fff567afec60b00 0081d6fd70ac4177 | ..Vz........p.Aw
    b817bd0a0c4c0c1a 81d5fde008008603 | .....L..........
    0022d2f072d71046 030081f2fee00800 | ."..r..F........
    16dafe86edff0000 cc12c695007090f4 | .............p..
    5659fcc60c0091c6 fd70a0f577b91ebd | VY.......p..w...
    0ac2a004a2a00181 c4fde00800c60400 | ................
    0091cefe9a2291c5 fe9a77c6020081e2 | ....."....w.....
    fee00800169afe86 dcff81dbdcfe2738 | ..............'8
    c52a27c60a0081b7 fd70ac4177b816bd | .*'......p.Aw...
    0a0c4c0c1a81b6fd e0080046030072d7 | ..L........F..r.
    10460300000081d4 fee0080016eafec6 | .F..............
    ceff7792d0467700 0c0722a0dbdc2688 | ..w..Fw..."...&.
    028693000c072d07 c6910026b8f5c669 | ......-....&...i
    0022a00126b80286 8d00b22303a22302 | ."..&......#..#.
    658bff46080022a0 0126b80246880091 | e..F.."..&..F...
    acfe82230472a000 22a0c287b9024684 | ...#.r..".....F.
    00b853a8232584ff 0c170c02a0279386 | ..S.#%.......'..
    7f00000022a00126 b802c67c00822304 | ...."..&...|..#.
    919ffe72a00022a0 c287b902c6780028 | ...r.."......x.(
    33b853a823202882 e580ff7189fd0c08 | 3.S.# (....q....
    896772d72b29270c 12a0288346700091 | .gr.+)'...(.Fp..
    84fd0c07a2090022 a0c6779a02866c00 | ......."..w...l.
    28599823b2c8f0b0 99dbdc82a0dbdc90 | (Y.#............
    289392a0ef860200 007a838208181b77 | (........z.....w
    809930b727f27203 0582030480771180 | ..0.'.r......w..
    7720820306008811 7078208203078088 | w ......px .....
    017088208099dbdc 82a0c10c07902893 | .p. ..........(.
    865800816bfd22a0 c69208007d091649 | .X..k.".....}..I
    1598380c0722a0c8 771902c651009248 | ..8.."..w...Q..H
    002858464f001c89 0c070c12971802c6 | .(XFO...........
    4c00f873e863d853 c843b833a823817b | L..s.c.S.C.3.#.{
    fee008007d0a0c0a 702a83c645000000 | ....}...p*..E...
    0c12264802c64200 a8230c0b8172fee0 | ..&H..B..#...r..
    08000621000080a0 340c0722a0dbdc77 | ...!....4.."...w
    1a02463c00808441 8b937d0a7cfbc60f | ..F<...A..}.|...
    00a8398261139261 12b261118168fee0 | ..9.a..a..a..h..
    0800922112822113 2829a819c22900a0 | ...!..!.()...)..
    a210b2211126020e dbdc2000d22c0020 | ...!.&.... ..,. 
    2b30d0221020aa20 dbdc2000a90c1b77 | +0.". . .. ....w
    92c9108737bc0694 ff6648028692ff0c | ....7....fH.....
    0722a0dbdc462400 0c1226b802c62100 | ."...F$...&...!.
    2146fe8853782389 022145fe79020c02 | !F..Sx#..!E.y...
    061d00c141fe0c07 d80cb2c8f00c128d | ....A...........
    07b08293d0279320 881022a0c6779859 | .....'. .."..w.Y
    913bfe22a0c9e809 b73e4eb0a01422a0 | .;.".....>N...".
    dbdc779a452d0a0c 1f4602002a737867 | ..w.E-...F..*sxg
    4b22790a8d0f207e dbdc2aadb732ed16 | K"y... ~..*..2..
    a8dda90c7909c674 ff000c1266881a71 | ....y..t....f..q
    2cfe280716220022 a0c80c0aa9077127 | ,.(.."."......q'
    fea9070c1720a793 2d0a0c0720a074a5 | ..... ..-... .t.
    37ff70a0742537ff 253bff5692ae7203 | 7.p.t%7.%;.V..r.
    0182a00f87174277 3815664702067c00 | ......Bw8.fG..|.
    6667028682002637 02c6b2fe06210000 | fg....&7.....!..
    1c22279702067600 77320c1c12279702 | ."'...v.w2...'..
    063f0046acfe0000 22a0d227175322a0 | .?.F...."..'.S".
    d427177706a8fe00 0000722303322302 | .'.w......r#.2#.
    6514ff561aa9a102 fe8116fee0080081 | e..V............
    09fe9109fedbdc20 00822800ad0280b4 | ....... ..(.....
    35dbdc8811908810 808b2070b88230bb | 5......... p..0.
    c28116fee00800a2 a3e8810bfee00800 | ................
    8695fe00d22305c2 2304b22303a823e5 | .....#..#..#..#.
    65ff0691fe00b203 0322030280bb1120 | e........"..... 
    bb20b2cbf0a2c318 a543ffc68afe2203 | . .......C....".
    0372030280221170 22208105fee00800 | .r...".p" ......
    71dafc22c2f08837 80226316b2a08817 | q.."...7."c.....
    8a82808c41860200 00008261132536ff | ....A......a.%6.
    8221139847a61905 92270297a8eb65eb | .!..G....'....e.
    fe169affa2270120 c220b2c31881f5fd | .....'. . ......
    e00800164a0032a0 c4395738172a3339 | ....J.2..9W8.*39
    1738372023dbdc29 3781effde0080006 | .87 #..)7.......
    6efe0022c3182261 1072030382030280 | n..".."a.r......
    771180772072c7f0 0c1946200021d0fd | w..w r....F .!..
    31b0fb980279b190 33dbdc394138260c | 1....y..3..9A8&.
    1937b70292a00392 6112652eff922112 | .7......a.e...!.
    31c9fd9901b22110 e802a1c7fdc2c12c | 1.....!........,
    f2c11030d32081d9 fde008009d0ab826 | ...0. .........&
    a8b1822110a0bbdb dcaa88b926a077db | ...!........&.w.
    dcb802a8410c1caa bb0c0a90ac83b902 | ....A...........
    826110a0a07430bb dbdccc6ad2dbdd80 | .a...t0....j....
    d0ac838cda30a320 926112e532ff9221 | .....0. .a..2..!
    123262003225038c a7908f319088dbdc | .2b.2%.....1....
    d6280056c3f6d679 0022a0c729554600 | .(.V...y."..)UF.
    008c498cb3063efe 0022a0c8cc53c63b | ..I...>.."...S.;
    fe0022a0c9295586 39fe282356128e65 | .."..)U.9.(#V..e
    0effa195fd81aafd e00800a505ff81b5 | ................
    fde008004632fe00 0000283316128c65 | ....F2....(3...e
    0cffa2a3e881a2fd e00800a503ffe002 | ................
    00062bfe0000e502 ff1df00000364100 | ..+..........6A.
    9d0282a0dbdc2803 87990fcc320c1206 | ......(.....2...
    07000c0229037ce2 860e002612052622 | ....).|....&..&"
    1406030082a0dbdd 8029238799280c22 | .........)#..(."
    29037cf2c6070022 a0dc27990a0c1229 | ).|...."..'....)
    032d080604000000 82a0dd7cf2879906 | .-.........|....
    0c12290322a0dbdd 1df00000c0       | ..)."........
TRACE +0.041 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0107040012f4000000000000c0
TRACE +0.000 Received full packet: 0107040012f4000000000000
TRACE +0.000 command op=0x05 data len=16 wait_response=1 timeout=2.000 data=040000000100000000180000fc2bcb3f
TRACE +0.000 Write 26 bytes: 
    c000051000000000 0004000000010000 | ................
    0000180000fc2bcb 3fc0             | ......+.?.
TRACE +0.001 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0105040012f4000000000000c0
TRACE +0.000 Received full packet: 0105040012f4000000000000
TRACE +0.000 command op=0x07 data len=20 wait_response=1 timeout=2.000 data=
    0400000000000000 0000000000000000 | ................
    1000ca3f                          | ...?
TRACE +0.000 Write 30 bytes: 
    c0000714000a0000 0004000000000000 | ................
    0000000000000000 001000ca3fc0     | ............?.
TRACE +0.001 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0107040012f4000000000000c0
TRACE +0.000 Received full packet: 0107040012f4000000000000
Running stub...
TRACE +0.000 command op=0x06 data len=8 wait_response=1 timeout=2.000 data=000000000c8a3740
TRACE +0.000 Write 18 bytes: 
    c000060800000000 00000000000c8a37 | ...............7
    40c0                              | @.
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0106040012f4000000000000c0
TRACE +0.000 Received full packet: 0106040012f4000000000000

More Information

Esptool runs but stops on 'running stub' indefinitely. Device is in boot mode. Have tried various options: --before no_reset_no_sync, no_reset --after no reset. Tried various larger values of MEM_END_ROM_TIMEOUT up to 2.5. I don't think it is a comms problem since the Web Serial JS tool works fine (https://github.com/makermelissa/Adafruit_WebSerial_ESPTool), can enter REPL using rshell, etc. Also running the --no_stub option works fine but unable then to erase_flash.

Tried on multiple esp32-s3 all have same problem. Esptool works fine on same setup with ESP32-D0WD-V3 and others with usb to serial (SIL 2104, etc).

Other Steps to Reproduce

No response

I Have Read the Troubleshooting Guide

  • I confirm I have read the troubleshooting guide.
@github-actions github-actions bot changed the title esp32s3 fails chip_id, erase_flash, etc esp32s3 fails chip_id, erase_flash, etc (ESPTOOL-565) Dec 8, 2022
@radimkarnis
Copy link
Collaborator

Hi @bamason2,
ESP32-S3 is tested with esptool and works fine in the stub mode. We need to investigate more.

Tried on multiple esp32-s3 all have same problem

Are these all the same revision v0.1 ?

Also, can you please try older versions of esptool? Maybe we can try to pinpoint the commit that introduced a regression (if there is one).

Thanks!

@Emill
Copy link
Contributor

Emill commented Dec 13, 2022

We got the same issue on 1 of 70 tried custom boards (all revision v0.1). On this single one failing board the problem is consistent, i.e. happens all the time. The flash is empty and has never been programmed.
Commit https://github.com/espressif/esptool/tree/0656f77d7980fe29c7969efd9f04b23083f22ec7 works but https://github.com/espressif/esptool/tree/dccf4dff0a678f5efccdd73f112e47d76c66e79c and onwards do not. OHAI is not printed so I guess the stub hangs during init. "Saved pc" after reset is "0x400003c0" (as printed by a separate UART cable). Esptool itself runs over usb.

I still think it has something to do with the part that increases the clock frequency, since a few rearrangements of the code there leads to the same issue, but only when the code that is increasing cpu frequency is present. Same code but setting it to 160 MHz instead of 240 MHz does not lead to the issue. Maybe there are some precautions that need to be taken when increasing the clock speed, such as doing it in a particular order or something? Adding delays in form of a for (volatile int i = 0; i < 10000; i++) {} between the register writes do not seem to fix anything.

Or maybe the particular ESP32-S3 module is simply broken on this unit? In any case, it would be good if @bamason2 could test the two mentioned commits above. @radimkarnis if you want the board that's failing we could send it to you.

@fennecbutt
Copy link

fennecbutt commented Dec 14, 2022

I'm getting the same issue with an UnexpectedMaker TinyS3. I bought a ProS3 at the same time and this works fine.

OS: MacOS Mojave: 10.14.6 (18G9216)
Python: Python 3.11
ESPTool: v4.4, installed via homebrew

Problem:
So the ProS3 works fine, with and without --no-stub. The TinyS3 will only work with --no-stub option, which doesn't allow for erase_flash command.

If I run the command: esptool.py --trace -p /dev/tty.usbmodem14301 -c esp32s3 flash_id then it will just hang after "Running stub..." and never complete.

The output is:

esptool.py v4.4
Serial port /dev/tty.usbmodem14301
Connecting...TRACE +0.000 command op=0x08 data len=36 wait_response=1 timeout=0.100 data=
    0707122055555555 5555555555555555 | ... UUUUUUUUUUUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    55555555                          | UUUU
TRACE +0.000 Write 46 bytes: 
    c000082400000000 0007071220555555 | ...$........ UUU
    5555555555555555 5555555555555555 | UUUUUUUUUUUUUUUU
    5555555555555555 5555555555c0     | UUUUUUUUUUUUU.
TRACE +0.001 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000
TRACE +0.000 Read 14 bytes: c0010804000707122000000000c0
TRACE +0.000 Received full packet: 010804000707122000000000

TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=00100040
TRACE +0.000 Write 14 bytes: c0000a04000000000000100040c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000900000000000000c0
TRACE +0.000 Received full packet: 010a04000900000000000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=4cf1ce3f
TRACE +0.000 Write 14 bytes: c0000a0400000000004cf1ce3fc0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000400000000000000c0
TRACE +0.000 Received full packet: 010a04000400000000000000
TRACE +0.000 command op=0x14 data len=0 wait_response=1 timeout=3.000 data=
TRACE +0.000 Write 10 bytes: c00014000000000000c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 33 bytes: 
    0114180004000000 0000000000000000 | ................
    0000000c09000000 0000000000000000 | ................
    c0                                | .
TRACE +0.000 Received full packet: 
    0114180004000000 0000000000000000 | ................
    0000000c09000000 0000000000000000 | ................
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=58700060
TRACE +0.000 Write 14 bytes: c0000a04000000000058700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a040020dc067c00000000c0
TRACE +0.000 Received full packet: 010a040020dc067c00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=58700060
TRACE +0.000 Write 14 bytes: c0000a04000000000058700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a040020dc067c00000000c0
TRACE +0.000 Received full packet: 010a040020dc067c00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=50700060
TRACE +0.000 Write 14 bytes: c0000a04000000000050700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000000048a00000000c0
TRACE +0.000 Received full packet: 010a04000000048a00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=58700060
TRACE +0.000 Write 14 bytes: c0000a04000000000058700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a040020dc067c00000000c0
TRACE +0.000 Received full packet: 010a040020dc067c00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=50700060
TRACE +0.000 Write 14 bytes: c0000a04000000000050700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a04000000048a00000000c0
TRACE +0.000 Received full packet: 010a04000000048a00000000
Chip is ESP32-S3 (revision v0.1)
Features: WiFi, BLE
Crystal is 40MHz
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=44700060
TRACE +0.000 Write 14 bytes: c0000a04000000000044700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a0400209a4ffa00000000c0
TRACE +0.000 Received full packet: 010a0400209a4ffa00000000
TRACE +0.000 command op=0x0a data len=4 wait_response=1 timeout=3.000 data=48700060
TRACE +0.000 Write 14 bytes: c0000a04000000000048700060c0
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 010a040012f4000000000000c0
TRACE +0.000 Received full packet: 010a040012f4000000000000
MAC: f4:12:fa:4f:9a:20
Uploading stub...
TRACE +0.001 command op=0x05 data len=16 wait_response=1 timeout=3.000 data=bc130000010000000018000000803740
TRACE +0.000 Write 26 bytes: 
    c000051000000000 00bc130000010000 | ................
    0000180000008037 40c0             | .......7@.
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0105040012f4000000000000c0
TRACE +0.000 Received full packet: 0105040012f4000000000000
TRACE +0.000 command op=0x07 data len=5068 wait_response=1 timeout=3.000 data=
    bc13000000000000 0000000000000000 | ................
    1480036000800360 b42bcb3f04800360 | ...`...`.+.?...`
    36410081fbff0c49 c020009908c60400 | 6A.....I. ......
    0081f8ffc02000a8 0881f7ffa0a07488 | ..... ........t.
    08e0080021f6ffc0 2000880227e8e11d | ....!... ...'...
    f000000008000060 1c00006000000060 | .......`...`...`
    1000006036410021 fbffc02000380241 | ...`6A.!... .8.A
    faffc02000280420 20949ce206050000 | ... .(.  .......
    0041f6ff81e5ffc0 2000a8048808a0a0 | .A...... .......
    74e008000b226602 e786f4ff21f1ffc0 | t...."f.....!...
    200039021df00000 5420006054300060 |  .9.....T .`T0.`
    36410091fdffc020 0088098080245648 | 6A..... .....$VH
    ff91faffc0200088 098080245648ff1d | ..... .....$VH..
    f00000002c200060 0020006000000008 | ...., .`. .`....
    364100e5fcff21fb ff0c08c020008902 | 6A....!..... ...
    91fbff81f9ffc020 00926800c0200098 | ....... ..h.. ..
    085679ffc0200088 027cf28022302020 | .Vy.. ...|.."0  
    041df00000000040 36410065fcff169a | .......@6A.e....
    ff81edff91fcffc0 20009908c0200098 | ........ .... ..
    085679ff1df00000 9800cb3f1080ca3f | .Vy........?...?
    8080000084800000 4040000050c0ca3f | ........@@..P..?
    9c00cb3f364100b1 f8ff20a074252101 | ...?6A.... .t%!.
    96ea0581f6ff91f6 ffa0a074909880c0 | ...........t....
    2000b2290091f3ff 908880c020009218 |  ..)........ ...
    009090f41bc9c0c0 f4c02000c258009a | .......... ..X..
    9bc02000a24900c0 200092180081eaff | .. ..I.. .......
    9090f48080f48799 4681e4ff91e5ffa1 | ........F.......
    e8ff9a98c02000c8 09b1e4ff879c1946 | ..... .........F
    02007ce8871ae146 09000000c0200089 | ..|....F..... ..
    0ac02000b9094602 00c02000b90ac020 | .. ...F... .... 
    00890991d8ff9a88 0c09c02000925800 | ........... ..X.
    1df00000e8080040 f4080040b8080040 | .......@...@...@
    3681000c4b0c1a81 fbffe008002c0706 | 6...K........,..
    11000c4b0c1a81f8 ffe008007054430c | ...K........pTC.
    080c16d09511ed02 8941893199213911 | .........A.1.!9.
    89012c0f0c8d1c2c 0c4bad0669616951 | ..,....,.K..iaiQ
    81efffe008000c4b ad0681eaffe00800 | .......K........
    5a335a225044c0e6 14b70c021df00000 | Z3Z"PD..........
    3681000c4b0c1a81 e3ffe008001c0606 | 6...K...........
    0c0000006054430c 080c1ad095110c8d | ....`TC.........
    3931ed028961a951 994189218911d901 | 91...a.Q.A.!....
    2c0f0ccc0c4b81d9 ffe008005044c05a | ,....K......PD.Z
    335a22e614cd0c02 1df0000014280040 | 3Z"..........(.@
    36410020a22081fd ffe008001df00000 | 6A. . ..........
    5c07004036410081 feffe00800220a18 | \..@6A......."..
    0c1922c2fd0c0820 89832d081df00000 | ..".... ..-.....
    36410081f7ffe008 00220a180c1922c2 | 6A......."....".
    fc0c082089832d08 1df0000000000200 | ... ..-.........
    bcffce3f88260040 841b004094260040 | ...?.&.@...@.&.@
    901b0040364100e5 faffac6a31f9ff41 | ...@6A.....j1..A
    f7ff8cb2a80381f7 ffe00800ad040609 | ................
    00ad0481f5ffe008 00a80381f4ffe008 | ................
    00460800a5f9ff81 edff32a020a08383 | .F........2. ...
    80a82016920081ee ffe0080086010000 | .. .............
    81eaffe008001df0 364100a5f5ff22a0 | ........6A....".
    01565a00a5f6ffa0 2a202020041df000 | .VZ.....*   ....
    0000ca3f0400ca3f 10000c6060000c60 | ...?...?...``..`
    000c0000fff3ffff 364100e5fcff166a | ........6A.....j
    04b1f7ff822b0016 d80381f6ff922800 | .....+........(.
    bc49a1f5ff7cccc0 2000880a909014c0 | .I...|.. .......
    8810908820c02000 890a880ba1f0ffb1 | .... . .........
    f0ffc02000980ab0 8810b1eeffb09910 | ... ............
    908820c02000890a 1df00000f82bcb3f | .. . ........+.?
    b82bcb3f28260040 36410021fcff81c0 | .+.?(&.@6A.!....
    ffc802a808b1faff 81fbffe008000c08 | ................
    89021df090060040 364100a5eaff16aa | .......@6A......
    0081f2ff8228008c 18e5fcff25ebff16 | .....(......%...
    1a000c4a81f8ffe0 08001df048060040 | ...J........H..@
    36410025e8ff164a 0391e8ff822900a2 | 6A.%...J.....)..
    c801a90991e7ff0c 0a8a9922490082c8 | ..........."I...
    c10c1980a983a080 74cc88a2af40aa22 | ........t....@."
    2089839c9825f8ff 06050000000020a2 |  ....%........ .
    2081eeffe00800a5 e5ff162a00a5f8ff |  ..........*....
    1df0000036410082 a0c0ad0287920da2 | ....6A..........
    a0dbe5f9ffa2a0dc 460300000082a0db | ........F.......
    879205e5f8ffa2a0 dd65f8ff1df00000 | .........e......
    3641003a32060200 00a202001b2265fc | 6A.:2........"e.
    ff3792f41df00000 364100a2a0c025f6 | .7......6A....%.
    ff1df000b02bcb3f ac2bcb3f40260040 | .....+.?.+.?@&.@
    34260040d0260040 3661007cc8ad0287 | 4&.@.&.@6a.|....
    932d317fffc60500 00a8030c1cbd0181 | .-1.............
    f7ffe0080081c0fe a201008808e00800 | ................
    a80381f3ffe00800 e61addc60a000000 | ................
    6603260c03cd010c 2b32610081eeffe0 | f.&.....+2a.....
    0800980181e8ff37 990da808661a0831 | .......7....f..1
    e6ffc02000a24300 99081df000008000 | ... ..C.........
    00000001a000cb3f ffffff0004200060 | .......?..... .`
    0c09004000090040 36410031faff2223 | ...@...@6A.1.."#
    04161209a5b5ff16 ba0888430cf90c02 | ...........C....
    87a90e8223029088 1092a00180298320 | ....#........). 
    207465b7ffa5b0ff b82391efff408b11 |  te......#...@..
    87b92c9c82fb2bb0 b2a30c4c000c40b0 | ..,...+....L..@.
    b0b10c1a81ebffe0 08001c02460e000c | ............F...
    4c0c1a81e8ffe008 000c12860a000000 | L...............
    91dfffcc1291deff a1e1ffc02000890a | ............ ...
    81bafec020009908 c0200098085679ff | .... .... ...Vy.
    1c090c182089932d 0888432088c08943 | .... ..-..C ...C
    88232a2829231df0 140a004036610041 | .#*()#.....@6a.A
    d1ff583450336316 930b58145a53505c | ..X4P3c...X.ZSP\
    4186000025f4ff68 44a61604682467a5 | A...%..hD...h$g.
    f2e5a9ff169aff78 1461c7ff30578057 | .......x.a..0W.W
    b66db2a0040c1a81 e7fee00800705074 | .m...........pPt
    92a1005069c067b3 08cd03bd02ad0706 | ...Pi.g.........
    0f0060c62020b220 70a72052d5ff9911 | ..`.  . p. R....
    3a55e5b7ff505841 0c0806050090c920 | :U...PXA....... 
    8261009911a5b6ff 880162d6011b8880 | .a........b.....
    807498116aa760b2 805738e060c3c025 | .t..j.`..W8.`..%
    b5ff0c4b0c1a81cf fee0080086050000 | ...K............
    cd03bd02ad0781d4 ffe00800a0a0748c | ..............t.
    3a22a0c429542814 3a22291428343032 | :"..)T(.:").(402
    c03264031df00000 70e2fa3f08200060 | .2d.....p..?. .`
    00004000bc0a0040 c80a004036610025 | ..@....@...@6a.%
    9bff31f9ff10b120 30a32081faffe008 | ..1.... 0. .....
    004d0a0c12ecba88 0192a20090881089 | .M..............
    01659fff91f2ffa1 f2ffc020008809a0 | .e......... ....
    8820c020008909b8 01ad0381efffe008 | . . ............
    00a024831df00000 ff0f000036410081 | ..$.........6A..
    85ff92a001924800 309c4192680291fa | ......H.0.A.h...
    ff32680129383030 b49a222a33303c41 | .2h.)800.."*30<A
    0c022958394865f8 ff2d0a8c1a22a0c5 | ..)X9He..-..."..
    1df0000000100000 581000005c1c0040 | ........X...\..@
    200a0040681c0040 741c0040362121a2 |  ..@h..@t..@6!!.
    d11081faffe00800 460e000051f6ff91 | ........F...Q...
    6eff5043633a82cd 04bd0120a22087b9 | n.PCc:..... . ..
    05e5a9ff46010081 f2ffe00800a0a074 | ....F..........t
    fc4acd04bd01a2d1 1081eeffe0080040 | .J.............@
    22804033c05633fc a1e8ffb2d11010aa | ".@3.V3.........
    8081e9ffe00800a1 e4ff1c0b1aaa25cc | ..............%.
    ff2d030601000000 22a0631df0000000 | .-......".c.....
    6c10000068100000 7010000078100000 | l...h...p...x...
    7410000060060040 36412161fbff1a66 | t...`..@6A!a...f
    59060c0562d11050 a52052661a65adff | Y...b..P. Rf.e..
    71d1ff47b702063f 00ad0681d0ffe008 | q..G...?........
    0081f2ff71efff1a 887a919908c62d00 | ....q....z....-.
    5073c0a141ff7074 633a82cd07bd0187 | Ps..A.ptc:......
    ba0920a220a59eff 06020000ad0281c4 | .. . ...........
    ffe00800a0a0749c 5a0c088266167d08 | ......t.Z...f.}.
    91e4ff81e0ff1a99 8aa1a909860d0000 | ................
    65c3ff70b720ad01 65c1ffe5c2ffcd07 | e..p. ..e.......
    10b12060a62081b7 ffe008007a227a55 | .. `. ......z"zU
    37b5c581d5ff7226 1a1a8888087075c0 | 7.....r&.....pu.
    87378c86ecff92a0 0092466c91d0ff10 | .7........Fl....
    9980a2290081cfff e0080056dafeb1a6 | ...).......V....
    ffa2066c1abba5a7 00f7ea13f6471081 | ...l.........G..
    c8ff1a8888087a98 a249001b7746f1ff | ......z..I..wF..
    7ce9979ac0664708 72261a37b70277b5 | |....fG.r&.7..w.
    9ea199ff60b62010 aa80819bffe00800 | ....`. .........
    65baffa195ffb2a0 101aaa65b8ffa5b9 | e..........e....
    ff0c1a259dff1df0 0000ca3f4f484149 | ...%.......?OHAI
    fc2bcb3f44813740 98200c60a0823740 | .+.?D.7@. .`..7@
    e884374008000860 80210c6010803740 | ..7@...`.!.`..7@
    1080036054803740 0c00006038400060 | ...`T.7@...`8@.`
    ffff000000000100 0000000410270000 | .............'..
    2c81006000000080 8c80000010400000 | ,..`.........@..
    0000ffff00400000 0800ca3f0c00ca3f | .....@.....?...?
    14000060f0ffff00 fc2bcb3f1000ca3f | ...`.....+.?...?
    b800cb3f80070040 781b0040b8260040 | ...?...@x..@.&.@
    64260040741f0040 ec0a0040500a0040 | d&.@t..@...@P..@
    000600401c290040 2427004008280040 | ...@.).@$'.@.(.@
    e406004074810440 9c090040fc090040 | ...@t..@...@...@
    080a0040a8060040 840900406c090040 | ...@...@...@l..@
    9009004028080040 d806004036e10021 | ...@(..@...@6..!
    cbffa2a00022610c 81e7ffe00800a593 | ....."a.........
    ff168a045155fe31 53fec02000222500 | ....QU.1S.. ."%.
    4150fe29033151fe c02000680369047c | AP.).1Q.. .h.i.|
    c66022100c266022 20c0200029052804 | .`"..&`" . .).(.
    414dfe40221042a4 00402220c0200029 | AM.@".B..@" . .)
    0306020049024b22 460200000021b2ff | ....I.K"F....!..
    31b4ff0c043732eb e5a4ff0c4ba2c130 | 1....72.....K..0
    e5a2ff65a4ff41a9 fd21a9fd31aeff2a | ...e..A..!..1..*
    24c020004902215c fd3902a581ff2d0a | $. .I.!\.9....-.
    16fa052113fec18b fea802b2a002818d | ...!............
    fee0080031a5ffb1 a5ff1c1a0c0cc020 | ....1.......... 
    00a90381bdffe008 00a108fe52a00181 | ............R...
    0cfee00800b19eff a80281b8ffe00800 | ................
    a8028104fee00800 a80281b5ffe00800 | ................
    3199ffc020002803 502220c020002903 | 1... .(.P" . .).
    061700e57cff16ea 023193ffa2a011b1 | ....|....1......
    93ffc02000a26300 cd0281a7ffe00800 | ... ..c.........
    3190ff0c45c02000 2803a1f0fd502220 | 1...E. .(....P" 
    c020002903460800 b18bffcd0a0c5a81 | . .).F........Z.
    9effe008003188ff 52a101c020002803 | .....1..R... .(.
    2c0a502220c02000 290381e9fde00800 | ,.P" . .).......
    8199ffe008002181 ffc020002802ccba | ......!... .(...
    1cc330221022c2f8 0c1320a3830c0b81 | ..0".".... .....
    92ffe00800f17aff d1fbfec17affb17a | ......z.....z..z
    ffe2a1000c0a818d ffe00800217bff51 | ............!{.Q
    6dfe2a4462d52b46 1600000000814afe | m.*Db.+F......J.
    c020003208003030 74167304a1ccfdc0 | . .2..00t.s.....
    200022480081ccfd e00800a16cff8180 |  ."H........l...
    ffe008008180ffe0 08007169ff7ce8c0 | ..........qi.|..
    20003807a168ff80 3310c02000390781 |  .8..h..3.. .9..
    7affe008008179ff e0080020a2208178 | z.....y.... . .x
    ffe00800c0200028 041602fa0c07c020 | ..... .(....... 
    0038040c12c02000 7904224124220301 | .8.... .y."A$"..
    0c2879a122412582 51131c377712221c | .(y."A%.Q..7w.".
    4777121f66921f22 0303720302802211 | Gw..f.."..r...".
    7022206642102823 c02000280229a106 | p" fB.(#. .(.)..
    01001c2222511325 87ff0c8ba2c12425 | ...""Q.%......$%
    85ffb20303820302 2149ff80bb11808b | ........!I......
    202020f487b211a2 a0c0a580ffa2a0ee |    .............
    2580ff6584ff86de ff7203010cd22797 | %..e.....r....'.
    0246d70077325966 6702061201f67723 | .F..w2Yfg.....w#
    66370246a700f647 0a662702c68a0006 | f7.F...G.f'.....
    2b00000066470286 ba0066570246ed00 | +...fG....fW.F..
    c62600000c922797 02c6ce0077321066 | .&....'.....w2.f
    7702c6ee00668702 4623000620000000 | w....f..F#.. ...
    66970246e0000cb2 27970246b600461b | f..F....'..F..F.
    001c422797028629 0077322f1c122797 | ..B'...).w2/..'.
    02c68f007732100c f227970286670066 | ....w2...'...g.f
    b702c67c00861100 1c2227970206a100 | ...|....."'.....
    1c32279702466700 c60c000022a0d227 | .2'..Fg....."..'
    9702866200773214 22a0d02797020622 | ...b.w2."..'..."
    0022a0d127970286 250046040022a0d3 | ."..'...%.F.."..
    27970286800122a0 d42797020679000c | '....."..'...y..
    0722a0ff06e80000 002c490c0722a0c0 | .".......,I.."..
    97180246e4002d07 79a10c7720a22065 | ...F..-.y..w . e
    70ff20a220e56fff e573ffe573ffb2a0 | p. . .o..s..s...
    08a2c1240b77a571 ff56f7fd46460000 | ...$.w.q.V..FF..
    22a00156f83580b8 2080a820c2c11081 | "..V.5.. .. ....
    0dffe008008d0a56 ba34bd07a2c11082 | .......V.4......
    6113e56effc6b000 00000c1256683382 | a..n........Vh3.
    61138105ffe00800 822113c657000000 | a........!..W...
    002688040c1206c7 0078232833208720 | .&.......x#(3 . 
    8080b456d8fe658f ff567afec60b0000 | ...V..e..Vz.....
    81d6fd70ac4177b8 17bd0a0c4c0c1a81 | ...p.Aw.....L...
    d5fde00800860300 22d2f072d7104603 | ........"..r..F.
    0081f2fee0080016 dafe86edff0000cc | ................
    12c695007090f456 59fcc60c0091c6fd | ....p..VY.......
    70a0f577b91ebd0a c2a004a2a00181c4 | p..w............
    fde00800c6040000 91cefe9a2291c5fe | ............"...
    9a77c6020081e2fe e00800169afe86dc | .w..............
    ff81c0fe2738c52a 27c60a0081b7fd70 | ....'8.*'......p
    ac4177b816bd0a0c 4c0c1a81b6fde008 | .Aw.....L.......
    0046030072d71046 0300000081d4fee0 | .F..r..F........
    080016eafec6ceff 7792d04677000c07 | ........w..Fw...
    22a0c02688028693 000c072d07c69100 | "..&.......-....
    26b8f5c6690022a0 0126b802868d00b2 | &...i."..&......
    2303a22302658bff 46080022a00126b8 | #..#.e..F.."..&.
    0246880091acfe82 230472a00022a0c2 | .F......#.r.."..
    87b902468400b853 a8232584ff0c170c | ...F...S.#%.....
    02a02793867f0000 0022a00126b802c6 | ..'......"..&...
    7c00822304919ffe 72a00022a0c287b9 | |..#....r.."....
    02c678002833b853 a823202882e580ff | ..x.(3.S.# (....
    7189fd0c08896772 d72b29270c12a028 | q.....gr.+)'...(
    834670009184fd0c 07a2090022a0c677 | .Fp........."..w
    9a02866c00285998 23b2c8f0b099c082 | ...l.(Y.#.......
    a0c090289392a0ef 860200007a838208 | ...(........z...
    181b77809930b727 f272030582030480 | ..w..0.'.r......
    7711807720820306 0088117078208203 | w..w ......px ..
    0780880170882080 99c082a0c10c0790 | ....p. .........
    2893865800816bfd 22a0c69208007d09 | (..X..k.".....}.
    16491598380c0722 a0c8771902c65100 | .I..8.."..w...Q.
    9248002858464f00 1c890c070c129718 | .H.(XFO.........
    02c64c00f873e863 d853c843b833a823 | ..L..s.c.S.C.3.#
    817bfee008007d0a 0c0a702a83c64500 | .{....}...p*..E.
    00000c12264802c6 4200a8230c0b8172 | ....&H..B..#...r
    fee0080006210000 80a0340c0722a0c0 | .....!....4.."..
    771a02463c008084 418b937d0a7cfbc6 | w..F<...A..}.|..
    0f00a83982611392 6112b261118168fe | ...9.a..a..a..h.
    e008009221128221 132829a819c22900 | ....!..!.()...).
    a0a210b221112602 0ec02000d22c0020 | ....!.&... ..,. 
    2b30d0221020aa20 c02000a90c1b7792 | +0.". . . ....w.
    c9108737bc0694ff 6648028692ff0c07 | ...7....fH......
    22a0c04624000c12 26b802c621002146 | "..F$...&...!.!F
    fe88537823890221 45fe79020c02061d | ..Sx#..!E.y.....
    00c141fe0c07d80c b2c8f00c128d07b0 | ..A.............
    8293d02793208810 22a0c6779859913b | ...'. .."..w.Y.;
    fe22a0c9e809b73e 4eb0a01422a0c077 | .".....>N..."..w
    9a452d0a0c1f4602 002a7378674b2279 | .E-...F..*sxgK"y
    0a8d0f207ec02aad b732ed16a8dda90c | ... ~.*..2......
    7909c674ff000c12 66881a712cfe2807 | y..t....f..q,.(.
    16220022a0c80c0a a9077127fea9070c | ."."......q'....
    1720a7932d0a0c07 20a074a537ff70a0 | . ..-... .t.7.p.
    742537ff253bff56 92ae72030182a00f | t%7.%;.V..r.....
    8717427738156647 02067c0066670286 | ..Bw8.fG..|.fg..
    8200263702c6b2fe 062100001c222797 | ..&7.....!..."'.
    0206760077320c1c 12279702063f0046 | ..v.w2...'...?.F
    acfe000022a0d227 175322a0d4271777 | ...."..'.S"..'.w
    06a8fe0000007223 033223026514ff56 | ......r#.2#.e..V
    1aa9a102fe8116fe e008008109fe9109 | ................
    fec02000822800ad 0280b435c0881190 | .. ..(.....5....
    8810808b2070b882 30bbc28116fee008 | .... p..0.......
    00a2a3e8810bfee0 08008695fe00d223 | ...............#
    05c22304b22303a8 23e565ff0691fe00 | ..#..#..#.e.....
    b2030322030280bb 1120bb20b2cbf0a2 | ..."..... . ....
    c318a543ffc68afe 2203037203028022 | ...C...."..r..."
    117022208105fee0 080071dafc22c2f0 | .p" ......q.."..
    883780226316b2a0 88178a82808c4186 | .7."c.........A.
    0200000082611325 36ff8221139847a6 | .....a.%6..!..G.
    190592270297a8eb 65ebfe169affa227 | ...'....e......'
    0120c220b2c31881 f5fde00800164a00 | . . ..........J.
    32a0c4395738172a 33391738372023c0 | 2..9W8.*39.87 #.
    293781effde00800 066efe0022c31822 | )7.......n..".."
    6110720303820302 80771180772072c7 | a.r......w..w r.
    f00c1946200021d0 fd31b0fb980279b1 | ...F .!..1....y.
    9033c0394138260c 1937b70292a00392 | .3.9A8&..7......
    6112652eff922112 31c9fd9901b22110 | a.e...!.1.....!.
    e802a1c7fdc2c12c f2c11030d32081d9 | .......,...0. ..
    fde008009d0ab826 a8b1822110a0bbc0 | .......&...!....
    aa88b926a077c0b8 02a8410c1caabb0c | ...&.w....A.....
    0a90ac83b9028261 10a0a07430bbc0cc | .......a...t0...
    6ad2db80d0ac838c da30a320926112e5 | j........0. .a..
    32ff922112326200 3225038ca7908f31 | 2..!.2b.2%.....1
    9088c0d6280056c3 f6d6790022a0c729 | ....(.V...y."..)
    554600008c498cb3 063efe0022a0c8cc | UF...I...>.."...
    53c63bfe0022a0c9 29558639fe282356 | S.;.."..)U.9.(#V
    128e650effa195fd 81aafde00800a505 | ..e.............
    ff81b5fde0080046 32fe000000283316 | .......F2....(3.
    128c650cffa2a3e8 81a2fde00800a503 | ..e.............
    ffe00200062bfe00 00e502ff1df00000 | .....+..........
    3641009d0282a0c0 280387990fcc320c | 6A......(.....2.
    120607000c022903 7ce2860e00261205 | ......).|....&..
    26221406030082a0 db8029238799280c | &"........)#..(.
    2229037cf2c60700 22a0dc27990a0c12 | ").|...."..'....
    29032d0806040000 0082a0dd7cf28799 | ).-.........|...
    060c12290322a0db 1df00000         | ...)."......
TRACE +0.004 Write 5181 bytes: 
    c00007cc13440000 00bc130000000000 | .....D..........
    0000000000000000 0014800360008003 | ............`...
    60b42bcb3f048003 6036410081fbff0c | `.+.?...`6A.....
    49dbdc20009908c6 04000081f8ffdbdc | I.. ............
    2000a80881f7ffa0 a0748808e0080021 |  ........t.....!
    f6ffdbdc20008802 27e8e11df0000000 | .... ...'.......
    080000601c000060 0000006010000060 | ...`...`...`...`
    36410021fbffdbdc 2000380241faffdb | 6A.!.... .8.A...
    dc20002804202094 9ce2060500000041 | . .(.  ........A
    f6ff81e5ffdbdc20 00a8048808a0a074 | ....... .......t
    e008000b226602e7 86f4ff21f1ffdbdc | ...."f.....!....
    200039021df00000 5420006054300060 |  .9.....T .`T0.`
    36410091fdffdbdc 2000880980802456 | 6A...... .....$V
    48ff91faffdbdc20 0088098080245648 | H...... .....$VH
    ff1df00000002c20 0060002000600000 | ......, .`. .`..
    0008364100e5fcff 21fbff0c08dbdc20 | ..6A....!...... 
    00890291fbff81f9 ffdbdc2000926800 | ........... ..h.
    dbdc200098085679 ffdbdc200088027c | .. ...Vy... ...|
    f28022302020041d f000000000403641 | .."0  .......@6A
    0065fcff169aff81 edff91fcffdbdc20 | .e............. 
    009908dbdc200098 085679ff1df00000 | ..... ...Vy.....
    9800cb3f1080ca3f 8080000084800000 | ...?...?........
    4040000050dbdcca 3f9c00cb3f364100 | @@..P...?...?6A.
    b1f8ff20a0742521 0196ea0581f6ff91 | ... .t%!........
    f6ffa0a074909880 dbdc2000b2290091 | ....t..... ..)..
    f3ff908880dbdc20 009218009090f41b | ....... ........
    c9dbdcdbdcf4dbdc 2000c258009a9bdb | ........ ..X....
    dc2000a24900dbdc 200092180081eaff | . ..I... .......
    9090f48080f48799 4681e4ff91e5ffa1 | ........F.......
    e8ff9a98dbdc2000 c809b1e4ff879c19 | ...... .........
    4602007ce8871ae1 4609000000dbdc20 | F..|....F...... 
    00890adbdc2000b9 09460200dbdc2000 | ..... ...F.... .
    b90adbdc20008909 91d8ff9a880c09db | .... ...........
    dc20009258001df0 0000e8080040f408 | . ..X........@..
    0040b80800403681 000c4b0c1a81fbff | .@...@6...K.....
    e008002c07061100 0c4b0c1a81f8ffe0 | ...,.....K......
    08007054430c080c 16d09511ed028941 | ..pTC..........A
    8931992139118901 2c0f0c8d1c2c0c4b | .1.!9...,....,.K
    ad066961695181ef ffe008000c4bad06 | ..iaiQ.......K..
    81eaffe008005a33 5a225044dbdce614 | ......Z3Z"PD....
    b70c021df0000036 81000c4b0c1a81e3 | .......6...K....
    ffe008001c06060c 0000006054430c08 | ...........`TC..
    0c1ad095110c8d39 31ed028961a95199 | .......91...a.Q.
    4189218911d9012c 0f0ccc0c4b81d9ff | A.!....,....K...
    e008005044dbdc5a 335a22e614cd0c02 | ...PD..Z3Z".....
    1df0000014280040 36410020a22081fd | .....(.@6A. . ..
    ffe008001df00000 5c07004036410081 | ........\..@6A..
    feffe00800220a18 0c1922c2fd0c0820 | ....."....".... 
    89832d081df00000 36410081f7ffe008 | ..-.....6A......
    00220a180c1922c2 fc0c082089832d08 | ."....".... ..-.
    1df0000000000200 bcffce3f88260040 | ...........?.&.@
    841b004094260040 901b0040364100e5 | ...@.&.@...@6A..
    faffac6a31f9ff41 f7ff8cb2a80381f7 | ...j1..A........
    ffe00800ad040609 00ad0481f5ffe008 | ................
    00a80381f4ffe008 00460800a5f9ff81 | .........F......
    edff32a020a08383 80a82016920081ee | ..2. ..... .....
    ffe0080086010000 81eaffe008001df0 | ................
    364100a5f5ff22a0 01565a00a5f6ffa0 | 6A...."..VZ.....
    2a202020041df000 0000ca3f0400ca3f | *   .......?...?
    10000c6060000c60 000c0000fff3ffff | ...``..`........
    364100e5fcff166a 04b1f7ff822b0016 | 6A.....j.....+..
    d80381f6ff922800 bc49a1f5ff7cccdb | ......(..I...|..
    dc2000880a909014 dbdc8810908820db | . ............ .
    dc2000890a880ba1 f0ffb1f0ffdbdc20 | . ............. 
    00980ab08810b1ee ffb09910908820db | .............. .
    dc2000890a1df000 00f82bcb3fb82bcb | . ........+.?.+.
    3f28260040364100 21fcff81dbdcffc8 | ?(&.@6A.!.......
    02a808b1faff81fb ffe008000c088902 | ................
    1df0900600403641 00a5eaff16aa0081 | .....@6A........
    f2ff8228008c18e5 fcff25ebff161a00 | ...(......%.....
    0c4a81f8ffe00800 1df0480600403641 | .J........H..@6A
    0025e8ff164a0391 e8ff822900a2c801 | .%...J.....)....
    a90991e7ff0c0a8a 9922490082c8c10c | ........."I.....
    1980a983a08074cc 88a2af40aa222089 | ......t....@." .
    839c9825f8ff0605 0000000020a22081 | ...%........ . .
    eeffe00800a5e5ff 162a00a5f8ff1df0 | .........*......
    000036410082a0db dcad0287920da2a0 | ..6A............
    dbdde5f9ffa2a0dc 460300000082a0db | ........F.......
    dd879205e5f8ffa2 a0dd65f8ff1df000 | ..........e.....
    003641003a320602 0000a202001b2265 | .6A.:2........"e
    fcff3792f41df000 00364100a2a0dbdc | ..7......6A.....
    25f6ff1df000b02b cb3fac2bcb3f4026 | %......+.?.+.?@&
    004034260040d026 00403661007cc8ad | .@4&.@.&.@6a.|..
    0287932d317fffc6 050000a8030c1cbd | ...-1...........
    0181f7ffe0080081 dbdcfea201008808 | ................
    e00800a80381f3ff e00800e61addc60a | ................
    0000006603260c03 cd010c2b32610081 | ...f.&.....+2a..
    eeffe00800980181 e8ff37990da80866 | ..........7....f
    1a0831e6ffdbdc20 00a2430099081df0 | ..1.... ..C.....
    0000800000000001 a000cb3fffffff00 | ...........?....
    042000600c090040 0009004036410031 | . .`...@...@6A.1
    faff222304161209 a5b5ff16ba088843 | .."#...........C
    0cf90c0287a90e82 230290881092a001 | ........#.......
    80298320207465b7 ffa5b0ffb82391ef | .).  te......#..
    ff408b1187b92c9c 82fb2bb0b2a30c4c | .@....,...+....L
    000c40b0b0b10c1a 81ebffe008001c02 | ..@.............
    460e000c4c0c1a81 e8ffe008000c1286 | F...L...........
    0a00000091dfffcc 1291deffa1e1ffdb | ................
    dc2000890a81bafe dbdc20009908dbdc | . ........ .....
    200098085679ff1c 090c182089932d08 |  ...Vy..... ..-.
    88432088dbdc8943 88232a2829231df0 | .C ....C.#*()#..
    140a004036610041 d1ff583450336316 | ...@6a.A..X4P3c.
    930b58145a53505c 4186000025f4ff68 | ..X.ZSP\A...%..h
    44a61604682467a5 f2e5a9ff169aff78 | D...h$g........x
    1461c7ff30578057 b66db2a0040c1a81 | .a..0W.W.m......
    e7fee00800705074 92a1005069dbdc67 | .....pPt...Pi..g
    b308cd03bd02ad07 060f0060c62020b2 | ...........`.  .
    2070a72052d5ff99 113a55e5b7ff5058 |  p. R....:U...PX
    410c0806050090c9 208261009911a5b6 | A....... .a.....
    ff880162d6011b88 80807498116aa760 | ...b......t..j.`
    b2805738e060c3db dc25b5ff0c4b0c1a | ..W8.`...%...K..
    81cffee008008605 0000cd03bd02ad07 | ................
    81d4ffe00800a0a0 748c3a22a0c42954 | ........t.:"..)T
    28143a2229142834 3032dbdc3264031d | (.:").(402..2d..
    f0000070e2fa3f08 20006000004000bc | ...p..?. .`..@..
    0a0040c80a004036 6100259bff31f9ff | ..@...@6a.%..1..
    10b12030a32081fa ffe008004d0a0c12 | .. 0. ......M...
    ecba880192a20090 88108901659fff91 | ............e...
    f2ffa1f2ffdbdc20 008809a08820dbdc | ....... ..... ..
    20008909b801ad03 81efffe00800a024 |  ..............$
    831df00000ff0f00 003641008185ff92 | .........6A.....
    a001924800309c41 92680291faff3268 | ...H.0.A.h....2h
    0129383030b49a22 2a33303c410c0229 | .)800.."*30<A..)
    58394865f8ff2d0a 8c1a22a0c51df000 | X9He..-...".....
    0000100000581000 005c1c0040200a00 | .....X...\..@ ..
    40681c0040741c00 40362121a2d11081 | @h..@t..@6!!....
    faffe00800460e00 0051f6ff916eff50 | .....F...Q...n.P
    43633a82cd04bd01 20a22087b905e5a9 | Cc:..... . .....
    ff46010081f2ffe0 0800a0a074fc4acd | .F..........t.J.
    04bd01a2d11081ee ffe0080040228040 | ............@".@
    33dbdc5633fca1e8 ffb2d11010aa8081 | 3..V3...........
    e9ffe00800a1e4ff 1c0b1aaa25ccff2d | ............%..-
    03060100000022a0 631df00000006c10 | ......".c.....l.
    0000681000007010 0000781000007410 | ..h...p...x...t.
    0000600600403641 2161fbff1a665906 | ..`..@6A!a...fY.
    0c0562d11050a520 52661a65adff71d1 | ..b..P. Rf.e..q.
    ff47b702063f00ad 0681d0ffe0080081 | .G...?..........
    f2ff71efff1a887a 919908c62d005073 | ..q....z....-.Ps
    dbdca141ff707463 3a82cd07bd0187ba | ...A.ptc:.......
    0920a220a59eff06 020000ad0281c4ff | . . ............
    e00800a0a0749c5a 0c088266167d0891 | .....t.Z...f.}..
    e4ff81e0ff1a998a a1a909860d000065 | ...............e
    c3ff70b720ad0165 c1ffe5c2ffcd0710 | ..p. ..e........
    b12060a62081b7ff e008007a227a5537 | . `. ......z"zU7
    b5c581d5ff72261a 1a8888087075dbdc | .....r&.....pu..
    87378c86ecff92a0 0092466c91d0ff10 | .7........Fl....
    9980a2290081cfff e0080056dafeb1a6 | ...).......V....
    ffa2066c1abba5a7 00f7ea13f6471081 | ...l.........G..
    c8ff1a8888087a98 a249001b7746f1ff | ......z..I..wF..
    7ce9979adbdc6647 0872261a37b70277 | |.....fG.r&.7..w
    b59ea199ff60b620 10aa80819bffe008 | .....`. ........
    0065baffa195ffb2 a0101aaa65b8ffa5 | .e..........e...
    b9ff0c1a259dff1d f00000ca3f4f4841 | ....%.......?OHA
    49fc2bcb3f448137 4098200c60a08237 | I.+.?D.7@. .`..7
    40e8843740080008 6080210c60108037 | @..7@...`.!.`..7
    4010800360548037 400c000060384000 | @...`T.7@...`8@.
    60ffff0000000001 0000000004102700 | `.............'.
    002c810060000000 808c800000104000 | .,..`.........@.
    000000ffff004000 000800ca3f0c00ca | ......@.....?...
    3f14000060f0ffff 00fc2bcb3f1000ca | ?...`.....+.?...
    3fb800cb3f800700 40781b0040b82600 | ?...?...@x..@.&.
    4064260040741f00 40ec0a0040500a00 | @d&.@t..@...@P..
    40000600401c2900 4024270040082800 | @...@.).@$'.@.(.
    40e4060040748104 409c090040fc0900 | @...@t..@...@...
    40080a0040a80600 40840900406c0900 | @...@...@...@l..
    4090090040280800 40d806004036e100 | @...@(..@...@6..
    21cbffa2a0002261 0c81e7ffe00800a5 | !....."a........
    93ff168a045155fe 3153fedbdc200022 | .....QU.1S... ."
    25004150fe290331 51fedbdc20006803 | %.AP.).1Q... .h.
    69047cc66022100c 26602220dbdc2000 | i.|.`"..&`" .. .
    29052804414dfe40 221042a400402220 | ).(.AM.@".B..@" 
    dbdc200029030602 0049024b22460200 | .. .)....I.K"F..
    000021b2ff31b4ff 0c043732ebe5a4ff | ..!..1....72....
    0c4ba2c130e5a2ff 65a4ff41a9fd21a9 | .K..0...e..A..!.
    fd31aeff2a24dbdc 20004902215cfd39 | .1..*$.. .I.!\.9
    02a581ff2d0a16fa 052113fec18bfea8 | ....-....!......
    02b2a002818dfee0 080031a5ffb1a5ff | ..........1.....
    1c1a0c0cdbdc2000 a90381bdffe00800 | ...... .........
    a108fe52a001810c fee00800b19effa8 | ...R............
    0281b8ffe00800a8 028104fee00800a8 | ................
    0281b5ffe0080031 99ffdbdc20002803 | .......1.... .(.
    502220dbdc200029 03061700e57cff16 | P" .. .).....|..
    ea023193ffa2a011 b193ffdbdc2000a2 | ..1.......... ..
    6300cd0281a7ffe0 08003190ff0c45db | c.........1...E.
    dc20002803a1f0fd 502220dbdc200029 | . .(....P" .. .)
    03460800b18bffcd 0a0c5a819effe008 | .F........Z.....
    003188ff52a101db dc200028032c0a50 | .1..R.... .(.,.P
    2220dbdc20002903 81e9fde008008199 | " .. .).........
    ffe008002181ffdb dc20002802ccba1c | ....!.... .(....
    c330221022c2f80c 1320a3830c0b8192 | .0".".... ......
    ffe00800f17affd1 fbfec17affb17aff | .....z.....z..z.
    e2a1000c0a818dff e00800217bff516d | ...........!{.Qm
    fe2a4462d52b4616 00000000814afedb | .*Db.+F......J..
    dc20003208003030 74167304a1ccfddb | . .2..00t.s.....
    dc200022480081cc fde00800a16cff81 | . ."H........l..
    80ffe008008180ff e008007169ff7ce8 | ...........qi.|.
    dbdc20003807a168 ff803310dbdc2000 | .. .8..h..3... .
    3907817affe00800 8179ffe0080020a2 | 9..z.....y.... .
    208178ffe00800db dc200028041602fa |  .x...... .(....
    0c07dbdc20003804 0c12dbdc20007904 | .... .8..... .y.
    2241242203010c28 79a1224125825113 | "A$"...(y."A%.Q.
    1c377712221c4777 121f66921f220303 | .7w.".Gw..f.."..
    7203028022117022 206642102823dbdc | r...".p" fB.(#..
    2000280229a10601 001c222251132587 |  .(.).....""Q.%.
    ff0c8ba2c1242585 ffb2030382030221 | .....$%........!
    49ff80bb11808b20 2020f487b211a2a0 | I......   ......
    dbdca580ffa2a0ee 2580ff6584ff86de | ........%..e....
    ff7203010cd22797 0246d70077325966 | .r....'..F..w2Yf
    6702061201f67723 66370246a700f647 | g.....w#f7.F...G
    0a662702c68a0006 2b00000066470286 | .f'.....+...fG..
    ba0066570246ed00 c62600000c922797 | ..fW.F...&....'.
    02c6ce0077321066 7702c6ee00668702 | ....w2.fw....f..
    4623000620000000 66970246e0000cb2 | F#.. ...f..F....
    27970246b600461b 001c422797028629 | '..F..F...B'...)
    0077322f1c122797 02c68f007732100c | .w2/..'.....w2..
    f227970286670066 b702c67c00861100 | .'...g.f...|....
    1c2227970206a100 1c32279702466700 | ."'......2'..Fg.
    c60c000022a0d227 9702866200773214 | ...."..'...b.w2.
    22a0d02797020622 0022a0d127970286 | "..'..."."..'...
    250046040022a0d3 27970286800122a0 | %.F.."..'.....".
    d42797020679000c 0722a0ff06e80000 | .'...y..."......
    002c490c0722a0db dc97180246e4002d | .,I.."......F..-
    0779a10c7720a220 6570ff20a220e56f | .y..w . ep. . .o
    ffe573ffe573ffb2 a008a2c1240b77a5 | ..s..s......$.w.
    71ff56f7fd464600 0022a00156f83580 | q.V..FF.."..V.5.
    b82080a820c2c110 810dffe008008d0a | . .. ...........
    56ba34bd07a2c110 826113e56effc6b0 | V.4......a..n...
    0000000c12566833 8261138105ffe008 | .....Vh3.a......
    00822113c6570000 00002688040c1206 | ..!..W....&.....
    c700782328332087 208080b456d8fe65 | ..x#(3 . ...V..e
    8fff567afec60b00 0081d6fd70ac4177 | ..Vz........p.Aw
    b817bd0a0c4c0c1a 81d5fde008008603 | .....L..........
    0022d2f072d71046 030081f2fee00800 | ."..r..F........
    16dafe86edff0000 cc12c695007090f4 | .............p..
    5659fcc60c0091c6 fd70a0f577b91ebd | VY.......p..w...
    0ac2a004a2a00181 c4fde00800c60400 | ................
    0091cefe9a2291c5 fe9a77c6020081e2 | ....."....w.....
    fee00800169afe86 dcff81dbdcfe2738 | ..............'8
    c52a27c60a0081b7 fd70ac4177b816bd | .*'......p.Aw...
    0a0c4c0c1a81b6fd e0080046030072d7 | ..L........F..r.
    10460300000081d4 fee0080016eafec6 | .F..............
    ceff7792d0467700 0c0722a0dbdc2688 | ..w..Fw..."...&.
    028693000c072d07 c6910026b8f5c669 | ......-....&...i
    0022a00126b80286 8d00b22303a22302 | ."..&......#..#.
    658bff46080022a0 0126b80246880091 | e..F.."..&..F...
    acfe82230472a000 22a0c287b9024684 | ...#.r..".....F.
    00b853a8232584ff 0c170c02a0279386 | ..S.#%.......'..
    7f00000022a00126 b802c67c00822304 | ...."..&...|..#.
    919ffe72a00022a0 c287b902c6780028 | ...r.."......x.(
    33b853a823202882 e580ff7189fd0c08 | 3.S.# (....q....
    896772d72b29270c 12a0288346700091 | .gr.+)'...(.Fp..
    84fd0c07a2090022 a0c6779a02866c00 | ......."..w...l.
    28599823b2c8f0b0 99dbdc82a0dbdc90 | (Y.#............
    289392a0ef860200 007a838208181b77 | (........z.....w
    809930b727f27203 0582030480771180 | ..0.'.r......w..
    7720820306008811 7078208203078088 | w ......px .....
    017088208099dbdc 82a0c10c07902893 | .p. ..........(.
    865800816bfd22a0 c69208007d091649 | .X..k.".....}..I
    1598380c0722a0c8 771902c651009248 | ..8.."..w...Q..H
    002858464f001c89 0c070c12971802c6 | .(XFO...........
    4c00f873e863d853 c843b833a823817b | L..s.c.S.C.3.#.{
    fee008007d0a0c0a 702a83c645000000 | ....}...p*..E...
    0c12264802c64200 a8230c0b8172fee0 | ..&H..B..#...r..
    08000621000080a0 340c0722a0dbdc77 | ...!....4.."...w
    1a02463c00808441 8b937d0a7cfbc60f | ..F<...A..}.|...
    00a8398261139261 12b261118168fee0 | ..9.a..a..a..h..
    0800922112822113 2829a819c22900a0 | ...!..!.()...)..
    a210b2211126020e dbdc2000d22c0020 | ...!.&.... ..,. 
    2b30d0221020aa20 dbdc2000a90c1b77 | +0.". . .. ....w
    92c9108737bc0694 ff6648028692ff0c | ....7....fH.....
    0722a0dbdc462400 0c1226b802c62100 | ."...F$...&...!.
    2146fe8853782389 022145fe79020c02 | !F..Sx#..!E.y...
    061d00c141fe0c07 d80cb2c8f00c128d | ....A...........
    07b08293d0279320 881022a0c6779859 | .....'. .."..w.Y
    913bfe22a0c9e809 b73e4eb0a01422a0 | .;.".....>N...".
    dbdc779a452d0a0c 1f4602002a737867 | ..w.E-...F..*sxg
    4b22790a8d0f207e dbdc2aadb732ed16 | K"y... ~..*..2..
    a8dda90c7909c674 ff000c1266881a71 | ....y..t....f..q
    2cfe280716220022 a0c80c0aa9077127 | ,.(.."."......q'
    fea9070c1720a793 2d0a0c0720a074a5 | ..... ..-... .t.
    37ff70a0742537ff 253bff5692ae7203 | 7.p.t%7.%;.V..r.
    0182a00f87174277 3815664702067c00 | ......Bw8.fG..|.
    6667028682002637 02c6b2fe06210000 | fg....&7.....!..
    1c22279702067600 77320c1c12279702 | ."'...v.w2...'..
    063f0046acfe0000 22a0d227175322a0 | .?.F...."..'.S".
    d427177706a8fe00 0000722303322302 | .'.w......r#.2#.
    6514ff561aa9a102 fe8116fee0080081 | e..V............
    09fe9109fedbdc20 00822800ad0280b4 | ....... ..(.....
    35dbdc8811908810 808b2070b88230bb | 5......... p..0.
    c28116fee00800a2 a3e8810bfee00800 | ................
    8695fe00d22305c2 2304b22303a823e5 | .....#..#..#..#.
    65ff0691fe00b203 0322030280bb1120 | e........"..... 
    bb20b2cbf0a2c318 a543ffc68afe2203 | . .......C....".
    0372030280221170 22208105fee00800 | .r...".p" ......
    71dafc22c2f08837 80226316b2a08817 | q.."...7."c.....
    8a82808c41860200 00008261132536ff | ....A......a.%6.
    8221139847a61905 92270297a8eb65eb | .!..G....'....e.
    fe169affa2270120 c220b2c31881f5fd | .....'. . ......
    e00800164a0032a0 c4395738172a3339 | ....J.2..9W8.*39
    1738372023dbdc29 3781effde0080006 | .87 #..)7.......
    6efe0022c3182261 1072030382030280 | n..".."a.r......
    771180772072c7f0 0c1946200021d0fd | w..w r....F .!..
    31b0fb980279b190 33dbdc394138260c | 1....y..3..9A8&.
    1937b70292a00392 6112652eff922112 | .7......a.e...!.
    31c9fd9901b22110 e802a1c7fdc2c12c | 1.....!........,
    f2c11030d32081d9 fde008009d0ab826 | ...0. .........&
    a8b1822110a0bbdb dcaa88b926a077db | ...!........&.w.
    dcb802a8410c1caa bb0c0a90ac83b902 | ....A...........
    826110a0a07430bb dbdccc6ad2dbdd80 | .a...t0....j....
    d0ac838cda30a320 926112e532ff9221 | .....0. .a..2..!
    123262003225038c a7908f319088dbdc | .2b.2%.....1....
    d6280056c3f6d679 0022a0c729554600 | .(.V...y."..)UF.
    008c498cb3063efe 0022a0c8cc53c63b | ..I...>.."...S.;
    fe0022a0c9295586 39fe282356128e65 | .."..)U.9.(#V..e
    0effa195fd81aafd e00800a505ff81b5 | ................
    fde008004632fe00 0000283316128c65 | ....F2....(3...e
    0cffa2a3e881a2fd e00800a503ffe002 | ................
    00062bfe0000e502 ff1df00000364100 | ..+..........6A.
    9d0282a0dbdc2803 87990fcc320c1206 | ......(.....2...
    07000c0229037ce2 860e002612052622 | ....).|....&..&"
    1406030082a0dbdd 8029238799280c22 | .........)#..(."
    29037cf2c6070022 a0dc27990a0c1229 | ).|...."..'....)
    032d080604000000 82a0dd7cf2879906 | .-.........|....
    0c12290322a0dbdd 1df00000c0       | ..)."........
TRACE +0.042 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0107040012f4000000000000c0
TRACE +0.000 Received full packet: 0107040012f4000000000000
TRACE +0.000 command op=0x05 data len=16 wait_response=1 timeout=3.000 data=040000000100000000180000fc2bcb3f
TRACE +0.000 Write 26 bytes: 
    c000051000000000 0004000000010000 | ................
    0000180000fc2bcb 3fc0             | ......+.?.
TRACE +0.001 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0105040012f4000000000000c0
TRACE +0.000 Received full packet: 0105040012f4000000000000
TRACE +0.000 command op=0x07 data len=20 wait_response=1 timeout=3.000 data=
    0400000000000000 0000000000000000 | ................
    1000ca3f                          | ...?
TRACE +0.000 Write 30 bytes: 
    c0000714000a0000 0004000000000000 | ................
    0000000000000000 001000ca3fc0     | ............?.
TRACE +0.000 Read 1 bytes: c0
TRACE +0.001 Read 13 bytes: 0107040012f4000000000000c0
TRACE +0.000 Received full packet: 0107040012f4000000000000
Running stub...
TRACE +0.000 command op=0x06 data len=8 wait_response=1 timeout=0.050 data=000000000c8a3740
TRACE +0.000 Write 18 bytes: 
    c000060800000000 00000000000c8a37 | ...............7
    40c0                              | @.
TRACE +0.000 Read 1 bytes: c0
TRACE +0.000 Read 13 bytes: 0106040012f4000000000000c0
TRACE +0.000 Received full packet: 0106040012f4000000000000

I'm going to try a few things tonight and see if I can come up with anything, but I'm pretty unfamiliar with native ESP stuff.

@fennecbutt
Copy link

Just an update: I've just tried esptool v4.3 and it worked flawlessly. I'm still curious as to why it doesn't work with v4.4 but also why this only affects the tinyS3 and not the proS3 module. Although it sounds like Emill above encountered the issue with 1 part out of a bunch...so perhaps it's just some variance in the hardware itself?

I might apply some of the changes between 4.3 and 4.4 and see if I can help find what might be causing it...

@radimkarnis
Copy link
Collaborator

@Emill @fennecbutt thanks for the feedback. It seems like when the CPU frequency gets increased for faster transfer speeds, the variance in the hardware comes into play. Maybe little differences between the crystals on the devkits, I am not sure.

@fennecbutt you could try running esptool on b25606b, this is one commit before the CPU speed increase was introduced.

@stefanounick
Copy link

This commit dccf4df seems to cause the issue, previous one works fine but from this one and onwards it gets stuck at Running stub.

Using an esp32-s3 as well.

@radimkarnis
Copy link
Collaborator

Update: I have been able to reproduce this issue on a windows 10 machine (v4.3 works, v4.4 doesn't), but if I try the same thing on a Mac, everything works. So the issue is both devkit AND host machine dependent.

@radimkarnis
Copy link
Collaborator

Hello @stefanounick @fennecbutt @Emill @bamason2,
could you please try this branch containing a possible fix and verify if this helps?

We don't want to revert this feature entirely and there are reports that slowing down the CPU helps. I would be grateful if you could help me test this. Thank you!

@Emill
Copy link
Contributor

Emill commented Dec 29, 2022

Yes that branch works on my otherwise failing board, just as in my experiments as explained above, i.e. the workaround to set the frequency to 160 MHz instead of 240 MHz.

I would like to know the cause though why 240 MHz does not work. I don't see any requirements in the reference manual about a sequence or similar how to safely change the frequency. I don't want to end up in the situation where a board can be programmed at 160 MHz but running the esp-idf application later at 240 MHz fails (for the same reason as we are investigating here).

@fennecbutt
Copy link

fennecbutt commented Jan 2, 2023

@radimkarnis sorry for the delay, holidays and all that.

I've tested your branch; it works perfect every time. I've also been rebuilding the stub in that branch locally and SYSTEM_CPUPERIOD_MAX=2 always encounters the issue, SYSTEM_CPUPERIOD_MAX=1 never does.

The weird thing I've discovered is that on one board, it works perfect every time (pro s3 as mentioned). On other board (tinys3) when cpu is set to 240Mhz, it will sometimes work. Hold down boot button and connect to usb, it won't work immediately but after leaving it some time it will work once, then fail. Or it will fail and then randomly work once before failing again.

It seems I can consistently get it to work if I have left it for a certain duration.

--- 30 minutes later ---

So I've discovered that if I put the board in the freezer (or fridge) for a minute or two (not long at all), then it consistently works perfectly fine! Once it warms up again after a short while it stops working, I did this several times and on one held my thumb over the esp chip itself to warm it up faster, and it starting failing again after a shorter time. Very interesting and also frustrating. Not sure if it's bc the esp can't do 240MHz at room temp (which is low atm, it's Winter) or if it's a bad solder joint or something causing it that gets compressed when the board has been briefly chilled.

FYI the tinys3 that has this issue has esp:
ESP32-S3
072022 (also affected by advisory AR2022-004 as confirmed by efuse summary)
FN8C015236
FB00P(N|M?)R520

The pros3 that does not have the issue has esp:
ESP32-S3
212022
FB00PRN984

@radimkarnis
Copy link
Collaborator

@Emill @fennecbutt thanks for your thorough tests and verification!

Although the reason is still unknown, I think we can now confirm that lowering the CPU freq to 160MHz is the solution. Fortunately, the benefits of faster transfer speeds are still here. In my tests, switching from 80MHz -> 160MHz nearly doubles the speeds, but 160MHZ -> 240MHz does not make any more significant difference.

ESP32-S3 is the only chip in our lineup so far that supports 240MHz and USB-JTAG/Serial. I guess this is the only configuration having issues, we had no other reports.

The weird thing I've discovered is that on one board, it works perfect every time
So I've discovered that if I put the board in the freezer (or fridge) for a minute or two (not long at all), then it consistently works perfectly fine!

I believe this only confirms the idea that this has something to do with the hardware. Unfortunately, I don't have the time to investigate about the possible implications for IDF apps. The goal here is to get rid of the regression in esptool.

@fennecbutt
Copy link

@radimkarnis and thank you for your attention on this issue, I understand you have a lot of things to do & this is just one thing on the list; such is tech!

I've found a fix! (Let me know if you want me to throw together a PR) But root cause still unknown.

In flasher_stub/stub_flasher.c:

static void set_max_cpu_freq()
{
  if (can_use_max_cpu_freq())
  {
    /* Set CPU frequency to max. This also increases SPI speed. */
    #if ESP32C6
    pcr_sysclk_conf_reg = READ_REG(PCR_SYSCLK_CONF_REG);
    WRITE_REG(PCR_SYSCLK_CONF_REG, (pcr_sysclk_conf_reg & ~PCR_SOC_CLK_SEL_M) | (PCR_SOC_CLK_MAX << PCR_SOC_CLK_SEL_S));
    #else
    cpu_per_conf_reg = READ_REG(SYSTEM_CPU_PER_CONF_REG);
    sysclk_conf_reg = READ_REG(SYSTEM_SYSCLK_CONF_REG);
    WRITE_REG(SYSTEM_SYSCLK_CONF_REG, (sysclk_conf_reg & ~SYSTEM_SOC_CLK_SEL_M) | (SYSTEM_SOC_CLK_MAX << SYSTEM_SOC_CLK_SEL_S));
    ets_delay_us(100);
    WRITE_REG(SYSTEM_CPU_PER_CONF_REG, (cpu_per_conf_reg & ~SYSTEM_CPUPERIOD_SEL_M) | (SYSTEM_CPUPERIOD_MAX << SYSTEM_CPUPERIOD_SEL_S));
    #endif
  }
}

SYSTEM_SYSCLK_CONF_REG must be written before SYSTEM_CPU_PER_CONF_REG and there must be a small delay between these writes (a delay after both does not suffice).
I have tried delays down to 60, but ets_delay_us(100); seems to works flawlessly from what I can tell, with 60 it would work say 10 times in a row in quick succession (read_mac command) and then eventually fail.

With this change I was able to leave #define SYSTEM_CPUPERIOD_MAX 2 in and have it work consistently every time (by running read_mac a dozen or so times in a row without failure).

I'm not sure if I'll spend more time looking into this either; the fix above works for me at 240MHz. My current theory is APB going from 320MHz to 480MHz on some chips take some time to settle or some other funky physics related thing, but now I should actually start the project I was intending to build with this board, ha ha.

@radimkarnis
Copy link
Collaborator

radimkarnis commented Jan 4, 2023

@fennecbutt this is great! thanks for looking into it and being persistent.

We could try and consider this solution if we get more than one report that this helps. Unfortunately, I am not able to reproduce this issue in my environment. Maybe we could ask @Emill to help.
If this works for him, I would be happy to accept your PR, contributors are welcome here!

but now I should actually start the project I was intending to build with this board, ha ha.

Good luck with that, hopefully no other weird issue pops up to slow you down.

@stefanounick
Copy link

I can confirm that @fennecbutt 's changes fix the issue here as well.
I've been writing to the flash at 240MHz consistently without any issues for the past two hours.

@radimkarnis
Copy link
Collaborator

@stefanounick thanks a lot for the confirmation! I will merge @fennecbutt's solution ASAP.

@rkagerer
Copy link

I had the same problem with my UnexpectedMaker FeatherS3 board. Unfortunately esptool 4.5.dev2 does not seem to fix it for me. However, 4.3 worked correctly. Attached traces for both if it helps.

4.3-works.txt

4.5.dev2-hangs.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants