 When a logical block is accessed by high-level software, it is mapped to a physical block by the device driver or controller.A number of blocks on the flash chip may be set aside for storing mapping tables to deal with bad blocks, or the system may simply check each block at power-up to create a bad block map in RAM.The overall memory capacity gradually shrinks as more blocks are marked as bad.