US 11,809,748 B2
Control method of flash memory controller and associated flash memory controller and electronic device
Chia-Chi Liang, Hsinchu County (TW); Tsu-Han Lu, Hsinchu (TW); and Hsiao-Chang Yen, Hsinchu County (TW)
Assigned to Silicon Motion, Inc., Hsinchu County (TW)
Filed by Silicon Motion, Inc., Hsinchu County (TW)
Filed on Mar. 10, 2022, as Appl. No. 17/692,121.
Prior Publication US 2023/0289098 A1, Sep. 14, 2023
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0659 (2013.01) [G06F 3/064 (2013.01); G06F 3/0611 (2013.01); G06F 3/0679 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A control method of a flash memory controller, wherein the flash memory controller is configured to access a flash memory module, the flash memory module comprises a plurality of planes, each plane comprises a plurality of blocks, and each block comprises a plurality of pages; and the control method comprises the steps of:
after the flash memory controller is powered on, reading a first code bank from a specific block of the plurality of blocks;
storing the first code bank into a buffer memory;
executing the first code bank to manage the flash memory module;
when the flash memory controller starts a code bank swapping operation, trying to read a second code bank from a super block, wherein the super block comprises a plurality of blocks respectively located in at least two planes;
if the second code bank is read successfully, storing the second code bank into the buffer memory to replace the first code bank, and executing the second code bank to manage the flash memory module; and
if the second code bank is not read from the super block successfully, reading the second code bank from the specific block, storing the second code bank into the buffer memory to replace the first code bank, and executing the second code bank to manage the flash memory module.