# A&D Resize in OAT application

**URL:** <https://forum.sierrawireless.com/t/a-d-resize-in-oat-application/1817>\
**Category:** Open AT\
**Created:** [January 11, 2008, 5:42am UTC](https://forum.sierrawireless.com/t/a-d-resize-in-oat-application/1817 "2008-01-11T05:42:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregorbader](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gregorbader](https://forum.sierrawireless.com/u/gregorbader)\
**Post date:** [January 11, 2008, 5:42am UTC](https://forum.sierrawireless.com/t/a-d-resize-in-oat-application/1817/1 "2008-01-11T05:42:57Z")

</div>

Hi,

I tried to resize the A&D Flash by issuing the command “at+wopen=6,1280” from OAT application.  
The Resize is directly started at ADL\_INIT\_POWER\_ON before anything else is set up.  
I subscribe to the response of the command to issue a restart when finished.  
Here the code:

```auto
bool AdResizeResponseHdl_(adl_atResponse_t *paras)
{
  if( paras->RspID == ADL_STR_OK)
  {
    /* after resize finished, restart */
    adl_atCmdCreate("AT+CFUN=1",FALSE, (adl_atRspHandler_t) NULL,NULL,NULL);
  }

  return false;
}

void AdFlashResize(void)
{
  adl_atCmdCreate("AT+WOPEN=6,1280",TRUE, (adl_atRspHandler_t)AdResizeResponseHdl_,"*",NULL);
}
```

The Resize never finishes correctly and I already “resized” 2 Q2686 modules to death.

Is it generally possible to resize A&D from OAT application?  
Has anybody tried it?

gr33tz  
Gregor Bader

---

<div class="post-metadata">

**Author:** ![wismo\_coder](https://avatars.discourse-cdn.com/v4/letter/w/6bbea6/32.png) [@wismo\_coder](https://forum.sierrawireless.com/u/wismo_coder)\
**Post date:** [January 11, 2008, 5:50am UTC](https://forum.sierrawireless.com/t/a-d-resize-in-oat-application/1817/2 "2008-01-11T05:50:46Z")

</div>

According to my ditributor it is, but I also just like you “resized some Q2686 to death”. So before delivering a modem you should alway check if the A&D storage is correctly resized for DOTA I&II. Any other error in your programming can be fixed by an upgrade via DOTA except for this one.

Regards,  
wismo\_coder

---

<div class="post-metadata">

**Author:** ![gregorbader](https://avatars.discourse-cdn.com/v4/letter/g/51bf81/32.png) [@gregorbader](https://forum.sierrawireless.com/u/gregorbader)\
**Post date:** [January 11, 2008, 10:17am UTC](https://forum.sierrawireless.com/t/a-d-resize-in-oat-application/1817/3 "2008-01-11T10:17:20Z")

</div>

Hi,

I got info from my distributer what is wrong.

If the AT+WOPEN=6, command is issued, either from OAT or via terminal, the CPU is reset!!!  
This behaviour is nowhere documented!!!

As the OAT application starts again, it wants to start the resize again and issues a new AT+WOPEN=6, command.  
This leads to the “resize” to death.

Wavecom suggests that you save the “resize” status in Object Flash and check this status before any new command.

gr33tz  
Gregor Bader
