[Xiaomi Redmi Note 5 Pro Questions & Answers] Pleb_kun:
ACK problem

[12:06:00 PM COM13]:MiFlash 2018.5.28.0

[12:06:00 PM COM13]:flash in thread name:COM13,id:11

[12:06:00 PM COM13]:sw in images

[12:06:00 PM COM13]:flash in thread name:COM13,id:11

[12:06:01 PM COM13]:[COM13]:start flash.

[12:06:01 PM COM13]:received hello packet

[12:06:01 PM COM13]:download programmer C:\C\anti_test_note5\anti_test_note5\images\prog_emmc_firehose_Sdm660_ddr.elf

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 0,length 64

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 64,length 728

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 4096,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 8192,length 2760

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 12288,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 16384,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 20480,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 24576,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 28672,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 32768,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 36864,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 40960,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 45056,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 49152,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 53248,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 57344,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 61440,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 65536,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 69632,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 73728,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 77824,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 81920,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 86016,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 90112,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 94208,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 98304,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 102400,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 106496,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 110592,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 114688,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 118784,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 122880,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 126976,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 131072,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 135168,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 139264,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 143360,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 147456,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 151552,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 155648,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 159744,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 163840,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 167936,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 172032,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 176128,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 180224,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 184320,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 188416,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 192512,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 196608,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 200704,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 204800,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 208896,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 212992,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 217088,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 221184,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 225280,length 4096

[12:06:01 PM COM13]:sahara read 64b data:imgID 13,offset 229376,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 233472,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 237568,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 241664,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 245760,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 249856,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 253952,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 258048,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 262144,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 266240,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 270336,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 274432,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 278528,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 282624,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 286720,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 290816,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 294912,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 299008,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 303104,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 307200,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 311296,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 315392,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 319488,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 323584,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 327680,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 331776,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 335872,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 339968,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 344064,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 348160,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 352256,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 356352,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 360448,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 364544,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 368640,length 2892

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 371536,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 375632,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 379728,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 383824,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 387920,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 392016,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 396112,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 400208,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 404304,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 408400,length 232

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 408640,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 412736,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 416832,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 420928,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 425024,length 4096

[12:06:02 PM COM13]:sahara read 64b data:imgID 13,offset 429120,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 433216,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 437312,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 441408,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 445504,length 2312

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 447824,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 451920,length 4076

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 456000,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 460096,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 464192,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 468288,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 472384,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 476480,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 480576,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 484672,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 488768,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 492864,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 496960,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 501056,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 505152,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 509248,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 513344,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 517440,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 521536,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 525632,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 529728,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 533824,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 537920,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 542016,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 546112,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 550208,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 554304,length 2264

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 556576,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 560672,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 564768,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 568864,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 572960,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 577056,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 581152,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 585248,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 589344,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 593440,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 597536,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 601632,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 605728,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 609824,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 613920,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 618016,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 622112,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 626208,length 4096

[12:06:03 PM COM13]:sahara read 64b data:imgID 13,offset 630304,length 3520

[12:06:03 PM COM13]:sahara read end imgID:13 status:0

[12:06:03 PM COM13]:Send done packet

[12:06:03 PM COM13]:file C:\C\anti_test_note5\anti_test_note5\images\prog_emmc_firehose_Sdm660_ddr.elf transferred successfully

[12:06:05 PM COM13]:send nop command

[12:06:06 PM COM13]:send command:<?xml version="1.0" ?><data><nop verbose="0" value="ping"/></data>

[12:06:06 PM COM13]:get response from target

[12:06:06 PM COM13]:dump:<?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Binary build date: Aug 2 2018 @ 22:27:53"/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Chip serial num: 4294967295 (0xffffffff)"/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Supported Functions: program configure nop sig firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase "/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Binary build date: Aug 2 2018 @ 22:27:53

"/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="fh.attrs.Verbose is set to 0"/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Chip serial num: 4294967295 (0xffffffff)"/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Supported Functions: program configure nop sig firmwarewrite patch setbootablestoragedrive ufs emmc power benchmark read getstorageinfo getsha256digest erase "/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<response value="ACK" />

</data>

[12:06:06 PM COM13]:send configure command

[12:06:06 PM COM13]:send command:<?xml version="1.0" ?><data><configure verbose="0" AlwaysValidate="0" ZlpAwareHost="1" MaxPayloadSizeToTargetInBytes="131072" MemoryName="emmc" SkipStorageInit="0"/></data>

[12:06:06 PM COM13]:get response from target

[12:06:06 PM COM13]:dump:<?xml version="1.0" encoding="UTF-8" ?>

<data>

<log value="Calling usb_al_bulk_set_zlp_mode(TRUE) since ZlpAwareHost='1'"/>

</data><?xml version="1.0" encoding="UTF-8" ?>

<data>

<response value="ACK" MinVersionSupported="1" MemoryName="eMMC" MaxPayloadSizeFromTargetInBytes="4096" MaxPayloadSizeToTargetInBytes="131072" MaxPayloadSizeToTargetInBytesSupported="131072" MaxXMLSizeInBytes="4096" Version="1" TargetName="MSM8996" DateTime="Aug 2 2018 - 22:27:53" />

</data>

[12:06:06 PM COM13]:max buffer sector is 256

[12:06:06 PM COM13]:open program file C:\C\anti_test_note5\anti_test_note5\images\rawprogram0.xml

[12:06:06 PM COM13]:Write file C:\C\anti_test_note5\anti_test_note5\images\storsec.mbn to partition[storsec] sector 512

[12:06:06 PM COM13]:write file legnth 49168 to partition 512

[12:06:06 PM COM13]:WriteFile position 0, size 49664

[12:06:07 PM COM13]:no Binary dump

[12:06:08 PM COM13]:no Binary dump

[12:06:08 PM COM13]:no Binary dump

[12:06:09 PM COM13]:no Binary dump

[12:06:09 PM COM13]:no Binary dump

[12:06:10 PM COM13]:no Binary dump

[12:06:11 PM COM13]:no Binary dump

[12:06:11 PM COM13]:no Binary dump

[12:06:12 PM COM13]:no Binary dump

[12:06:12 PM COM13]:ACK count don't match!

[12:06:12 PM COM13]:flashSuccess False

[12:06:12 PM COM13]:isFactory False CheckCPUID False

[12:06:12 PM COM13]:before:flashSuccess is False set IsUpdate:True set IsDone True

[12:06:12 PM COM13]:after:flashSuccess is False set IsUpdate:false set IsDone true

[12:06:12 PM COM13]:System.Exception: ACK count don't match!

at XiaoMiFlash.code.bl.SerialPortDevice.WriteFilesToDevice(String portName, String swPath, String rawFilePath)

at XiaoMiFlash.code.bl.SerialPortDevice.FirehoseDownloadImg(String swPath)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash() at XiaoMiFlash.code.bl.SerialPortDevice.WriteFilesToDevice(String portName, String swPath, String rawFilePath)

at XiaoMiFlash.code.bl.SerialPortDevice.FirehoseDownloadImg(String swPath)

at XiaoMiFlash.code.bl.SerialPortDevice.XiaomiFlash()

[12:06:12 PM COM13]:no provision exit:COM13

[12:06:12 PM]:13 COM13 11.4953784s ACK count don't match!