Firmware partition management method and memory storage system
By segmenting the firmware file into blocks and storing it into multiple sub-firmware files, and loading the required sub-firmware files when the program is running, the problem of insufficient storage space is solved and more efficient storage space utilization is achieved.
Patent Information
- Application Number
- CN202210303175.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-03-25
AI Technical Summary
With the advancement of semiconductor chip manufacturing processes, the operation and testing procedures of the flash memory by the main controller in the memory storage device have become more and more complex, resulting in synchronous code expansion, occupying storage space, and causing the problem of insufficient storage space.
Using the firmware segmentation management method, the firmware file is divided into blocks and stored into multiple sub-firmware files. When the program is running, the required sub-firmware files are loaded from the host system to the memory storage device for operation. By pre-setting the function formula Parameters and block parameters, determine and load the corresponding sub-firmware file to execute the function.
The storage space is effectively utilized to solve the problem of insufficient storage space in the memory storage device and at the same time improve the utilization efficiency of the storage space.
Smart Images

Figure CN114625322B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a memory control technology, and in particular to a firmware partition management method and a memory storage system. Background Art
[0002] With the advancement and update of semiconductor chip process technology, the main controller in the memory storage device has more and more complex procedures for executing operations and test processes on the flash memory. This phenomenon causes the code corresponding to the operation and test process to be expanded synchronously, resulting in a gradual increase in the storage capacity required by the code. Generally speaking, an external read-only memory (ROM) can be used or the code can be stored in the random access memory (RAM) of the main controller for execution. However, expanding the read-only memory or random access memory to store the expanded code may occupy the space of the memory storage device and affect the size of the memory storage device. Therefore, the memory and storage space set in the memory storage device cannot be infinitely increased to store the code. In addition, before the flash memory is detected, it is not known which locations in the flash memory can store the code. The above phenomenon will lead to bottlenecks in storage and use after the code is expanded. Summary of the invention
[0003] The present invention is directed to a firmware partition management method and a memory storage system, which can solve the problem of insufficient storage space and effectively improve the use of storage space.
[0004] An embodiment of the present invention provides a firmware partition management method, characterized in that it is used to control a memory storage device and a host system. The host system includes a host memory, the memory storage device includes a memory controller and a memory module, the memory controller includes a local memory, and the memory module includes a plurality of storage units. The firmware partition management method includes: presetting a plurality of functional parameters; obtaining a first block parameter corresponding to a first functional parameter among the plurality of functional parameters when calling a first functional parameter, and obtaining a file record parameter, wherein the file record parameter reflects a first sub-firmware file stored in the local memory; determining whether the first block parameter is the same as the file record parameter; in response to the first block parameter being the same as the file record parameter, directly executing the first functional formula according to the first sub-firmware file stored in the local memory; and in response to the first block parameter being different from the file record parameter, loading a second sub-firmware file corresponding to the first block parameter into the local memory, and executing the first functional formula according to the loaded second sub-firmware file.
[0005] In an embodiment of the present invention, the first functional parameter and the first block parameter corresponding to the first functional parameter are recorded in the host memory.
[0006] In one embodiment of the present invention, the method further includes: after loading the second sub-firmware file corresponding to the first block parameter into the local memory, updating the file record parameter according to the first block parameter to reflect the second sub-firmware file stored in the local memory.
[0007] In one embodiment of the present invention, the method also includes: obtaining each of a plurality of functional formulas and a block parameter corresponding to each of the functional formulas; and compiling and transcoding the plurality of functional formulas into segments into a plurality of sub-firmware files according to the block parameters, wherein the plurality of sub-firmware files include the first sub-firmware file and the second sub-firmware file.
[0008] In one embodiment of the present invention, the step of transcoding the multiple functional segments into the multiple sub-firmware files according to the block parameters includes: recording the corresponding relationship between the block parameters and the functional parameters of the functions linked to the block parameters in the host memory during compilation.
[0009] An embodiment of the present invention further provides a memory storage system, comprising a memory storage device and a host system. The memory storage device comprises a local memory. The host system comprises a processor and a host memory, and the host system is connected to the memory storage device. The processor is used to pre-set a plurality of functional parameters. The processor is used to obtain a first block parameter corresponding to a first functional parameter among the plurality of functional parameters when calling a first functional parameter corresponding to the first functional parameter, and obtain a file record parameter, wherein the file record parameter reflects a first sub-firmware file stored in the local memory. The processor is used to determine whether the first block parameter is the same as the file record parameter. In response to the first block parameter being the same as the file record parameter, the processor is used to directly execute the first functional formula according to the first sub-firmware file stored in the local memory. Furthermore, in response to the first block parameter being different from the file record parameter, the processor is used to load a second sub-firmware file corresponding to the first block parameter into the local memory, and execute the first functional formula according to the loaded second sub-firmware file.
[0010] In an embodiment of the present invention, the first functional parameter and the first block parameter corresponding to the first functional parameter are recorded in the host memory.
[0011] In one embodiment of the present invention, the processor is further configured to update the file record parameter according to the first block parameter after loading the second sub-firmware file corresponding to the first block parameter into the local memory to reflect the second sub-firmware file stored in the local memory.
[0012] In one embodiment of the present invention, the processor is further configured to obtain each of a plurality of functional formulas and a block parameter corresponding to each of the functional formulas. Furthermore, the processor is further configured to compile and transcode the plurality of functional formulas into a plurality of sub-firmware files according to the block parameters, wherein the plurality of sub-firmware files include the first sub-firmware file and the second sub-firmware file.
[0013] In an embodiment of the present invention, the processor records the corresponding relationship between the block parameters and the functional parameters of the function linked to the block parameters in the host memory during compiling.
[0014] Based on the above, the firmware segmentation management method and memory storage system provided by the embodiments of the present invention can segment the firmware file into multiple sub-firmware files in blocks and store them in the host system. And during the program running, the required sub-firmware files are loaded from the host system to the memory storage device for running. In the case where the storage space of the local memory of the memory storage device is limited, the storage space of the memory storage device can be used more effectively and the problem of insufficient storage space of the memory storage device can be solved at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention;
[0016] Figure 2 is a schematic diagram of a memory controller according to an embodiment of the present invention;
[0017] Figure 3 is a schematic diagram of a management memory module according to an embodiment of the present invention;
[0018] Figure 4 is a schematic block diagram of a host system and a memory storage device according to an embodiment of the present invention;
[0019] Figure 5 is a flowchart of a firmware partition management method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0020] Reference will now be made in detail to exemplary embodiments of the present invention, examples of which are illustrated in the accompanying drawings. Whenever possible, the same reference numerals are used in the drawings and the description to refer to the same or like parts.
[0021] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0022] Figure 1 is a schematic diagram of a memory storage device according to an embodiment of the present invention. Figure 1 , the memory storage system 10 includes a host system 11 and a memory storage device 12. The host system 11 can be any type of computer system. For example. The host system 11 can be a notebook computer, a desktop computer, a smart phone, a tablet computer, an industrial computer, etc. The memory storage device 12 is used to store data from the host system 11. For example, the memory storage device 12 may include a solid state drive, a USB flash drive, or other types of non-volatile storage devices. The host system 11 can be electrically connected to the memory storage device 12 via a Serial Advanced Technology Attachment (SATA) interface, a Peripheral Component Interconnect Express (PCI Express), a Universal Serial Bus (USB), or other types of connection interfaces. Therefore, the host system 11 can store data to the memory storage device 12 and / or read data from the memory storage device 12.
[0023] The memory storage device 12 may include a connection interface 121, a memory module 122, and a memory controller 123. The connection interface 121 is used to connect the memory storage device 12 to the host system 11. For example, the connection interface 121 may support connection interface standards such as SATA, PCI Express, or USB. The memory storage device 12 may communicate with the host system 11 via the connection interface 121.
[0024] The memory module 122 is used to store data. The memory module 122 may include a rewritable non-volatile memory module. The memory module 122 includes a memory cell array. The memory cells in the memory module 122 store data in the form of voltage. For example, the memory module 122 may include a single level cell (SLC) NAND flash memory module, a multi level cell (MLC) NAND flash memory module, a triple level cell (TLC) NAND flash memory module, a quad level cell (QLC) NAND flash memory module, a three-dimensional NAND flash memory module (3D NAND flash memory module) (which may have multiple three-level or four-level memory cells) or other memory modules with similar characteristics. The memory cells in the memory module 122 are arranged in an array.
[0025] The memory controller 123 is connected to the connection interface 121 and the memory module 122. The memory controller 123 can be used to control the memory storage device 12. For example, the memory controller 123 can control the connection interface 121 and the memory module 122 to perform data access and data management. For example, the memory controller 123 may include a central processing unit (CPU), a graphics processing unit (GPU), or other programmable general-purpose or special-purpose microprocessors, digital signal processors (DSP), programmable controllers, application specific integrated circuits (ASIC), programmable logic devices (PLD) or other similar devices or combinations of these devices.
[0026] In one embodiment, the memory controller 123 is also called a flash memory controller. In one embodiment, the memory module 122 is also called a flash memory module. The memory module 122 can receive a command sequence from the memory controller 123 and access data stored in the storage unit according to the command sequence.
[0027] Figure 2 FIG. 1 is a schematic diagram of a memory controller according to an embodiment of the present invention. Figure 1 and Figure 2The memory controller 123 includes a host interface 21, a memory interface 22, a memory control circuit 23 and a local memory 24. The host interface 21 is used to connect to the host system 11 via the connection interface 121 to communicate with the host system 11. The memory interface 22 is used to connect to the memory module 122 to communicate with the memory module 122.
[0028] The memory control circuit 23 is connected to the host interface 21 and the memory interface 22. The memory control circuit 23 can communicate with the host system 11 via the host interface 21 and access the memory module 122 via the memory interface 22. The memory control circuit 23 can also be regarded as the control core of the memory controller 123, which has a plurality of control instructions. When the memory storage device 12 operates, these control instructions will be executed to implement operations such as writing, reading, and erasing data. In different embodiments, the control instructions of the memory control circuit 23 can be implemented in the form of firmware, code, or hardware, and the present invention is not limited thereto. In the following embodiments, the description of the memory control circuit 23 is equivalent to the description of the memory controller 123. In addition, the memory control circuit 23 may also include one or more buffer memories for temporarily storing data.
[0029] The local memory 24 is electrically connected to the memory control circuit 23 and is configured to store instructions for executing various processes, operations, logic flows and routines for controlling the operation of the memory storage device 12 (including handling the communication between the memory storage device 12 and the host system 11) and other data required for executing instructions. The memory control circuit 23 can execute the instructions in the local memory 24 to control the operation of the memory storage device 12. For example, the local memory 24 may include a random access memory (Random Access Memory, RAM) such as a dynamic random access memory (DRAM) or a static random access memory (SRAM), and the present invention is not limited thereto. In addition, the local memory 24 is implemented in the memory controller 123 in the form of a chipset or a system on chip (SoC), or is independent of the memory controller 123, and the present invention is not limited thereto.
[0030] Figure 3 is a schematic diagram of a management memory module according to an embodiment of the present invention.
[0031] Please refer to Figure 1 and Figure 3 , the memory module 122 includes a plurality of physical programming units, such as Figure 3The physical units 301(0) to 301(C) are shown. The memory module 122 is managed based on physical programming units, each of which includes multiple storage units and is used to store data in a non-volatile manner. Multiple physical programming units can form a physical erase unit (for example, a physical block). Multiple physical programming units (or storage units) in a physical erase unit can be erased simultaneously. In addition, the memory control circuit 23 can configure multiple logical units 311(0) to 311(D) to map at least part of the physical programming units. For example, a logical unit can be composed of one or more logical addresses. The mapping relationship between the logical unit and the physical programming unit can be recorded in a logical to physical mapping table.
[0032] In one embodiment, the memory module is logically divided into a data area 310, an idle area 320, and a system area 330. The physical units 301(1)-301(A) logically belonging to the data area 310 store data (also called user data) from the host system 11. After being erased, the physical programming units in the data area 310 will be associated with the idle area 320. Among them, multiple physical programming units in the idle area 320 can form an idle physical erase unit.
[0033] The physical units 301(B+1)-301(C) logically belonging to the system area 330 are used to record system data. For example, the system data includes the manufacturer and model of the memory module, the number of physical erase units of the memory module, the number of physical programming units of each physical erase unit, etc. In particular, the number of physical programming units of the data area 310, the idle area 320 and the system area 330 will vary according to different memory specifications.
[0034] In an embodiment where a memory cell can store multiple bits (e.g., an MLC or TLC NAND flash memory), the physical programming cells belonging to the same word line (or the same word line layer) can be classified into at least a lower physical programming cell and an upper physical programming cell. For example, in an embodiment of an MLC NAND flash memory, the least significant bit (LSB) of a memory cell belongs to the lower physical programming cell, and the most significant bit (MSB) of the memory cell belongs to the upper physical programming cell. The reliability of the lower physical programming cell is generally higher than the reliability of the upper physical programming cell. In an exemplary embodiment, the lower physical programming cell is also called a fast page, and the upper physical programming cell is also called a slow page. In addition, in an embodiment of a TLC NAND flash memory, the least significant bit (LSB) of a storage cell belongs to a lower physical programming unit, the center significant bit (CSB) of the storage cell belongs to a middle physical programming unit, and the most significant bit (MSB) of the storage cell belongs to an upper physical programming unit.
[0035] Figure 4 is a schematic block diagram of a host system and a memory storage device according to an embodiment of the present invention.
[0036] Please refer to Figure 4 , the host system 11 includes a host memory 111 and a processor 112. The host memory 111 is, for example, any type of random access memory, read-only memory (ROM), flash memory (Flash memory), and may also include a non-volatile memory (NVM), such as at least one disk storage or other similar device or a combination of these devices, and the present invention is not limited thereto. Optionally, the host memory may also be at least one storage device that is not integrated in the memory storage device 10. In the present embodiment, the host memory 111 is used to store a firmware file, such as a bin file, that can be used to program the memory storage device 10 when testing the memory storage device 10 or when the memory storage device 10 is in operation.
[0037] The processor 112 is, for example, a central processing unit (CPU), or other programmable general-purpose or special-purpose microprocessor (Microprocessor), digital signal processor (Digital Signal Processor, DSP), programmable controller, application specific integrated circuits (Application Specific Integrated Circuits, ASIC), programmable logic device (Programmable Logic Device, PLD) or other similar devices or a combination of these devices, but the present invention is not limited thereto.
[0038] Figure 5 is a flowchart of a firmware partition management method according to an embodiment of the present invention. Figure 4 and Figure 5 The method of this embodiment is applicable to the host system 11 and the memory storage device 10 mentioned above. The following is a description of the detailed steps of the firmware partition management method of this embodiment in conjunction with the various devices and components of the host system 11 and the memory storage device 10.
[0039] In this embodiment, a firmware file may be established by functional programming. When programming a firmware file, a programmer may design functions with the same usage characteristics to be classified into the same bank. For example, related functions corresponding to processing write instructions may be classified into the same bank, related functions corresponding to processing read instructions may be classified into the same bank, related functions corresponding to processing data conversion may be classified into the same bank, functions specifically processing protocols may be classified into the same bank, and general functions used by various modules may be classified into the same bank, but the present invention is not limited thereto. Functions may include function parameters and code segments. When programming, a programmer may note the block parameters corresponding to each function in the code segment of each function, and the block parameters represent the block to which the function is classified. Assume that a programmer uses a host system 11 for programming. When the processor 112 of the host system 11 executes the compiler to compile the firmware file, the processor 112 obtains each function formula and the block parameters corresponding to each function formula from the firmware file, and compiles and transcodes multiple function formulas into multiple sub-firmware files according to the block parameters. Specifically, the processor 112 can compile and transcode the function formulas belonging to different blocks in the firmware file into multiple sub-firmware files according to the block parameters. These sub-firmware files are stored in the host memory 111. In detail, the processor 112 will link multiple function formulas in the firmware file that are annotated to the same block parameter, and compile and transcode them into the same sub-firmware file, such as a bin file. Based on this, each sub-firmware file generated after compilation will be associated with multiple specific function formulas respectively.
[0040] In this embodiment, the processor 112 may also record the correspondence between the block parameters and the functional parameters of multiple functions linked to the block parameters during compilation, and store the correspondence record in the host memory 111, and the present invention is not limited thereto. For example, the processor 112 may record the correspondence between the block parameters and the functional parameters of multiple functions linked to the block parameters in a file lookup table, and the file lookup table is used to reflect the sub-firmware files associated with the functional parameters. It should be noted that the present invention is not limited to the recording method of the file lookup table, and those skilled in the art can design a method for generating searchable records based on the enlightenment of the above exemplary embodiments.
[0041] In one embodiment, the file lookup table may include block parameters and functional parameters of each function linked to the block parameters. For example, Table 1 below is a file lookup table in one embodiment, which records block parameters and functional parameters of multiple functions linked to the block parameters.
[0042] Table 1
[0043]
[0044] According to Table 1, the functional parameters function a and function b correspond to the block parameter Bank 0, which means that the compilation results of the functions corresponding to the functional parameters function a and function b are stored in the same sub-firmware file. Functional parameters function c and function d correspond to the block parameter Bank 1, which means that the compilation results of the functions corresponding to the functional parameters function c and function d are stored in the same sub-firmware file. However, Table 1 is only an example, and the specific records can be adjusted according to practical needs.
[0045] Please refer to Figure 5 In step S502, the processor 112 may pre-set a plurality of functional parameters. These functional parameters are used to call the function. Specifically, the programmer may write a script file of the test project according to the above functional parameters. Taking the above function as an example, the script file may include a series of functional parameters and other code fragments to implement a corresponding series of operations on the memory storage device 10 so as to test the item to be tested.
[0046] Then, in step S504, the processor 112 obtains the first block parameter corresponding to the first functional parameter when calling the first functional parameter among the plurality of functional parameters, and obtains the file record parameter. In this embodiment, the processor 112 uses a variable (e.g., a file record parameter) to record the block parameter corresponding to the first sub-firmware file stored in the local memory 24 of the memory storage device 10, and the variable reflects the sub-firmware file (also referred to as the first sub-firmware file) stored in the local memory 24. For example, the processor 112 can use a global variable to store the file record parameter.
[0047] Specifically, the processor 112 may execute the script file and call the function corresponding to the function parameter in the script file. In this embodiment, when the processor 112 calls the first function corresponding to the first function parameter in the script file, it will obtain the first block parameter corresponding to the first function parameter. For example, the processor 112 may query the file lookup table to obtain the first block parameter corresponding to the first function parameter.
[0048] Next, in step S506, the processor 112 determines whether the first block parameter is the same as the file record parameter. If the first block parameter is the same as the file record parameter, it means that the local memory 24 stores the sub-firmware file corresponding to the called function. Therefore, in step S508, in response to the first block parameter being the same as the file record parameter (for example, step S506 is determined to be yes), the processor 112 can directly execute the first function according to the first sub-firmware file stored in the local memory 24. For example, the processor 112 can directly send a command to the memory storage device 10 to instruct the memory storage device 10 to execute the first function based on the first sub-firmware file stored in the local memory 24.
[0049] However, the storage capacity of the local memory 24 is limited, and the local memory 24 of the present embodiment only stores part of the sub-firmware files. If the first block parameter is different from the file record parameter, it means that the local memory 24 does not store the sub-firmware file corresponding to the function called by the processor 112. Therefore, in step S510, in response to the first block parameter being different from the file record parameter (for example, the judgment in step S506 is no), the processor 112 may perform a switching operation to load the sub-firmware file corresponding to the first block parameter (also referred to as the second sub-firmware file) into the local memory 24, and execute the first function according to the loaded second sub-firmware file.
[0050] Specifically, when executing the switching operation, the processor 112 may read the second sub-firmware file corresponding to the first block parameter from the host memory 111. Furthermore, the processor 112 may load the second sub-firmware file to the local memory 24 of the memory storage device 10 through a vendor command, and then execute the first function according to the loaded second sub-firmware file.
[0051] In this embodiment, after loading the second sub-firmware file into the local memory 24, the processor 112 can update the file record parameter according to the first block parameter corresponding to the second sub-firmware file to record that the local memory 24 stores the second sub-firmware file. Here, the updated file record parameter reflects that the local memory 24 stores the first sub-firmware file and the second sub-firmware file.
[0052] Taking Table 1 as an example, assuming that the local memory 24 of the memory storage device 10 only stores the sub-firmware file corresponding to the block parameter Bank 1, the processor 112 will use the file record parameter to record the block parameter Bank 1. In this embodiment, when the processor 112 wants to call the function corresponding to the function parameter function a, the processor 112 can query Table 1 to obtain the function parameter function a corresponding to the first block parameter Bank 0. Then, the processor 112 determines that the block parameter Bank 1 recorded by the file record parameter is different from the first block parameter Bank 0, and loads the sub-firmware file corresponding to the first block parameter Bank 0 into the local memory 24, and executes the function corresponding to the function parameter function a according to the loaded sub-firmware file. In addition, after loading the sub-firmware file corresponding to the first block parameter Bank 0 into the local memory 24, the processor 112 uses the file record parameter to record the block parameter Bank 0. In this way, when the processor 112 wants to call the function corresponding to the function parameter function a next time, it can be determined according to the file record parameter that the local memory 24 stores the sub-firmware file corresponding to the block parameter Bank 0. Based on this, the processor 112 can directly execute the function corresponding to the function parameter function a according to the sub-firmware file corresponding to the block parameter Bank 0 stored in the local memory 24 .
[0053] However, Figure 5 The steps in the above are described in detail, so I will not repeat them here. It is worth noting that Figure 5 Each step in the above process may be implemented as multiple codes or circuits, which is not limited by the present invention. Figure 5 The method can be used in conjunction with the above exemplary embodiments or can be used alone, and the present invention is not limited thereto.
[0054] In summary, the firmware segmentation management method and memory storage system provided by the embodiments of the present invention can segment the firmware file into multiple sub-firmware files in blocks and store them in the host system. In addition, during the program running process, the required sub-firmware files are loaded from the host system to the memory storage device for running. In this way, the storage space of the memory storage device can be used more effectively and the problem of insufficient storage space of the local memory in the memory storage device can be solved at the same time.
[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A firmware partition management method, characterized in that: The invention is used to control a memory storage device and a host system, wherein the host system includes a host memory, the memory storage device includes a memory controller and a memory module, the memory controller includes a local memory, the memory module includes a plurality of storage units, and the firmware partition management method includes: Pre-set multiple functional parameters; When calling a first function corresponding to a first function parameter among the plurality of function parameters, obtaining a first block parameter corresponding to the first function parameter, and obtaining a file record parameter, wherein the file record parameter reflects a first sub-firmware file stored in the local memory; Determining whether the first block parameter is the same as the file record parameter; In response to the first block parameter being the same as the file record parameter, directly executing the first function according to the first sub-firmware file stored in the local memory; and In response to the first block parameter being different from the file record parameter, a second sub-firmware file corresponding to the first block parameter is loaded into the local memory, and the first function is executed according to the loaded second sub-firmware file.
2. The firmware partition management method according to claim 1, characterized in that: The first functional parameter and the first block parameter corresponding to the first functional parameter are recorded in the host memory.
3. The firmware partition management method according to claim 1, characterized in that: The method further comprises: After the second sub-firmware file corresponding to the first block parameter is loaded into the local memory, the file record parameter is updated according to the first block parameter to reflect that the second sub-firmware file is stored in the local memory.
4. The firmware partition management method according to claim 1, characterized in that: The method further comprises: Obtaining each of a plurality of functional expressions and a block parameter corresponding to each of the functional expressions; and The plurality of functional segments are compiled and transcoded into a plurality of sub-firmware files according to the block parameters, wherein the plurality of sub-firmware files include the first sub-firmware file and the second sub-firmware file.
5. The firmware partition management method according to claim 4, characterized in that: The step of transcoding the plurality of functional segmented compilations into the plurality of sub-firmware files according to the block parameters comprises: During compilation, the corresponding relationship between the block parameters and the functional parameters of the function linked to the block parameters is recorded in the host memory.
6. A memory storage system comprising: memory storage, including local storage; as well as A host system, comprising a processor and a host memory, wherein the host system is connected to the memory storage device. The processor is used to pre-set a plurality of functional parameters. The processor is used to obtain a first block parameter corresponding to a first functional parameter among the plurality of functional parameters when calling the first functional parameter, and obtain a file record parameter, wherein the file record parameter reflects a first sub-firmware file stored in the local memory, The processor is used to determine whether the first block parameter is the same as the file record parameter. In response to the first block parameter being the same as the file record parameter, the processor is configured to directly execute the first function according to the first sub-firmware file stored in the local memory, and In response to the first block parameter being different from the file record parameter, the processor is configured to load a second sub-firmware file corresponding to the first block parameter into the local memory, and execute the first function according to the loaded second sub-firmware file.
7. The memory storage system according to claim 6, characterized in that: The first functional parameter and the first block parameter corresponding to the first functional parameter are recorded in the host memory.
8. The memory storage system according to claim 6, characterized in that: The processor is further configured to update the file record parameter according to the first block parameter after loading the second sub-firmware file corresponding to the first block parameter into the local memory, so as to reflect that the second sub-firmware file is stored in the local memory.
9. The memory storage system according to claim 6, characterized in that: The processor is further configured to obtain each of a plurality of functional formulas and a block parameter corresponding to each of the functional formulas, and The processor is further configured to transcode the plurality of functional segments into a plurality of sub-firmware files according to the block parameters, wherein the plurality of sub-firmware files include the first sub-firmware file and the second sub-firmware file.
10. The memory storage system according to claim 9, characterized in that: The processor records the corresponding relationship between the block parameters and the functional parameters of the function linked to the block parameters in the host memory during compiling.
Citation Information
Patent Citations
Firmware segmentation management method and memory storage system
CN114625322A
Memory sub-system management of firmware block record and device block record
US20210240635A1
