A&D Resize in OAT application


#1

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:

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


#2

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


#3

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