AnsweredAssumed Answered

flash js28F320  with bf518

Question asked by szrong3000 on Mar 27, 2012
Latest reply on Apr 16, 2012 by CraigG

hello:

  I use  NorFlash JS28F320 with bf518 , Imodify  driver follow  pc28f128 (bf548) ,

but programing 4.5kB file   time consuming 10 minute, programing access  can run;

I  find lots time  in fun :

ERROR_CODE  PollToggleBit(unsigned long ulOffset, unsigned long timeout)
{

   while ( timeout )
    {

        if ( IsStatusReady( ulOffset ) )  // lots time in there;
        {
            WriteFlash( ulOffset, 0xFF );
            return( NO_ERR );
        }
        timeout--;
     }

    return( POLL_TIMEOUT );

}

 

how   to do???

Outcomes