Patent ID: 8478963
Filing Date: 2013-07-02
Classification: G06F

Abstract:
1. A method of dynamically switching partitions, for a memory card having a memory card controller and a plurality of physical blocks, the method comprising: configuring a plurality of logical blocks for mapping to at least a portion of the physical blocks by the memory card controller; dividing the logical blocks into a first partition and a second partition by the memory card controller; setting a card specific data (CSD) corresponding to the memory card as a first default value corresponding to the first partition by the memory card controller; requesting the CSD corresponding to the memory card by a host system, so as to obtain the first default value from the memory card when the memory card is coupled to the host system, wherein the host system can recognize and access the first partition based on the first default value; transmitting a switch command to the memory card controller by the host system; receiving the switch command from the host system by the memory card controller; recording a switch flag in a random access memory of the memory card as well as not transmitting a response message corresponding to the switch command to the host system by the memory card controller in response to the switch command; resetting the memory card with an uninterruptible power supply manner by the host system in response to not transmitting the response message corresponding to the switch command by the memory card controller; determining whether the switch flag is recorded in the random access memory by the memory card controller after the memory card is reset; setting the CSD corresponding to the memory card as a second default value corresponding to the second partition by the memory card controller if the switch flag is recorded in the random access memory after the memory card is reset; and re-requesting the CSD corresponding to the memory card by the host system, so as to obtain the second default value from the memory card after the CSD corresponding to the memory card is set as the second default value corresponding to the second partition, wherein the host system can recognize and access the second partition based on the second default value.