US 12,032,832 B2
Storage device and operating method thereof
Sung Jin Moon, Suwon-si (KR); Chang Hwan Kim, Hwaseong-si (KR); Young-Sik Lee, Suwon-si (KR); and Eun Ju Choi, Hwaseong-si (KR)
Assigned to SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed by SAMSUNG ELECTRONICS CO., LTD., Suwon-si (KR)
Filed on Jul. 18, 2022, as Appl. No. 17/866,844.
Claims priority of application No. 10-2021-0181257 (KR), filed on Dec. 17, 2021.
Prior Publication US 2023/0195321 A1, Jun. 22, 2023
Int. Cl. G06F 3/06 (2006.01)
CPC G06F 3/0616 (2013.01) [G06F 3/0631 (2013.01); G06F 3/0679 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A storage device, comprising:
a memory cell; and
a storage controller which includes a flash controller that performs a data operation on the memory cell, and a processor that executes a Real Time Operating System (RTOS) for controlling the flash controller, wherein:
the RTOS communicates with the storage controller and operates in a normal operation mode,
the storage device is configured to detect a defect by itself inside the storage device,
the RTOS generates a snapshot data in a debug mode when the storage device is detected the defect,
the RTOS switches to the debug mode through context switching in the normal operation mode, and
the RTOS operates in the normal operation mode, when an urgent work occurs, while performing an operation of generating the snapshot data in the debug mode.