A method for selectively auto-loading content with respect to non-volatile memory
By dividing the non-volatile memory into multiple regions and performing precise or fuzzy matching, the problem of multiple NVS backup in the existing technology is solved, and efficient data loading in different scenarios is achieved, reducing hardware resource waste and chip pin occupation.
Patent Information
- Application Number
- CN202411427921.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-10-14
AI Technical Summary
Existing technologies require multiple NVS backups during the data loading process of non-volatile memory to adapt to data switching in different application scenarios, resulting in wasted hardware resources and excessive chip pin usage.
The non-volatile memory is divided into multiple regions, and a storage address and data length are assigned to each region. By combining the chip's initial configuration information, precise or fuzzy matching is performed to achieve selective automatic data loading.
It improves the efficiency of data loading and reduces the consumption of hardware resources. Especially when hardware resources are scarce, it improves the efficiency and security of the chip.
Smart Images

Figure CN119336655B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of semiconductor memory, in particular to a method for selectively automatically loading content of non-volatile memory. BACKGROUND
[0002] Non-volatile storage (NVS) is used to store common information and register configuration of a chip, so that the chip can work as expected according to the loaded values in the NVS after each power-on.
[0003] At present, the common method for loading NVS of a chip is sequential loading, that is, a group of instructions is sent by the chip as a master device to access the NVS of a slave device during the power-on process of the chip, and when the slave device replies to the received request, the slave device will sequentially load from the first storage unit of the NVS according to the chip setting, load K bytes of data according to the predetermined program, and then exit the current process to complete the loading of the content of the NVS, as shown in the following table. Figure 1
[0004] However, in some application scenarios, the content of the NVS to be burned is different according to different actual needs. In this case, the storage data in the NVS needs to be changed according to the application scenario. According to the traditional scheme, multiple NVSs need to be backed up to store the data to be loaded in different application scenarios. SUMMARY
[0005] The present application relates to the technical field of semiconductor memory, in particular to a method for selectively automatically loading content of non-volatile memory.
[0006] To solve the above technical problems, the present application provides a method for selectively automatically loading content of non-volatile memory, comprising:
[0007] dividing the non-volatile memory into multiple groups of regions, assigning storage addresses to different regions respectively, and assigning loading data length to each region;
[0008] binding the initial configuration information of the chip with the regions defined by the non-volatile memory;
[0009] After the chip is powered on, the specified region is accurately matched according to the different initial configurations, the corresponding region data is jumped to according to the storage address, storage data and other information prompted in the region, and the data is loaded to realize selective loading of the data of the region.
[0010] In an embodiment, the characteristic parameters and the number of fields of the chip initialization are matched with the required characteristic parameter values and the number of fields in a region of the non-volatile memory region, so that accurate matching is realized.
[0011] In one implementation, the initial feature parameter value and number of fields of the chip are less than or greater than the number of fields of the parameter required for precise matching in the non-volatile memory. After the chip queries the precise matching area without success, it jumps to several additional groups of areas in the non-volatile memory. In the extended areas of the non-volatile memory, there are multiple extended areas that meet the requirements. The chip randomly loads any area in the non-volatile memory that meets the requirements to achieve fuzzy matching.
[0012] In one implementation, the multiple groups of regions are used to store data involving different configuration switching.
[0013] In one embodiment, each group of regions of the non-volatile memory is further equipped with a switch to determine whether the chip is allowed to load data in each region. When the initial configuration information is precisely matched with a certain region in the non-volatile memory, the use scenario of whether to load this part of the parameters is determined by controlling the switch.
[0014] This invention provides a method for selectively and automatically loading content into non-volatile memory (NVS), which differs from common NVS loading methods. In different usage scenarios, such as sequential loading, multiple NVSs need to be backed up to store different data. Due to data switching, multiple device addresses and I2C connections are required, which consume more hardware resources and waste chip resources. This invention achieves selective data loading by dividing the NVS into multiple regions and linking them with chip-related configurations, effectively improving the efficiency of chip loading data into NVS; it also reduces the occupation of chip pins, especially when the chip's hardware resources are limited. Attached Figure Description
[0015] Figure 1 This is a schematic diagram illustrating the current common method of loading chips into NVS, which is sequential loading.
[0016] Figure 2 This is a schematic diagram of selective automatic content loading in NVS provided by the present invention.
[0017] Figure 3 This is a schematic diagram of loading data for multiple sets of fuzzy matching of NVS extended regions, provided by the present invention. Detailed Implementation
[0018] The following detailed description, in conjunction with the accompanying drawings and specific embodiments, provides a method for selectively and automatically loading content into non-volatile memory according to the present invention. The advantages and features of the present invention will become clearer from the following description. It should be noted that the drawings are all in a very simplified form and use non-precise proportions, and are only used to facilitate and clarify the illustration of the embodiments of the present invention.
[0019] The application provides a method for selectively automatically loading content of a non-volatile memory, which can meet the requirement of switching a plurality of groups of data in one NVS for a plurality of application scenarios.
[0020] The method provided by the application comprises the following steps: dividing the NVS into a plurality of groups of regions: region 1, region 2,..., and region N, respectively assigning storage addresses to different regions, and respectively assigning the amount of loaded data and a loading switch to each region. Region 1 to region N are used to store data related to different configuration switching. The initial configuration information (Chip CFG) of the chip is bound to the region defined by the NVS, and after the chip is powered on, the specified region is accurately matched according to different initial configurations. According to the storage address, the stored data and other information prompted in the region, the corresponding region data is jumped to for data loading, thereby realizing selective loading of the data in the region, as shown in Figure 2 . Finally, the NVS loading process is exited, and the next process is executed.
[0021] In different use scenarios, some initial configurations of the chip can be the same, only part of the configurations are different, at this time, the differential data needs to be configured, and the storage data of the consistent part does not need to be loaded. The storage data in region 1 to region N cannot meet such application, in order to meet such application scenarios, after the chip reads the data in region 1 to region N of the NVS and still cannot accurately match the data, a plurality of regions can be expanded in region N of the NVS for processing special cases. According to different initial configurations of the chip, the chip can perform fuzzy matching with the data in the expanded region after the inquiry in region N is unsuccessful, thereby completing the loading of the data, as shown in Figure 3 . Further, the fuzzy matching can only be performed in the expanded region of the non-volatile memory, so as to increase the safety of the chip when loading the content and avoid misloading.
[0022] The accurate matching specifically comprises the following steps:
[0023] The chip initialization characteristic parameters and the number of fields are matched with the required characteristic parameter values and the number of fields in a region of the non-volatile memory, so that the accurate matching is realized.
[0024] For example, the chip initialization characteristic parameter values are a, b and c, and the number of fields is 3, at this time, the required characteristic values in a region of the non-volatile memory are a, b and c, and the number of fields is 3, so that the accurate matching is realized.
[0025] The fuzzy matching specifically comprises the following steps:
[0026] In some application scenarios, the characteristic parameter value of chip initialization and the number of fields are less than or greater than the parameter field required by the non-volatile memory accurate matching, at this time, after the chip inquires the accurate matching area without result, it will jump to the extended area, that is, the fuzzy matching area. In the extended area of the non-volatile memory, there are multiple extended areas that meet the requirements, so the chip can randomly load any area that meets the requirements in the non-volatile memory, that is, fuzzy matching.
[0027] For example: the characteristic parameter value of chip initialization is a, b, c, d, and the number of fields is 4, at this time, there is no area that meets the requirements in the non-volatile memory accurate matching area, and there are 2 areas that meet the requirements in the extended area:
[0028] Area 1: the required characteristic value is a, b, c, and the number of fields is 3, which meets the requirements;
[0029] Area 2: the required characteristic value is a, b, c, d, e, f, and the number of fields is 6, which meets the requirements;
[0030] Therefore, when the chip loads the content of the non-volatile memory extended area, it can load the data of the area 1 that is the most matched with the characteristic value and the number of fields of the chip initialization (according to the difference of characteristic value and field), that is, the fuzzy matching is realized.
[0031] The application divides multiple areas for the non-volatile memory, associates some initial configurations before the chip loads data with the divided non-volatile memory area; when the chip loads the matching area, it directly jumps to the storage data of the matching area, exits the non-volatile memory process after completing the loading, and completes the selective loading of the chip.
[0032] In addition, the data length and storage address of each area are divided in order to increase the safety of the non-volatile memory loading, the data is loaded from the specified position, and after loading a certain length of data, it is exited, avoiding continuing to load the data of other areas after loading the data of a certain area. The application also extends multiple groups of areas to meet the situation that part of the initial configurations of the chip are the same and do not need data loading. In the extended area, according to the different situations of part of the configurations of the chip being the same, fuzzy matching is performed with the data in the extended area, and the loading of data is completed.
[0033] In each area of the non-volatile memory, a switch is added to determine whether the chip is allowed to load data, and when Chip CFG accurately matches a certain area of the non-volatile memory, the switch is controlled to determine whether the use scenario of this part of parameters needs to be loaded.
[0034] Through the application, selective loading of data can be realized when using one NVS according to different application scenarios.
[0035] The above description is only the description of the preferred embodiments of the present application, and is not any limitation on the scope of the present application. Any change and modification made by the person skilled in the art according to the above disclosure is within the protection scope of the claims.
Claims
1. A method for selective automatic loading of content with respect to non-volatile memory, the method comprising: The application relates to a chip initialization method and device. The non-volatile memory is divided into multiple groups of regions, different regions are respectively assigned storage addresses, and each region is assigned a load data length; The chip initial configuration information is bound to the region of the non-volatile memory; After the chip is powered on, the specified region is accurately matched according to the initial configuration, the corresponding region data is jumped to according to the storage address and the storage data prompted in the region, the data is loaded, and selective loading of the region data is realized; The characteristic parameter and the column number of the chip initialization are matched with the characteristic parameter value and the column number required in a region of the non-volatile memory, accurate matching is realized; The characteristic parameter value and the column number of the chip initialization are less than or greater than the column number of the parameter required in the accurate matching of the non-volatile memory, after the chip inquires the accurate matching region without result, the chip is jumped to a plurality of groups of regions additionally expanded in the non-volatile memory; In the expanded region of the non-volatile memory, a plurality of expanded regions meeting the requirement are arranged, the chip randomly loads any region meeting the requirement in the non-volatile memory, and fuzzy matching is realized.
2. The method for selective auto-loading of content with respect to non-volatile memory as recited in claim 1, wherein, The multiple groups of regions are respectively used for storing data related to different configuration switching.
3. The method for selective auto-loading of content with respect to non-volatile memory as recited in claim 1, wherein, Switches for determining whether the chip is allowed to load data in each region are additionally arranged in each group of regions and the additionally expanded groups of regions in the non-volatile memory, when the initial configuration information is accurately matched with a region of the non-volatile memory, whether the parameters in the region need to be loaded is determined by controlling the switch.