Flash Magic Forum

In-System Programming Support => P89C51Rx+/P89C51Rx2/P89C66x/P89C6xX2/P89V66x => Topic started by: KS Tan on August 15, 2005, 06:32:08 PM

Title: Blank Check P89C664
Post by: KS Tan on August 15, 2005, 06:32:08 PM
Hi,
I am trying to do a balnk check first before I program P89C664, anyone know what is the return variable from FM command to indicate whether the device is blank or not?

rdgs,
Title: Re: Blank Check P89C664
Post by: Andy Ayre on August 16, 2005, 08:41:43 AM
In Windows the blank blocks are indicated by being highlighted or not. On the command line it will say "Memory Blank" after execution.

Title: Re: Blank Check P89C664
Post by: Jan Waclawek on August 16, 2005, 10:02:43 AM
I think the OP wanted to get a DOS ERRORLEVEL value, which he could check in a bat file.

Jan Waclawek
Title: Re: Blank Check P89C664
Post by: Andy Ayre on August 16, 2005, 10:07:12 AM
FM.exe should return 1 for error and 0 for success, which I believe is used to set ERRORLEVEL.