# Can not download dwl file into the module

**URL:** <https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207>\
**Category:** Development tools\
**Created:** [August 30, 2011, 10:49pm UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207 "2011-08-30T22:49:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![ljweko](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@ljweko](https://forum.sierrawireless.com/u/ljweko)\
**Post date:** [August 30, 2011, 10:49pm UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/1 "2011-08-30T22:49:08Z")

</div>

The response after the download command is:

> [@](#):
>
> Due to following reasons the file can’t be loaded:  
> null

See bottom / left.

 ![](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/3/3d972614f3d1c00296dee8df54d537b096558bd1.PNG)  

Tried 3 different modems. The Hello world can be loaded. Loading succeeded via Xmodem.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [August 31, 2011, 6:03am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/2 "2011-08-31T06:03:32Z")

</div>

> [@ljweko](#):
>
> Loading succeeded via Xmodem.

You mean using AT+WDWL from a terminal program, or similar?

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [August 31, 2011, 6:22am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/3 "2011-08-31T06:22:11Z")

</div>

Please can you attach the error log to this thread?  
(.log file in your /.metadata directory; please zip it before attach)

---

<div class="post-metadata">

**Author:** ![ljweko](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@ljweko](https://forum.sierrawireless.com/u/ljweko)\
**Post date:** [August 31, 2011, 7:24am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/4 "2011-08-31T07:24:34Z")

</div>

Thanks for fast reply.

Yes, I was using +wdwl and hyperterm, when succeeded.

[log.zip](https://forum.sierrawireless.com/uploads/short-url/zdS1kNUd3tbxcfZLMDhHF6qYHdc.zip) (1.08 KB)

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [September 1, 2011, 6:41am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/5 "2011-09-01T06:41:14Z")

</div>

There is an issue while parsing the DWL file, when DS checks its expanded size WRT the available one in the module’s memory (improvement added in 2.1.0)  
We shall add a protection to avoid such kind of behavior, but please could you attach the dwl file here, in order to let us understand why the parsing fails?  
Thanks.

---

<div class="post-metadata">

**Author:** ![ljweko](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@ljweko](https://forum.sierrawireless.com/u/ljweko)\
**Post date:** [September 7, 2011, 10:01am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/6 "2011-09-07T10:01:16Z")

</div>

Sent you a pm.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [September 7, 2011, 1:26pm UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/7 "2011-09-07T13:26:12Z")

</div>

The DWL is indeed not parsed correctly by DS (which can’t recognize it as an Open AT app).  
How this file has been generated?  
Was something added to the DS generation process, or is there something specific in the project configation (as you said that downloading a simple HelloWorld is OK…)?

If it’s possible, can you try reproducing the issue on a simple project, and attach it here?

---

<div class="post-metadata">

**Author:** ![ljweko](https://avatars.discourse-cdn.com/v4/letter/l/47e85d/32.png) [@ljweko](https://forum.sierrawireless.com/u/ljweko)\
**Post date:** [September 14, 2011, 2:35am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/8 "2011-09-14T02:35:50Z")

</div>

It is an OpenAt Lua project. The app was loaded into the module (with Xmodem), when I took a snip for my first post, so its properties can be seen there.

As I made a snapshot of the VM, I was able to clean build project, again with no download. However, when I just switched two statements, the download succeeded with no complaints. Every change in source (binaries, comments do not have effect) enabled the download.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [September 14, 2011, 7:41am UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/9 "2011-09-14T07:41:05Z")

</div>

Ok, quite strange…  
Anyway, we’ll improve the DWL parser to ensure it can’t be “disturbed” by such kind of “corrupted” DWL files.

---

<div class="post-metadata">

**Author:** ![daav](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/daav/32/2767_2.png) [@daav](https://forum.sierrawireless.com/u/daav)\
**Post date:** [September 14, 2011, 12:49pm UTC](https://forum.sierrawireless.com/t/can-not-download-dwl-file-into-the-module/5207/10 "2011-09-14T12:49:29Z")

</div>

Just pushed a patch to fix the size check bug:  
[url][https://forum.sierrawireless.com/t/patch-traces-view-replacement-bug-in-ds-2-1-0/5240/1](https://forum.sierrawireless.com/t/patch-traces-view-replacement-bug-in-ds-2-1-0/5240/1)]
