# EM7565 stuck at downloading cwe when trying to upgrade FW

**URL:** <https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351>\
**Category:** MC/EM Series\
**Tags:** faq, fw-upgrade\
**Created:** [February 23, 2022, 1:20am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351 "2022-02-23T01:20:02Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 1:20am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/1 "2022-02-23T01:20:02Z")

</div>

I want to upgrade the firmware of my EM7565 to 01.14.02.00. However, when trying to update, the process keeps getting stuck at  
I have referred to this article but still can’t solve it.  
[https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-nvu-when-trying-to-upgrade-firmware/23268](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-nvu-when-trying-to-upgrade-firmware/23268)

> jerry@jerry-virtual-machine:~/Desktop/SampleApps/lite-fw-download/bin$ sudo ./fwdwl-litehostx86\_64 -f /home/jerry/Desktop/SampleApps/lite-fw-download/bin -c MBIM -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 2 -w SWI9X50C\_01.14.02.00.cwe -n SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_003.nvu -m 4 -l ./log\_test.log -F -R 20  
> [sudo] password for jerry:  
> Application version: 1.0.2111.0  
> INFO: QDL Port : /dev/ttyUSB0  
> INFO: Device Path: /dev/cdc-wdm0  
> INFO: FW Path : /home/jerry/Desktop/SampleApps/lite-fw-download/bin  
> Target image Info:  
> Carrier :GENERIC  
> FW Version :01.14.02.00  
> Model ID :SWI9X50C  
> Package ID :003  
> PRI Version:002.035  
> SKU :9999999  
> Switching device into download mode …  
> Modem Needs FW  
> Modem Needs PRI  
> Waiting for modem to disconnect from the host …  
> Modem disconnected from host.  
> Waiting for modem to come up in BOOT and HOLD mode …  
> BOOT and HOLD Mode. Downloading firmware …  
> Downloading: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_003.nvu  
> Downloading: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehosti686

I tried Windows upgrade FW with no problem. May I ask why the linux firmware application might get stuck in the download process?  
MBPL is the latest version of R25 on Sierra source

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 1:21am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/2 "2022-02-23T01:21:44Z")

</div>

You can see here for upgrade of EM7411:

> [@Unable to upgrade firmware for EM7411](https://forum.sierrawireless.com/t/unable-to-upgrade-firmware-for-em7411/25000/3):
>
> @leo You might also want to check what rights you have against that interface, you might be able to see it but not write to it. pi@raspberrypi:~ $ ls /dev autofs cuse i2c-1 loop5 mmcblk0p2 ram11 ram7 shm tty12 tty21 tty30 tty4 tty49 tty58 ttyAMA0 vcs1 vcsa3 vcsu3 video14 block disk initctl loop6 mqueue ram12 ram8 snd tty13 tty22 tty31 tty40 tty5 tty59 ttyprintk vcs2 vcsa4 vcsu4 video…

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 1:39am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/3 "2022-02-23T01:39:06Z")

</div>

@jyijyi

The EM7565 has been specified with tty and cdc devices (-d and -p flags) and download mode set to 1 (-t 1 flags). But still stuck there

> jerry@jerry-virtual-machine:~/Desktop/src/USB$ ls /dev  
> agpgart loop13 random tty26 tty59 ttyS4  
> autofs loop14 rfkill tty27 tty6 ttyS5  
> block loop15 rtc tty28 tty60 ttyS6  
> bsg loop16 rtc0 tty29 tty61 ttyS7  
> btrfs-control loop17 sda tty3 tty62 ttyS8  
> bus loop18 sda1 tty30 tty63 ttyS9  
> cdrom loop19 serial tty31 tty7 ttyUSB0  
> cdrw loop2 sg0 tty32 tty8 uhid  
> char loop20 sg1 tty33 tty9 uinput  
> console loop21 shm tty34 ttyprintk urandom  
> core loop22 snapshot tty35 ttyS0 userio  
> cpu\_dma\_latency loop23 snd tty36 ttyS1 vcs  
> cuse loop24 sr0 tty37 ttyS10 vcs1  
> disk loop3 stderr tty38 ttyS11 vcs2  
> dmmidi loop4 stdin tty39 ttyS12 vcs3  
> dri loop5 stdout tty4 ttyS13 vcs4  
> dvd loop6 tty tty40 ttyS14 vcs5  
> ecryptfs loop7 tty0 tty41 ttyS15 vcs6  
> fb0 loop8 tty1 tty42 ttyS16 vcsa  
> fd loop9 tty10 tty43 ttyS17 vcsa1  
> full loop-control tty11 tty44 ttyS18 vcsa2  
> fuse mapper tty12 tty45 ttyS19 vcsa3  
> hidraw0 mcelog tty13 tty46 ttyS2 vcsa4  
> hpet mem tty14 tty47 ttyS20 vcsa5  
> hugepages memory\_bandwidth tty15 tty48 ttyS21 vcsa6  
> hwrng midi tty16 tty49 ttyS22 vfio  
> initctl mqueue tty17 tty5 ttyS23 vga\_arbiter  
> input net tty18 tty50 ttyS24 vhci  
> kmsg network\_latency tty19 tty51 ttyS25 vhost-net  
> lightnvm network\_throughput tty2 tty52 ttyS26 vhost-vsock  
> log null tty20 tty53 ttyS27 vmci  
> loop0 port tty21 tty54 ttyS28 vsock  
> loop1 ppp tty22 tty55 ttyS29 zero  
> loop10 psaux tty23 tty56 ttyS3  
> loop11 ptmx tty24 tty57 ttyS30  
> loop12 pts tty25 tty58 ttyS31

> sudo ./fwdwl-litehostx86\_64 -f /home/jerry/Desktop/SampleApps/lite-fw-download/bin -c MBIM -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 -w SWI9X50C\_01.14.02.00.cwe -n SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_003.nvu -m 4 -l ./log\_test.log -F -R 20  
> [sudo] password for jerry:  
> Application version: 1.0.2111.0  
> INFO: QDL Port : /dev/ttyUSB0  
> INFO: Device Path: /dev/cdc-wdm0  
> INFO: FW Path : /home/jerry/Desktop/SampleApps/lite-fw-download/bin  
> Target image Info:  
> Carrier :GENERIC  
> FW Version :01.14.02.00  
> Model ID :SWI9X50C  
> Package ID :003  
> PRI Version:002.035  
> SKU :9999999  
> Switching device into download mode …  
> Modem Needs FW  
> Modem Needs PRI  
> Waiting for modem to disconnect from the host …  
> Modem disconnected from host.  
> Waiting for modem to come up in BOOT and HOLD mode …  
> BOOT and HOLD Mode. Downloading firmware …  
> Downloading: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_003.nvu  
> Downloading: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehosti686  
> /

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 1:56am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/4 "2022-02-23T01:56:08Z")

</div>

how about using the same command as this one?

> [@Unable to upgrade firmware for EM7411](https://forum.sierrawireless.com/t/unable-to-upgrade-firmware-for-em7411/25000/4):
>
> Thank you, that worked! For anyone that stumbles into this, the solution to load a firmware into the EM7411 is to make sure you specify BOTH the tty and cdc devices (the -d and -p flags), AND the download mode is set to 1 (the -t 1 flag). The final command is: fwdwl-litearm -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 --modelfamily 4 --fwpath "./" --cwe SWI9X50C\_01.14.03.00.cwe --nvu SWI9X50C\_01.14.03.00\_TMO\_002.005\_000.nvu

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 3:29am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/5 "2022-02-23T03:29:57Z")

</div>

@jyijyi

Still stuck.

> jerry@jerry-virtual-machine:~/Desktop/SampleApps/lite-fw-download/bin$ sudo ./fwdwl-litehostx86\_64 -f /home/jerry/Desktop/SampleApps/lite-fw-download/bin -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 -w SWI9X50C\_01.14.02.00.cwe -n SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_003.nvu -m 4  
> Application version: 1.0.2111.0  
> INFO: QDL Port : /dev/ttyUSB0  
> INFO: Device Path: /dev/cdc-wdm0  
> INFO: FW Path : /home/jerry/Desktop/SampleApps/lite-fw-download/bin  
> Target image Info:  
> Carrier :GENERIC  
> FW Version :01.14.02.00  
> Model ID :SWI9X50C  
> Package ID :003  
> PRI Version:002.035  
> SKU :9999999  
> Switching device into download mode …  
> Modem Needs FW  
> Waiting for modem to disconnect from the host …  
> Modem disconnected from host.  
> Waiting for modem to come up in BOOT and HOLD mode …  
> BOOT and HOLD Mode. Downloading firmware …  
> Downloading: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_003.nvu  
> Downloading: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehosti686

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 3:35am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/6 "2022-02-23T03:35:59Z")

</div>

I saw in the readme file of USB driver:

```auto
Enable zero length packet in usb_wwan
=====================================
To support FW download on 9x50 based products, driver must support USB
zero length packets (ZLP). This feature is not enabled in the open source usb_wwan driver
(for some kernel version). 
The attached usb_wwan.c shows how to enable ZLP.

In usb_wwan_setup_urb function, the following two lines of code:

	if (intfdata->use_zlp && dir == USB_DIR_OUT)
		urb->transfer_flags |= URB_ZERO_PACKET;

This indicates the ZLP feature is enabled.

```

You can double check your USB driver.

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 3:54am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/7 "2022-02-23T03:54:26Z")

</div>

Confirm that in the usb\_wwan\_setup\_urb function, the following two lines of code:

if (intfdata-\>use\_zlp && dir == USB\_DIR\_OUT)  
urb-\>transfer\_flags |= URB\_ZERO\_PACKET;

 ![螢幕擷取畫面 2022-02-23 115149](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/d/d079cf12055747cafef8a46e05c9119fcf9859e4.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 4:38am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/8 "2022-02-23T04:38:47Z")

</div>

how about using real Linux PC?  
In the past, sometimes I saw problem in virtual machine.

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 5:00am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/9 "2022-02-23T05:00:15Z")

</div>

@jyijyi  
I tried it and the result is the same as on the virtual machine.  
Can’t find where is the problem.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 5:03am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/10 "2022-02-23T05:03:48Z")

</div>

how about shutting down MBIM mode in AT!USBCOMP?  
Just leave the RMNET mode there and retry.

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 6:54am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/11 "2022-02-23T06:54:30Z")

</div>

@jyijyi

Tried just leaving the RMNET mode there, same result.  
I have also tried using GobiNet and it is stuck there.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 6:58am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/12 "2022-02-23T06:58:51Z")

</div>

how many modules have you tested?

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [February 23, 2022, 7:39am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/13 "2022-02-23T07:39:21Z")

</div>

@jyijyi

I have tried two EM7565 modules, the SKU number is 1104276.  
The log content is as follows.

> [76258][1]System date/time: 23/02/2022 15:06:48  
> [76258][1]1.0.2105.0  
> [76258][1]Kernel: Linux jerry-virtual-machine 4.15.0-29-generic #31-Ubuntu SMP Tue Jul 17 15:39:52 UTC 2018 x86\_64 x86\_64 x86\_64 GNU/Linux

[76258][1]qcserial version: 1.9.2108.3

[76258][1]usb\_wwan version: 1.0.2101.1

[76258][1]cdc\_mbim srcversion: 38E9FABC0B5F38EBB589D7C

[76258][1]qmi\_wwan srcversion: DCA573B7EB0B9A4EC41736A

[76258][1]./fwdwl-litehostx86\_64  
[76258][1]-f  
[76258][1]/home/jerry/Desktop/SampleApps/lite-fw-download/bin  
[76258][1]-d  
[76258][1]/dev/ttyUSB0  
[76258][1]-p  
[76258][1]/dev/cdc-wdm0  
[76258][1]-t  
[76258][1]1  
[76258][1]-w  
[76258][1]SWI9X50C\_01.14.02.00.cwe  
[76258][1]-n  
[76258][1]SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_000.nvu  
[76258][1]-m  
[76258][1]4  
[76258][1]-l  
[76258][1]log.txt  
[76258][1]Found SWI USB device 1199:9091 at bus 1  
[76258][1]Found SWI USB device at location 1-1  
[76258][1]Found adapter at Bus:1, Port:1, Dev:1, If:12  
[76258][1]Found specified adapter device.  
[76258][6]locate\_adapter\_path: Found adapter: /dev/cdc-wdm0  
[76258][1]Found matching USB device as user specified  
[76258][7]User specified read block size: 0 bytes  
[76258][6]Images list:  
[76258][6]Image[0]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehosti686  
[76258][6]Image[1]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litemipseb  
[76258][6]Image[2]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehostx86\_64  
[76258][6]Image[3]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-literpi  
[76258][6]Image[4]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litearm64  
[76258][6]Image[5]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/SWI9X50C\_01.14.02.00.cwe  
[76258][6]Image[6]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litearm  
[76258][6]Image[7]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litearm64linaro  
[76258][6]Image[8]: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/SWI9X50C\_01.14.02.00\_GENERIC\_002.035\_000.nvu  
[76258][6]Device is in online mode.  
[76258][7]Image switching scenario  
[76258][1]-\> MBIM MessageType=MBIM\_OPEN MessageLength=16 TransactionId=1 MaxControlTransfer=4096  
[76259][1]\<- MBIM MessageType=MBIM\_OPEN\_DONE MessageLength=16 TransactionId=1 Status=0  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=84 TransactionId=2  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=a289cc33bcbb8b4fb6b0133ec2aae6df CID=19 CommandType=set InformationBufferLength=36  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=84 TransactionId=2  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=a289cc33bcbb8b4fb6b0133ec2aae6df CID=19 Status=0 InformationBufferLength=36  
[76259][1]MBIM transport error callback is enabled  
[76259][1]CtlService\_Sync

[76259][1]-\> QMUX Length=11 QMIType=0 ClientId=0 Payload:  
[76259][7]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[76259][7]Copyright: © 2015-2021 Sierra Wireless, Inc. all rights reserved  
[76259][7]lite-SLQS/liteqmi is only permitted to be use with Sierra Wireless Modems  
[76259][7]liteqmi version  
[76259][7]SLQSLITEMBPL\_SDK\_R19\_ENG5  
[76259][7]\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
[76259][1]Send 6 bytes  
[76259][1]00 01 27 00 00 00  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=60 TransactionId=3  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=12  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=67 TransactionId=3  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=19  
[76259][1]\<- QMUX Length=18 QMIType=0 ClientId=0 Payload:  
[76259][1]Read 13 bytes  
[76259][1]01 01 27 00 07 00 02 04 00 00 00 00 00  
[76259][1]CtlService\_Sync: succeeded

[76259][1]CtlService\_GetClientId: serviceType=2

[76259][1]-\> QMUX Length=15 QMIType=0 ClientId=0 Payload:  
[76259][1]Send 10 bytes  
[76259][1]00 02 22 00 04 00 01 01 00 02  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=64 TransactionId=4  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=16  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=72 TransactionId=4  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=24  
[76259][1]\<- QMUX Length=23 QMIType=0 ClientId=0 Payload:  
[76259][1]Read 18 bytes  
[76259][1]01 02 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 02 01  
[76259][1]CtlService\_GetClientId: succeeded, serviceType=2, clientId=1

[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:0, Image Type: 0

[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:0, Image Id:0x3f5f3f00000000000000000000000000  
[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:0, Build Id Length:13

[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:0, Build Id :01.14.02.00\_?  
[76259][1]

[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:1, Image Type: 1

[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:1, Image Id:0x3030322e3033355f3030300000000000  
[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:1, Build Id Length:19

[76259][1][pack] FMS\_SET\_IMAGE\_PREF index:1, Build Id :01.14.02.00\_GENERIC  
[76259][1]

[76259][1][pack] FMS\_SET\_IMAGE\_PREF xid 0x0001 returned 0x0

[76259][1]-\> QMUX Length=88 QMIType=2 ClientId=1 Payload:  
[76259][1]Send 83 bytes  
[76259][1]00 01 00 48 00 4c 00 01 45 00 02 00 3f 5f 3f 00 00 00 00 00 00 00 00 00 00 00 00 00 0d 30 31 2e  
[76259][1]31 34 2e 30 32 2e 30 30 5f 3f 01 30 30 32 2e 30 33 35 5f 30 30 30 00 00 00 00 00 13 30 31 2e 31  
[76259][1]34 2e 30 32 2e 30 30 5f 47 45 4e 45 52 49 43 10 01 00 00  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=137 TransactionId=5  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=89  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=74 TransactionId=5  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=26  
[76259][1]\<- QMUX Length=25 QMIType=2 ClientId=1 Payload:  
[76259][1]Read 20 bytes  
[76259][1]02 01 00 48 00 0d 00 02 04 00 00 00 00 00 01 03 00 02 00 01  
[76259][1][unpack] FMS\_SET\_IMAGE\_PREF xid 0x0001 returned 0x0

[76259][1]CtlService\_ReleaseClientId: serviceType=2 clientId=1

[76259][1]-\> QMUX Length=16 QMIType=0 ClientId=0 Payload:  
[76259][1]Send 11 bytes  
[76259][1]00 03 23 00 05 00 01 02 00 02 01  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=65 TransactionId=6  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=17  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=72 TransactionId=6  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=24  
[76259][1]\<- QMUX Length=23 QMIType=0 ClientId=0 Payload:  
[76259][1]Read 18 bytes  
[76259][1]01 03 23 00 0c 00 02 04 00 00 00 00 00 01 02 00 02 01  
[76259][1]CtlService\_ReleaseClientId: succeeded, serviceType=2

[76259][1]-\> MBIM MessageType=MBIM\_CLOSE MessageLength=12 TransactionId=7  
[76259][1]\<- MBIM MessageType=MBIM\_CLOSE\_DONE MessageLength=16 TransactionId=7 Status=0  
[76259][7]Modem Needs FW

[76259][7]Modem Needs PRI

[76259][7]litefw\_CalculateImageMask: imgMask :3  
[76259][1]-\> MBIM MessageType=MBIM\_OPEN MessageLength=16 TransactionId=1 MaxControlTransfer=4096  
[76259][1]\<- MBIM MessageType=MBIM\_OPEN\_DONE MessageLength=16 TransactionId=1 Status=0  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=84 TransactionId=2  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=a289cc33bcbb8b4fb6b0133ec2aae6df CID=19 CommandType=set InformationBufferLength=36  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=84 TransactionId=2  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=a289cc33bcbb8b4fb6b0133ec2aae6df CID=19 Status=0 InformationBufferLength=36  
[76259][1]MBIM transport error callback is enabled  
[76259][1]CtlService\_Sync

[76259][1]-\> QMUX Length=11 QMIType=0 ClientId=0 Payload:  
[76259][1]Send 6 bytes  
[76259][1]00 01 27 00 00 00  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=60 TransactionId=3  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=12  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=67 TransactionId=3  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=19  
[76259][1]\<- QMUX Length=18 QMIType=0 ClientId=0 Payload:  
[76259][1]Read 13 bytes  
[76259][1]01 01 27 00 07 00 02 04 00 00 00 00 00  
[76259][1]CtlService\_Sync: succeeded

[76259][1]CtlService\_GetClientId: serviceType=2

[76259][1]-\> QMUX Length=15 QMIType=0 ClientId=0 Payload:  
[76259][1]Send 10 bytes  
[76259][1]00 02 22 00 04 00 01 01 00 02  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=64 TransactionId=4  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=16  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=72 TransactionId=4  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=24  
[76259][1]\<- QMUX Length=23 QMIType=0 ClientId=0 Payload:  
[76259][1]Read 18 bytes  
[76259][1]01 02 22 00 0c 00 02 04 00 00 00 00 00 01 02 00 02 01  
[76259][1]CtlService\_GetClientId: succeeded, serviceType=2, clientId=1

[76259][1][pack] DMS\_SET\_OPERATING\_MODE xid 0x0001 returned 0x0

[76259][1]-\> QMUX Length=16 QMIType=2 ClientId=1 Payload:  
[76259][1]Send 11 bytes  
[76259][1]00 01 00 2e 00 04 00 01 01 00 03  
[76259][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=65 TransactionId=5  
[76259][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=17  
[76259][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=68 TransactionId=5  
[76259][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76259][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=20  
[76259][1]\<- QMUX Length=19 QMIType=2 ClientId=1 Payload:  
[76259][1]Read 14 bytes  
[76259][1]02 01 00 2e 00 07 00 02 04 00 00 00 00 00  
[76259][1][unpack] DMS\_SET\_OPERATING\_MODE xid 0x0001 returned 0x0

[76260][1][pack] QMI\_DMS\_GET\_POWER\_STATE xid 0x0002 returned 0x0

[76260][1]-\> QMUX Length=12 QMIType=2 ClientId=1 Payload:  
[76260][1]Send 7 bytes  
[76260][1]00 02 00 2d 00 00 00  
[76260][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=61 TransactionId=6  
[76260][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76260][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=13  
[76260][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=72 TransactionId=6  
[76260][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76260][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=24  
[76260][1]\<- QMUX Length=23 QMIType=2 ClientId=1 Payload:  
[76260][1]Read 18 bytes  
[76260][1]02 02 00 2d 00 0b 00 02 04 00 00 00 00 00 01 01 00 03  
[76260][1][unpack] QMI\_DMS\_GET\_OPERATING\_MODE xid 0x0002 returned 0x0

[76260][1][pack] DMS\_SET\_OPERATING\_MODE xid 0x0003 returned 0x0

[76260][1]-\> QMUX Length=16 QMIType=2 ClientId=1 Payload:  
[76260][1]Send 11 bytes  
[76260][1]00 03 00 2e 00 04 00 01 01 00 04  
[76260][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=65 TransactionId=7  
[76260][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76260][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=17  
[76260][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=68 TransactionId=7  
[76260][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76260][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=20  
[76260][1]\<- QMUX Length=19 QMIType=2 ClientId=1 Payload:  
[76260][1]Read 14 bytes  
[76260][1]02 03 00 2e 00 07 00 02 04 00 00 00 00 00  
[76260][1][unpack] DMS\_SET\_OPERATING\_MODE xid 0x0003 returned 0x0

[76260][1]CtlService\_ReleaseClientId: serviceType=2 clientId=1

[76260][1]-\> QMUX Length=16 QMIType=0 ClientId=0 Payload:  
[76260][1]Send 11 bytes  
[76260][1]00 03 23 00 05 00 01 02 00 02 01  
[76260][1]-\> MBIM MessageType=MBIM\_COMMAND MessageLength=65 TransactionId=8  
[76260][1]-\> MBIM TotalFragments=1 CurrentFragment=0  
[76260][1]-\> MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 CommandType=set InformationBufferLength=17  
[76260][1]\<- MBIM MessageType=MBIM\_COMMAND\_DONE MessageLength=72 TransactionId=8  
[76260][1]\<- MBIM TotalFragments=1 CurrentFragment=0  
[76260][1]\<- MBIM DeviceServiceId=d1a30bc2f97a6e43bf65c7e24fb0f0d3 CID=1 Status=0 InformationBufferLength=24  
[76260][1]\<- QMUX Length=23 QMIType=0 ClientId=0 Payload:  
[76260][1]Read 18 bytes  
[76260][1]01 03 23 00 0c 00 02 04 00 00 00 00 00 01 02 00 02 01  
[76260][1]CtlService\_ReleaseClientId: succeeded, serviceType=2

[76260][1]-\> MBIM MessageType=MBIM\_CLOSE MessageLength=12 TransactionId=9  
[76260][1]\<- MBIM MessageType=MBIM\_CLOSE\_DONE MessageLength=16 TransactionId=9 Status=0  
[76280][7]Modem disconnected from host  
[76287][7]Modem is in B&H mode. Downloading firmware …  
[76287][7]QDL Port :/dev/ttyUSB0  
[76292][7]Read payload [48]  
[76292][7]Read 48 bytes  
[76292][7]01 00 00 00 30 00 00 00 02 00 00 00 01 00 00 00 00 04 00 00 02 00 00 00 00 00 00 00 00 00 00 00  
[76292][7]00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  
[76292][7]Current mode: 0, previous max\_reads\_allowed: 9  
[76292][7]Send 48 bytes  
[76292][7]02 00 00 00 30 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 03 00 00 00 01 00 00 00 02 00 00 00  
[76292][7]03 00 00 00 04 00 00 00 05 00 00 00 06 00 00 00  
[76292][7]Sahara Hello Rsp sent successfully, max\_reads\_allowed reset to 10  
[76292][7]Read payload [8]  
[76292][7]Read 8 bytes  
[76292][7]0b 00 00 00 08 00 00 00  
[76292][7]Current mode: 1, previous max\_reads\_allowed: 9  
[76292][7]Send 12 bytes  
[76292][7]0d 00 00 00 0c 00 00 00 00 ff 00 00  
[76292][7]Sahara Command Execute packet sent successfully, max\_reads\_allowed reset to 10  
[76292][7]Read payload [16]  
[76292][7]Read 16 bytes  
[76292][7]0e 00 00 00 10 00 00 00 00 ff 00 00 09 00 00 00  
[76292][7]Current mode: 2, previous max\_reads\_allowed: 9  
[76292][7]Send 12 bytes  
[76292][7]0f 00 00 00 0c 00 00 00 00 ff 00 00  
[76292][7]Sahara Switch to Firehose command sent successfully, max\_reads\_allowed reset to 10  
[76292][7]Read payload [9]  
[76292][7]Read 9 bytes  
[76292][7]63 6f 6e 66 69 72 6d 65 64  
[76292][7]Current mode: 13, previous max\_reads\_allowed: 9  
[76292][7]Leaving Sahara …  
[76293][7]read timeout  
[76293][7]Current mode: 13, previous max\_reads\_allowed: 29  
[76293][7]read timeout  
[76293][7]Current mode: 13, previous max\_reads\_allowed: 28  
[76293][7]Read payload [111]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 27  
[76293][7]Read payload [232]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: 3, previous max\_reads\_allowed: 26  
[76293][7]Tx: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Firehose configure cmd sent, max\_reads\_allowed reset to 10  
[76293][7]Read payload [237]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][1]MaxPayloadSizeToTargetInBytes: 8192  
[76293][7]Current mode: 4, previous max\_reads\_allowed: 9  
[76293][7]Tx: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Firehose getstorageinfo cmd sent, max\_reads\_allowed reset to 20  
[76293][7]Read payload [185]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 19  
[76293][7]Read payload [197]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][1]SECTOR\_SIZE\_IN\_BYTES: 4096  
[76293][7]Current mode: -1, previous max\_reads\_allowed: 18  
[76293][7]Read payload [100]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 17  
[76293][7]Read payload [97]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 16  
[76293][7]Read payload [102]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 15  
[76293][7]Read payload [89]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 14  
[76293][7]Read payload [143]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 13  
[76293][7]Read payload [71]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 12  
[76293][7]Read payload [86]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 11  
[76293][7]Read payload [107]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: -1, previous max\_reads\_allowed: 10  
[76293][7]Read payload [448]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: 5, previous max\_reads\_allowed: 9  
[76293][7]File: “/home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehosti686”, size in bytes: 3260516, size in sectors: 797  
[76293][7]Tx: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Firehose program cmd sent, max\_reads\_allowed reset to 10  
[76293][7]Read payload [406]  
[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Complete target 1: \<?xml version="1.0" encoding="UTF-8" ?\>

[76293][7]Current mode: 6, previous max\_reads\_allowed: 9  
[76293][7]Write: /home/jerry/Desktop/SampleApps/lite-fw-download/bin/fwdwl-litehosti686

[76293][7]Actual read block size used: 0 bytes  
[76293][7]Write Start

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [February 23, 2022, 7:47am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/14 "2022-02-23T07:47:53Z")

</div>

here is some working log for EM7565:  
[working.zip](https://forum.sierrawireless.com/uploads/short-url/8s3ZPqQEUDSgdOYOQZDoaRT4dR3.zip) (14.0 KB)

---

<div class="post-metadata">

**Author:** ![jerry1](https://avatars.discourse-cdn.com/v4/letter/j/8c91f0/32.png) [@jerry1](https://forum.sierrawireless.com/u/jerry1)\
**Post date:** [March 14, 2022, 1:59am UTC](https://forum.sierrawireless.com/t/em7565-stuck-at-downloading-cwe-when-trying-to-upgrade-fw/26351/15 "2022-03-14T01:59:50Z")

</div>

@jyijyi

We tried using fwdwl tool without specifying .cwe and .nvu and it’s workable.  
However, specifying .cwe and .nvu according to the commands in the readme for the fwdwl tool fails.
