Q2686 Flash READ/WRITE

Hi,

   In Q2686 model, am trying ,

   " if( (ret=adl_flhWrite ("flashHandle", 1, 11, "FLASH DATA" )) ==OK)
	adl_atSendResponse ( ADL_AT_UNS,"adl_flhWrite OK ");
else
{
	wm_sprintf(buffer,"\n adl_flhWrite ERROR ::%d\n",ret);
	adl_atSendResponse ( ADL_AT_UNS,buffer);
}
wm_memset(buffer,0,sizeof(buffer));

   if((ret=adl_flhRead ("flashHandle",1,11,buffer ))==OK)
{
           adl_atSendResponse ( ADL_AT_UNS,buffer);
    }
   else
{
	wm_sprintf(buffer,"\n adl_flhWrite ERROR ::%d\n",ret);
	adl_atSendResponse ( ADL_AT_UNS,buffer);
} "

Just, i want to write some thing and read the same. But the after reading the buffer is EMPTY.

The method, am trying is correct ?

Thank you,

Hi

You must subscribe to the flash before you can write to it. Use adl_flhSubscribe. See the ADL User Guide for more information

Return_Status = adl_flhSubscribe(Flash_Handle, N_OBJ);