Patent ID: 8370718

Claim:
A method for identifying a flash memory device coupled to a host device, the flash memory device having a page size from a plurality of possible page sizes, bootstrap code stored on a first sector thereof, and a data bus for accessing data stored thereon and with a data bus size from a plurality of possible data bus sizes, the method comprising: reading the bootstrap code stored in a first page of the first sector as if the flash memory device had an assumed page size and an assumed data bus size; and verifying whether two nonconsecutive bytes of the bootstrap code are correct, and if not, generating a signal indicating that the flash memory device does not have the assumed page size and the assumed data bus size, otherwise executing at least reading content from memory locations where error correction code (ECC) bytes of the first page are stored if the flash memory device has the assumed page size and checking whether the ECC bytes include more than a number of errors associated with the assumed page size, and if the ECC bytes do not include more than the number of errors, generating a signal that the flash memory device has the assumed page size and the assumed data bus size.