Method, device, equipment and medium for reading startup data in flash memory
By reading and analyzing multiple startup data and characteristic information in the flash memory, accurate startup data information is generated, and the reliability problem during power-on initialization of the fuse memory is solved, ensuring the smooth start of the flash memory chip.
Patent Information
- Application Number
- CN202210735785.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-27
- Publication Date
- 2025-08-15
- Estimated Expiration
- 2042-06-27
AI Technical Summary
In the prior art, when the NAND flash memory is initialized on power-on, there may be a failure unit in the start data of the fuse memory, resulting in the flash memory chip being unable to start smoothly, and there is a lack of an effective reliability improvement solution.
By reading multiple startup data information and feature information from the fuse memory, performing consistency analysis, generating effective startup data information and feature information, and finally generating accurate startup data information to realize the automatic verification process.
It improves the reliability of startup data, enables the flash memory chip to start and run smoothly, realizes automatic verification of internal data, and ensures the accuracy and reliability of the acquired startup data information.
Smart Images

Figure CN114913903B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of flash memory technology, and in particular to a method, apparatus, device, and medium for reading startup data in a flash memory. Background Art
[0002] When NAND flash memory is powered on and initialized, it reads startup data such as configuration information and repair mapping tables from the internal fuse memory. After the read startup data is verified to be correct, the flash memory chip can control various actions based on this startup data. Therefore, the reliability of the startup data in the fuse memory becomes particularly important.
[0003] Fuse memory is not accessible to users, but due to reasons such as process, manufacturing technology or aging during use, the data stored in the fuse memory may contain some failed units; generally, failed units in other user-accessible memory arrays can be solved through specific configuration and repair technologies, but since the fuse memory itself is used to store these specific configuration information and startup data such as repair mapping tables, the fuse memory cannot use these specific configuration and repair technologies when reading data at power-on; if there are failed units in the startup data read by the flash memory at power-on, the flash memory chip will not be able to start and run smoothly, so how to better improve the reliability of the startup data information in the flash memory is an urgent problem to be solved.
[0004] There is currently no effective technical solution to the above problems. Summary of the Invention
[0005] The purpose of this application is to provide a method, device, equipment and medium for reading startup data in a flash memory, which can greatly improve the reliability of the startup data.
[0006] In a first aspect, the present application provides a method for reading startup data in a flash memory, the method comprising the following steps:
[0007] Reading a plurality of startup data information and a plurality of feature information from a fuse memory, wherein the fuse memory stores a plurality of startup data information and a plurality of feature information corresponding to the startup data information;
[0008] Generate valid startup data information based on the consistency of multiple startup data information, and generate valid feature information based on the consistency of multiple feature information;
[0009] The final startup data information is generated according to the valid startup data information and the valid feature information.
[0010] The present application obtains the final startup data information by performing consistency analysis on multiple startup data information and multiple feature information pre-stored in the fuse memory, so that the flash memory chip can start and run smoothly; in the process of obtaining the startup data, an automatic verification process of the startup data inside the flash memory chip is realized, further improving the reliability of the final startup data information finally obtained.
[0011] Optionally, in the method for reading startup data in the flash memory of the present application, multiple startup data information stored in the fuse memory is copied and written based on one startup data information; multiple feature information stored in the fuse memory is copied and written based on one feature information.
[0012] This application can ensure the consistency of data information by copying and writing multiple startup data information based on one startup data and copying and writing multiple feature information based on one feature information. On the one hand, it can provide a consistent data basis for generating valid data information and valid feature information. On the other hand, it can reduce the amount of data information processing when writing data.
[0013] Optionally, the method for reading startup data in a flash memory of the present application, generating valid startup data information based on the consistency of multiple startup data information, and generating valid feature information based on the consistency of multiple feature information, includes the following steps:
[0014] Valid startup data information is generated according to consistency of at least three startup data information.
[0015] The present application obtains the most accurate and effective effective startup data information by performing consistency analysis on at least three startup data, thereby further improving the reliability of the effective startup data.
[0016] Optionally, in the method for reading startup data in a flash memory of the present application, the characteristic information includes check code information, and the step of generating final startup data information according to the valid startup data information and the valid characteristic information includes:
[0017] Generate comparison feature information based on valid startup data information;
[0018] If the compared feature information is consistent with the valid feature information, the valid startup data information is regarded as the final startup data information.
[0019] Optionally, in the method for reading startup data in the flash memory of the present application, the check code information is a parity check code, a Hamming check code, or a cyclic redundancy check code.
[0020] Optionally, in the method for reading startup data in a flash memory of the present application, the characteristic information includes error correction code information, and the step of generating final startup data information according to the valid startup data information and the valid characteristic information includes:
[0021] The valid feature information is used to correct errors in the valid startup data information to generate final startup data information.
[0022] Optionally, in the method for reading startup data in the flash memory of the present application, the error correction code information is RS code, BCH code or ECC code.
[0023] In a second aspect, the present application also provides a device for reading startup data in a flash memory, where the startup data includes configuration information and / or a repair mapping table, and the device includes:
[0024] A reading module, configured to read a plurality of startup data information and a plurality of feature information from a fuse memory, wherein the fuse memory stores a plurality of startup data information and a plurality of feature information corresponding to the startup data information;
[0025] A first generating module, configured to generate valid startup data information according to the consistency of the plurality of startup data information, and to generate valid feature information according to the consistency of the plurality of feature information;
[0026] The second generating module is configured to generate final startup data information according to the valid startup data information and the valid feature information.
[0027] The device for reading startup data in the flash memory of the present application obtains final startup data information by performing consistency analysis on multiple startup data information and multiple feature information pre-stored in the fuse memory, thereby improving the reliability of the final startup data information finally obtained and enabling successful initialization of the flash memory chip.
[0028] In a third aspect, the present application also provides an electronic device comprising a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect above are executed.
[0029] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, which, when executed by a processor, runs the steps of the method provided in the first aspect above.
[0030] As can be seen from the above, the present application provides a method, device, equipment and medium for reading startup data in a flash memory, wherein the method generates effective startup data information representing accurate and effective startup data information and effective characteristic information representing accurate and effective characteristic information by reading and performing consistency analysis on multiple startup data information and multiple characteristic information pre-stored in a fuse memory, and uses the effective characteristic information and effective startup data information to verify and obtain the final startup data information, ensuring that the final startup data information is the most accurate startup data. In the process of obtaining the startup data, the automatic verification process of the startup data inside the flash memory chip is realized, thereby improving the reliability of the final startup data information finally obtained, so that the flash memory chip can start and run smoothly.
[0031] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or understood by practicing the embodiments of the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures particularly pointed out in the written description and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 A flowchart of a method for reading startup data in a flash memory provided in an embodiment of the present application.
[0033] Figure 2 This is a schematic diagram of generating final startup data information according to valid startup data information and a valid check code in an embodiment of the present application.
[0034] Figure 3 A schematic diagram of generating final startup data information based on valid startup data information and a valid error correction code provided in an embodiment of the present application.
[0035] Figure 4 A schematic diagram of generating valid startup data information according to the consistency of multiple startup data information provided in an embodiment of the present application.
[0036] Figure 5 A schematic diagram of the structure of a device for reading startup data in a flash memory provided in an embodiment of the present application.
[0037] Figure 6 A schematic diagram of the electronic device structure provided in an embodiment of the present application.
[0038] Reference numerals: 201, reading module; 202, first generating module; 203, second generating module; 61, processor; 62, memory; 63, communication bus. DETAILED DESCRIPTION
[0039] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the scope of protection of the present application.
[0040] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and should not be understood as indicating or implying relative importance.
[0041] First, please refer to Figure 1 , Figure 1 This is a flow chart of a method for reading startup data in a flash memory according to some embodiments of the present application, wherein the startup data includes configuration information and / or a repair mapping table. The method includes the following steps:
[0042] S101: reading a plurality of startup data information and a plurality of feature information from a fuse memory, wherein the fuse memory stores a plurality of startup data information and a plurality of feature information corresponding to the startup data information;
[0043] S102: Generate valid startup data information based on the consistency of multiple startup data information, and generate valid feature information based on the consistency of multiple feature information;
[0044] S103: Generate final startup data information according to the valid startup data information and the valid feature information.
[0045] Among them, in step S101, the flash memory is powered on and initialized to read the startup data information in the internal fuse memory and the characteristic information corresponding to the startup data information. The startup data information preferably includes configuration information and a repair mapping table, wherein the configuration information is used to set parameters such as action voltage, timing, internal voltage, etc. for reading, programming, erasing, etc., and the repair mapping table is used to repair failed units.
[0046] The fuse memory may store a plurality of startup data and a plurality of characteristic information corresponding to the plurality of startup data, or may store a plurality of startup data and a plurality of characteristic information corresponding to the plurality of startup data.
[0047] The characteristic information may be check code information corresponding to the startup data information, which is used to verify the startup data information; the characteristic information may also be error correction code information corresponding to the startup data information, which is used to correct the startup data information.
[0048] In step S102 , the valid startup data information represents the most accurate and effective startup data information; and the valid feature information represents accurate and effective feature information.
[0049] Step S102 generates valid startup data information based on the consistency of multiple startup data information. The valid startup data information can be generated by judging based on the overall consistency of multiple startup data information, that is, the startup data information with the largest number of completely identical overall data is regarded as the valid startup data information. The valid startup data information can also be generated based on the consistency of the data corresponding to each bit in the multiple startup data information, that is, the data corresponding to the largest number of the same bits is determined as the data of the corresponding bit of the valid startup data information. Step S102 generates valid feature information based on the consistency of multiple feature information. The valid feature information can be generated based on the overall consistency of multiple feature information, that is, the feature information with the largest number of completely identical overall data is regarded as the valid feature information. The valid feature information can also be generated based on the consistency of the data corresponding to each bit in the multiple feature information, that is, the data corresponding to the largest number of the same bits is determined as the data of the corresponding bit of the valid feature information.
[0050] Specifically, in step S103, the final startup data information is the startup data used to start the chip. In this embodiment, the final startup data information is obtained by verifying the valid feature information and the valid startup data information to ensure that the final startup data information is the most accurate startup data, further improving the reliability of the data so that the chip can start and run.
[0051] The method for reading startup data in a flash memory according to an embodiment of the present application reads and performs consistency analysis on multiple startup data information and multiple feature information pre-stored in a fuse memory, generates effective startup data information representing accurate and effective startup data information and effective feature information representing accurate and effective feature information, and uses the effective feature information and effective startup data information to verify and obtain final startup data information, ensuring that the final startup data information is the most accurate startup data. In the process of obtaining the startup data, an automatic verification process of the startup data inside the flash memory chip is realized. Without the need for verification with external data and control circuits, the reliability of the final startup data information finally obtained is greatly improved, so that the flash memory chip can start and run smoothly.
[0052] In some preferred embodiments, the plurality of startup data information stored in the fuse memory is copied and written based on one startup data information; and the plurality of characteristic information stored in the fuse memory is copied and written based on one characteristic information.
[0053] Among them, multiple startup data information are copied and written byte by byte based on one startup data information, and multiple feature information are copied and written byte by byte based on one feature information. On the one hand, this can ensure the consistency of data information and provide a consistent data basis for generating valid data information and valid feature information in step S102. On the other hand, it can reduce the amount of data information processing when writing data.
[0054] In some preferred embodiments, the step of generating valid startup data information according to the consistency of the plurality of startup data information includes: generating valid startup data information according to the consistency of at least three startup data information.
[0055] Among them, the most effective and accurate effective startup data information is obtained by analyzing the consistency of at least three startup data information. If the analysis is judged based on the consistency of two startup data information, it will be impossible to determine which of the two startup data information is correct or wrong, so it is ensured that the effective startup data information obtained by analyzing at least three or more startup data information is more accurate; the more the number of startup data information, the more accurate the effective startup data information finally obtained, but it will also increase the data storage capacity in the fuse memory and reduce the startup efficiency; therefore, in the embodiment of the present application, it is preferred to analyze and obtain the effective startup data information based on four startup data information. The fuse memory stores four startup data information, and the effective startup data information is quickly analyzed through the four startup data information, and it can also be ensured that the effective startup data information is sufficiently accurate.
[0056] In some preferred embodiments, the step of generating valid feature information based on the consistency of multiple feature information includes: generating valid feature information based on the consistency of at least three feature information.
[0057] Specifically, valid feature information is obtained by analyzing the consistency of at least three feature information, making the obtained valid feature information more accurate. Similarly, if the consistency analysis is based on two feature information, it will be impossible to determine which feature information is correct and which is incorrect. Therefore, the valid feature information obtained by using more than three feature information for consistency analysis is more accurate. In this embodiment, it is preferred to analyze based on four check code information or error correction code information as feature information. The fuse memory stores four feature information. The four check code information or error correction code information is analyzed to obtain a valid check code or valid error correction code as the valid feature information, ensuring that the obtained valid check code or valid error correction code is more accurate.
[0058] In some preferred embodiments, the step of generating valid startup data information according to the consistency of the plurality of startup data information includes:
[0059] S1021, comparing the data of each bit in each startup data information;
[0060] S1022: Consider the data with the largest proportion in each bit or the data greater than a preset number as the data of the corresponding bit of the valid data information, so as to gradually generate the valid data information.
[0061] Specifically, by comparing the data of each bit in each startup data message, the data with the largest proportion (i.e., the most occurrences) of each bit in each startup data message is used as the data of the corresponding bit in the valid startup data message, or by comparing whether the number of data of each bit is greater than a preset number to screen out the most accurate and valid data of the corresponding bit, the valid data message is generated accordingly. This makes the generated valid startup data message more representative of the startup data message and the startup data message highly reliable. The latter method of screening out the valid startup data message based on the preset number is preferred, because the former method of using the data with the largest proportion (i.e., the most occurrences) of each bit in the startup data message as the valid startup data message is unreliable. For example, if there are 9 startup data, and each bit is "0" or "1", for a bit, if "0" appears 4 times and "1" appears 5 times, then setting "1" as the data of the corresponding bit will still result in a high probability that the correct data of the bit is "0", and the result obtained is unreliable. When the latter method is used, the preset number is set to 7. That is, the data of the bit can be determined only when the number of identical data corresponding to the bit is greater than 7, thus ensuring sufficient accuracy of the data of the bit.
[0062] In some preferred embodiments, in step S103, the characteristic information includes verification code information, and the step of generating final startup data information according to the valid startup data information and the valid characteristic information includes:
[0063] S1031. Generate comparison feature information based on the valid startup data information;
[0064] S1032: If the compared characteristic information is consistent with the valid characteristic information, the valid startup data information is regarded as the final startup data information.
[0065] Specifically, the comparison feature information and the valid feature information are the same type of check code information;
[0066] Specifically, the valid startup data information generates the same type of comparison feature information according to the corresponding valid feature information;
[0067] Specifically, the valid startup data information generated based on multiple startup data information has high reliability. On this basis, the method of the embodiment of the present application uses the consistency of multiple verification code information to generate a valid verification code to verify the valid startup data information and generate the final startup data information, which can further improve the reliability of the startup data and ensure that the final startup data information corresponds to the valid verification code.
[0068] In some preferred implementations, the check code information may not be limited to a parity check code, a Hamming check code, or a cyclic redundancy check code; wherein, in the embodiment of the present application, the check code information is preferably a cyclic redundancy check code, i.e., CRC.
[0069] In some embodiments, if the compared feature information is inconsistent with the valid feature information, it is considered that the verification has failed, that is, the initialization has failed.
[0070] In some other preferred embodiments, the characteristic information includes error correction code information, and the step of generating the final startup data information according to the valid startup data information and the valid characteristic information includes:
[0071] S1031′: Correct the valid startup data information using the valid characteristic information to generate final startup data information.
[0072] Specifically, if the generated valid startup information has error bit data, the error bit of the valid startup data information is corrected according to the valid characteristic information, and the valid startup data information within the correction range is corrected to the correct valid startup data information.
[0073] Specifically, the method of the embodiment of the present application uses consistency analysis of multiple error correction code information to generate an effective error correction code to correct the valid startup data information that has errors, and generates the final startup data information. Compared with the above-mentioned use of a check code to verify whether the valid startup data information is the final startup data information, the effective feature information generated based on the error correction code information is used to correct the effective startup data information, correct the effective startup data information within the correction range, and obtain the final startup data information. This method targets the error bit data in the valid startup data information, and can correct the effective startup data information that has error bits back to normal, thereby improving the startup success rate.
[0074] In some preferred embodiments, the error correction code information may be, but is not limited to, RS code, BCH code, or ECC code;
[0075] In this embodiment of the present application, the error correction code information is preferably an ECC code.
[0076] In some embodiments, if the valid startup data information has too many errors that exceed the correction range of the error correction code information and cannot be corrected, it is considered a verification failure, that is, initialization failure.
[0077] Below, this application will provide specific examples to illustrate the technical solutions of this application:
[0078] Please refer to Figure 2 Taking the CRC check code as characteristic information as an example, the original startup data information is D0-DN, and the characteristic information corresponding to the startup data information D0-DN is CRC1. The fuse memory stores four copies of D0-DN and four copies of CRC1 (that is, four startup data information and four characteristic information). The method of the embodiment of the present application includes the following steps:
[0079] There are 4 copies of D0-DN and 4 copies of CRC1 stored in the fuse memory;
[0080] Obtain valid startup data information V0-VN based on the consistency analysis of the four copies of D0-DN, and obtain valid feature information CRC1' based on the consistency analysis of the four copies of CRC1;
[0081] Write V0-VN into the latch, and obtain CRC2 based on V0-VN analysis, and write it into the latch;
[0082] Compare CRC2 with CRC1' to see if they are consistent. If they are, V0-VN is regarded as the final startup data information, and the chip is started based on V0-VN in the latch.
[0083] Please refer to Figure 3 Taking the ECC error correction code as characteristic information as an example, the original startup data information is D0-DN, and the characteristic information corresponding to the startup data information D0-DN is ECC1-ECCm. The fuse memory stores four copies of D0-DN and four copies of ECC1-ECCm (that is, four startup data information and four characteristic information). The method of the embodiment of the present application includes the following steps:
[0084] The fuse memory stores 4 copies of D0-DN and 4 copies of ECC1-ECCm;
[0085] Obtain valid startup data information V0-VN based on consistency analysis of the four copies D0-DN, obtain valid feature information VE1-VEm based on consistency analysis of the four copies ECC1-ECCm, and write V0-VN and VE1-VEm into the latch;
[0086] Perform ECC decoding on V0-VN and VE1-VEm, use VE1-VEm to correct V0-VN, if the correction is successful, V0-VN will be regarded as the final startup data information, and the chip will be started based on V0-VN in the latch. To more clearly explain the process of obtaining V0-VN based on the consistency analysis of 4 copies of D0-DN, please refer to Figure 4The figure shows the process of analyzing 4 copies of D0 to obtain V0. Assuming D0 is 55 in hexadecimal, then bits 7 to 0 of D0 are 01010101. Compare each bit in each D0, and if the number of "0" or "1" in each bit of the 4 D0s is greater than 2, it is considered as the data of the corresponding bit of V0. Figure 4 The first D0 (i.e., D0 in the first row) has bit7~bit0 of 00010100, the second row D0 has bit7~bit0 of 01010101, the third D0 has bit7~bit0 of 01000101, and the fourth D0 has bit7~bit0 of 01010101. Comparing the bits in the four D0s, the data on bit7 are all "0", and the number of "0"s is greater than the preset number 2. Therefore, the corresponding valid startup data information bit7 is "0". The number of "1"s on bit6 is 3, which is greater than the preset number 2. Therefore, it is considered that the corresponding valid startup data information bit6 is "1". And so on, the valid startup data information V0 is obtained. V0 is 01010101.
[0087] Second, please refer to Figure 5 , Figure 5 1 is a schematic diagram of a structure of a device for reading startup data in a flash memory according to an embodiment of the present application. The startup data includes configuration information and / or a repair mapping table. The device includes:
[0088] The reading module 201 is used to read a plurality of startup data information and a plurality of feature information from the fuse memory, wherein the fuse memory stores a plurality of startup data information and a plurality of feature information corresponding to the startup data information;
[0089] A first generating module 202 is configured to generate valid startup data information based on the consistency of multiple startup data information, and to generate valid feature information based on the consistency of multiple feature information;
[0090] The second generating module 203 is configured to generate final startup data information according to the valid startup data information and the valid feature information.
[0091] The device for reading startup data in a flash memory proposed in an embodiment of the present application obtains final startup data information by performing consistency analysis on multiple startup data information and multiple feature information pre-stored in a fuse memory. In addition, in the process of obtaining the startup data, an automatic verification process of the startup data inside the flash memory chip is implemented, thereby further improving the reliability of the final startup data information finally obtained, so that the flash memory chip can start and run smoothly.
[0092] Specifically, the reading module 201 first reads multiple startup data information and multiple feature information, and then the first generating module 202 obtains valid startup data information based on the consistency of the multiple startup data information, and obtains valid feature information based on the multiple feature information, and finally the second generating module 203 obtains the final startup data information based on the valid startup data information and the valid feature information.
[0093] In some preferred embodiments, the device for reading startup data in a flash memory provided in the second aspect is preferably used to execute the method for reading startup data in a flash memory provided in the first aspect.
[0094] Thirdly, refer to Figure 6 , Figure 6 The electronic device provided by the present application is shown, including: a processor 61 and a memory 62. The processor 61 and the memory 62 are interconnected and communicate with each other via a communication bus 63 and / or other forms of connection mechanisms (not shown). The memory 62 stores a computer program executable by the processor 61. When the electronic device is running, the processor 61 executes the computer program to execute any optional implementation method of the above-mentioned embodiments to achieve the following functions: reading multiple startup data information and multiple feature information from a fuse memory, wherein the fuse memory stores multiple startup data information and multiple feature information corresponding to the startup data information; generating valid startup data information based on the consistency of the multiple startup data information, and generating valid feature information based on the consistency of the multiple feature information; and generating final startup data information based on the valid startup data information and the valid feature information.
[0095] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by the processor 61, the method in any optional implementation of the above-mentioned embodiment is executed to achieve the following functions: reading multiple startup data information and multiple feature information from a fuse memory, wherein the fuse memory stores multiple startup data information and multiple feature information corresponding to the startup data information; generating valid startup data information based on the consistency of the multiple startup data information, and generating valid feature information based on the consistency of the multiple feature information; generating final startup data information based on the valid startup data information and the valid feature information.
[0096] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, the indirect coupling or communication connection of the device or unit can be electrical, mechanical or other forms.
[0097] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0098] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.
[0099] 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 actual relationship or order between these entities or operations.
[0100] The above are merely examples of the present application and are not intended to limit the scope of protection of the present application. Those skilled in the art will appreciate that various modifications and variations are possible. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for reading startup data in a flash memory, wherein the startup data includes configuration information and / or a repair mapping table, characterized in that: The following steps are involved: Reading a plurality of startup data information and a plurality of feature information from a fuse memory, wherein the fuse memory stores the plurality of startup data information and the plurality of feature information corresponding to the startup data information; generating valid startup data information according to the consistency of the plurality of startup data information, and generating valid feature information according to the consistency of the plurality of feature information; generating final startup data information according to the valid startup data information and the valid feature information; The plurality of startup data information stored in the fuse memory is copied and written based on one startup data information; The plurality of characteristic information stored in the fuse memory is written by copying based on one characteristic information.
2. The method for reading startup data in a flash memory according to claim 1, wherein: The step of generating valid startup data information according to the consistency of the plurality of startup data information comprises: The valid startup data information is generated according to consistency of at least three of the startup data information.
3. The method for reading startup data in a flash memory according to claim 1, wherein: The characteristic information includes verification code information, and the step of generating final startup data information according to the valid startup data information and the valid characteristic information includes: generating comparison feature information based on the valid startup data information; If the compared characteristic information is consistent with the valid characteristic information, the valid startup data information is regarded as the final startup data information.
4. The method for reading startup data in a flash memory according to claim 3, wherein: The check code information is a parity check code, a Hamming check code or a cyclic redundancy check code.
5. The method for reading startup data in a flash memory according to claim 1, wherein: The characteristic information includes error correction code information, and the step of generating final startup data information according to the valid startup data information and the valid characteristic information includes: The valid startup data information is error corrected using the valid characteristic information to generate the final startup data information.
6. The method for reading startup data in a flash memory according to claim 5, wherein: The error correction code information is RS code, BCH code or ECC code.
7. A device for reading startup data in a flash memory, wherein the startup data includes configuration information and / or a repair mapping table, characterized in that: include: a reading module, configured to read a plurality of startup data information and a plurality of feature information from a fuse memory, wherein the fuse memory stores a plurality of the startup data information and a plurality of the feature information corresponding to the startup data information; A first generating module, configured to generate valid startup data information according to the consistency of the plurality of startup data information, and to generate valid feature information according to the consistency of the plurality of feature information; The second generating module is configured to generate final startup data information according to the valid startup data information and the valid feature information.
8. An electronic device, characterized in that: The invention comprises a processor (61) and a memory (62), wherein the memory (62) stores computer-readable instructions, and when the computer-readable instructions are executed by the processor (61), the steps in the method according to any one of claims 1 to 6 are executed.
9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor (61), the computer program executes the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Nand flash memory and method and device for reading configuration information of Nand flash memory
CN103794253A
Processing method and device of chip configuration information
CN107329746A
Reading of start-up information from different memory regions of a memory system
US20180107413A1