Hardware protection of files in integrated circuit devices

By using hardware memory protection modules in integrated circuit devices to control access to memory areas, the problem of file protection being difficult to implement in on-chip systems with limited resources is solved, and more robust file protection is achieved to prevent unauthorized access and modification. .

CN112567349BActive Publication Date: 2024-09-13NORDIC SEMICONDUCTOR
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201980052202.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-06-27
Filing Date
2019-06-26
Publication Date
2024-09-13
Estimated Expiration
2039-06-26

AI Technical Summary

Technical Problem

Existing technologies are difficult to effectively protect files from unauthorized writing and reading on integrated circuit devices, especially in system-on-chips with limited resources, where software protection measures are vulnerable and unreliable.

Method used

The hardware memory protection module is used to create public storage areas in the memory by configuring access conditions, store metadata and content data of files, and control access to these areas at the hardware level to deny unauthorized write and read requests.

Benefits of technology

It provides a more robust file protection mechanism than software protection. Through hardware-level access control, it improves file security, prevents unauthorized modification and access, and enhances the protection of sensitive data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112567349B_ABST
    Figure CN112567349B_ABST
Patent Text Reader

Abstract

A method for file protection is performed on an integrated circuit device (100) including a hardware memory protection module (112) that controls access to a memory region (114) according to region-specific settings. A new file is created in memory by storing metadata (204, 214, 222, 226, 232) and content data (206, 216, 218, 224, 228, 234) for the new file in a common memory region (310). Access conditions are set for the common memory region in a configuration setting of the hardware memory protection module (320). Files are searched from memory (510) by searching the memory to identify files that meet the search criteria. The search includes comparing metadata of files from the memory with the search criteria (520) to identify files from the memory that meet the search criteria (540).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to hardware protection of files in integrated circuit devices. Background Art

[0002] Computing devices sometimes need to store files that should not be overwritten or modified by unauthorized parties. Such files may include, for example, configuration settings, boot sector files, operating system files, encryption keys, etc. Preventing unauthorized writes to specific files can avoid accidental or malicious destruction of the data stored in these files.

[0003] In addition to write protection, read access to certain files is sometimes restricted. A computing device may store sensitive or confidential files in memory that cannot be read without authorization. This may include, for example, data containing trade secrets; or files containing private keys or passwords.

[0004] Typically, files are organized in a file system (such as FAT or ext*), which uses an index table, a directory table, and / or an index node to store metadata about each file in the file system. Metadata can include, for example, the file name, file size, creation date, last modification date, access permissions, and file type. Access permission data can include whether a file is read-only or hidden. The file type can, for example, specify whether a file is a text file or an executable file. Files are sometimes grouped in directories, which can have one or more subdirectories.

[0005] Some computers protect files through software techniques such as encryption. Attempting to protect files through software measures alone is not particularly secure and is vulnerable to hacker attacks and software bugs. Additionally, cryptographic techniques can help detect changes to files, but cannot be easily used to prevent changes to files.

[0006] Providing a hardware mechanism for protecting files is generally considered to be more secure than software techniques. Although hardware protection of file systems is known on complex devices such as personal computers and servers, applicants have recognized that known solutions are not always applicable to relatively simple integrated circuit devices, such as system-on-chip (SoC) devices, where circuit complexity, storage space, and processing resources are often limited.

[0007] Accordingly, the present invention seeks to provide a novel hardware mechanism suitable for protecting files on an integrated circuit device. Summary of the invention

[0008] From a first aspect, the present invention provides a method for file protection performed on an integrated circuit device, the integrated circuit device comprising:

[0009] processor;

[0010] Memory;

[0011] a hardware memory protection module configured to control access to a plurality of regions of the memory according to respective region-specific configuration settings; and

[0012] a bus system, the processor and the hardware memory protection module being connected to the bus system;

[0013] Wherein, the method comprises:

[0014] creating a new file in the memory by: storing metadata for the new file and content data for the new file in a common memory area of ​​the plurality of memory areas;

[0015] setting access conditions to the common memory area in a configuration setting of the hardware memory protection module;

[0016] and

[0017] Files are retrieved from the memory by searching the memory to identify files that satisfy search criteria, the searching comprising reading metadata for a collection of one or more files from the memory and comparing the metadata to the search criteria to identify files from the collection that satisfy the search criteria.

[0018] According to a second aspect, the present invention provides an integrated circuit device, the integrated circuit device comprising:

[0019] processor;

[0020] Memory;

[0021] a hardware memory protection module configured to control access to a plurality of regions of the memory according to respective region-specific configuration settings; and

[0022] a bus system, the processor and the hardware memory protection module being connected to the bus system;

[0023] in:

[0024] The memory stores file creation software which, when executed on the processor, causes the processor to perform:

[0025] Creating a new file in the memory by storing metadata for the new file and content data for the new file in a common memory area of ​​the plurality of memory areas; and

[0026] setting access conditions to the common memory area in a configuration setting of the hardware memory protection module;

[0027] and

[0028] The memory stores file search software which, when executed on the processor, causes the processor to search the memory to identify files that meet search criteria by reading metadata for a collection of one or more files from the memory and comparing the metadata to the search criteria to identify files from the collection that meet the search criteria.

[0029] According to a third aspect, the present invention provides an integrated circuit device, the integrated circuit device comprising:

[0030] processor;

[0031] Memory;

[0032] a hardware memory protection module configured to control access to a plurality of regions of the memory according to respective region-specific configuration settings; and

[0033] a bus system, the processor and the hardware memory protection module being connected to the bus system;

[0034] in:

[0035] the memory stores files including metadata and content data, wherein the metadata and the content data are stored in a common memory area, and wherein the configuration settings specify access conditions to the common memory area; and

[0036] The memory stores file search software which, when executed on the processor, causes the processor to search the memory to identify files that meet search criteria by reading metadata for a collection of one or more files from the memory and comparing the metadata to the search criteria to identify files from the collection that meet the search criteria.

[0037] Thus, it will be seen that, according to the present invention, both the metadata of a file and the content data of the file are stored in a common memory area that can be protected by hardware. The protection is implemented by a hardware memory protection module that can be configured to deny subsequent, unauthorized, write and / or read access to the file by setting appropriate access conditions on the memory area containing the file.

[0038] The public memory area can comprise the metadata and all content data of file, or file can comprise the additional content data stored in one or more other memory areas of multiple memory areas, for example, content data and additional content data are stored in a continuous address range, and this address range crosses one or more boundaries between memory areas.The file searched can be a new file, or the file of other storage.Can store multiple files (for example, two, ten, one hundred or more files) in memory respectively, each file comprises metadata and content data separately.Multiple files can be stored in the same public memory area, or they can be stored in one or more different memory areas.In one group of preferred embodiments, the first file is stored in the first memory area, and the second file is stored in the second memory area, and the second memory area is different from the first memory area and can be protected independently of the first memory area.For each file, at least some content data of file are preferably stored in the public memory area together with the metadata of file.

[0039] The content data of a file preferably follows the metadata of the file. The content data may occupy a memory address adjacent to the metadata, e.g., the next memory address after the end of the metadata. In this way, it is not necessary to store a pointer to the content data in memory; the content data of a file may be located simply by locating the metadata and then reading the file from the memory address a predetermined distance (e.g., the next memory address) from the end (or start) of the metadata.

[0040] Paired files may be adjacent, or files may be spaced apart. Files may sometimes contain empty content data (e.g., all zero bytes), random data, or discarded data. Files may include an end marker value indicating the end of content data, or content data areas may be defined by metadata.

[0041] Files are retrieved by searching for metadata located in the same memory area as the content data. In this way, hardware protection of files in a file system is achieved by avoiding the complexity of having to protect a directory containing file metadata for multiple files, which is stored separately from the data content of the files.

[0042] By providing protection at the hardware level, the protection provided can be more robust than software-only protection mechanisms because third parties are less likely to have the knowledge, means, and equipment to circumvent the hardware protection module.

[0043] The hardware protection module can be configured to control access to each memory area as a whole. For example, the configuration setting can specify that all write access to the first area of ​​memory is denied (i.e., only access conditions that grant read access) or that read access to the second memory area is denied unless the processor (or another bus host) is in a secure state. Each memory area can include a range of continuous memory addresses, i.e., each memory area can be a continuous block of memory. The memory area can be defined by a starting address and an ending address, or by a starting or ending address and a length. The starting address and / or the ending address and / or the length value can be hardwired, or can be configurable (e.g., specified in the configuration setting).

[0044] In some embodiments, the processor is configured to send a memory access request received (e.g., intercepted) by the hardware memory protection module on the bus system. Other bus masters (such as peripheral devices or other processors) may also send a memory access request received by the hardware memory protection module.

[0045] The hardware memory protection module can be configured to control access to multiple regions of memory through corresponding region-specific configuration settings:

[0046] receiving, via the bus system, a memory access request to an address in a memory area of ​​the plurality of memory areas;

[0047] If the memory access request satisfies the access conditions to the memory region specified by the configuration settings, granting access to the address; and

[0048] If the memory access request does not satisfy the access conditions for the memory region, access to the address is denied.

[0049] The memory access request may be a read request, or a write request, or an instruction fetch request. The configuration setting may specify access conditions for the memory region, which depends on the type of memory access request (e.g., read or write or instruction fetch) and / or on the source of the memory access request (e.g., a processor or another bus host) and / or on the security state of the device (e.g., the security state of the processor or the security state of the bus transaction). The access conditions may depend on one or more other factors, such as the current time, or whether the processor is in kernel mode or user mode. In some cases, the access conditions for the memory region may grant all access rights without restriction. It may even be possible that the access conditions to the memory region may deny all access, although this is usually only done within a time limit, otherwise the region will be unavailable. Different memory regions may have different access conditions. The access conditions may be relatively complex, for example, when the processor is in an unsafe state, read access is allowed, but write access is denied, and when the processor is in a safe state, read access and write access are allowed.

[0050] The access conditions may be encoded in the configuration settings in any suitable manner. In some embodiments, the configuration settings may be or may include an access control list. Each entry in the access control list may be associated with a corresponding memory region and may define access conditions for the region. The regions may be predefined (e.g., hardwired), or each entry may define its corresponding region (e.g., by encoding a start address and an end address for the region).

[0051] In some embodiments, metadata includes file names. The search criteria may specify the file names of the files being searched, or include the file names of the files being searched, or otherwise be related to the file names of the files being searched. In some embodiments, metadata may include a timestamp, for example, indicating the date or time a file was created or edited. A timestamp or time range may be used for searching. In some embodiments, metadata may include file types. The search criteria may specify file types. Metadata other than the examples listed herein may also be stored and / or included in the search criteria.

[0052] The metadata of each file is preferably unique. The file name of each file can be unique.

[0053] In the event that multiple files satisfy the search criteria, searching the memory to identify the file that satisfies the search criteria may include: identifying one file that satisfies the search criteria (e.g., the file at the lowest address value), or may include identifying two or more (e.g., all) of the multiple files that satisfy the search criteria. In some embodiments, the search ends immediately after identifying one file that satisfies the search criteria (i.e., the second or other files are not searched). Thus, for example, in one embodiment, the metadata searched is the file name, and any other file with the same file name as the file found in the search will not appear in the search results; it is effectively invisible. In some embodiments, the search for files in the protected memory area may always be performed in the same order.

[0054] The search may include reading data from memory addresses in the memory that are spaced apart from a starting address value to an ending address value that is higher than the starting address value. The intervals may be regular intervals, such as every byte or every memory bus width, so that the entire memory is read between the starting address and the ending address. Alternatively, the intervals may be irregular intervals, such as using a file length value in metadata to skip content data for each file. The starting address may be fixed. It may define a first end of the memory. The ending address may be fixed or variable. It may be fixed and define a second end of the memory. It may be variable, such as so that once a matching file is identified, the reading stops.

[0055] The memory of the integrated circuit device can store, for example, a kernel image of an operating system developed by an IC device manufacturer. The memory can store a user image, for example, software created by a customer of the manufacturer. Files (including metadata and content data) created by the kernel image can be stored in a first memory area. Files created by a user image can be stored in a second memory area different from the first memory area. The first memory area can have stricter access conditions than the second memory area. "Stricter" in this article means that if the hardware memory protection module addresses the second memory area, there is at least one type of memory access request, and the hardware memory protection module will grant the access, but if the hardware memory protection module addresses the first memory area, the access is denied. For example, the second memory area can have unrestricted access, while the first memory area can be accessed only by a bus master in a secure state. In this way, the present solution can protect the core operating system files from modification while allowing user files to be read, overwritten, edited or deleted.

[0056] In addition to protecting searchable files, the hardware memory protection module can also be used to protect static data (such as executable code) that is not stored in the file. For example, the kernel image itself can be stored in one or more memory area storages with strict access conditions. The user image can be stored in one or more memory area storages that may have less strict access conditions. In particular, the boot sector of the firmware or operating system executed by the processor can be stored in the memory area with strict access conditions. In this way, the need for boot sector integrity check when starting the integrated circuit device can be avoided because the boot sector is protected by hardware.

[0057] Configuration settings may be stored in the memory or otherwise stored elsewhere on the device (e.g., in ROM). The memory may include configuration registers, each of which may be configured to define access conditions for a corresponding memory region. The configuration settings themselves may be located in one or more memory regions with relatively strict access conditions. Configuration settings may only be written when the processor is in a secure state. In this way, settings cannot be changed maliciously or unintentionally by unauthorized code. Entering a secure state may require an authentication process.

[0058] One or more files containing encrypted data (eg, encryption key data) may be protected.

[0059] The hardware memory protection module can use the Arm TM Trustzone TM The hardware memory protection module can be configured to determine whether a memory access request is made by a device in a secure state (e.g., Arm TM The bus system may communicate security status information, for example by using a bus that communicates a security status flag. The bus system may be an Arm TM AMBA bus system. The bus system can support Arm TM Trustzone TM , used to signal a safe state.

[0060] The memory may store software for writing configuration settings. The software may be a firmware module or a driver. The application code may be able to set access conditions in the configuration settings by generating a system call to the software. Alternatively, the application code may be able to write directly to the hardware registers of the hardware memory protection module.

[0061] In one preferred embodiment, setting access conditions for the common memory area includes configuring the hardware memory protection module to deny at least some memory access requests to the common memory area. The access conditions may cause the hardware memory protection module to deny some or all write requests to access the memory area. In some such embodiments, at least some read requests may be granted. In this way, the file in the storage area may be write-protected after it is created, thereby limiting future unauthorized changes to the file.

[0062] The hardware protected memory module may include a bus sniffer module for monitoring memory access requests sent via the bus system. The bus sniffer module may determine information about the memory access request, such as one or more of the following: request type (e.g., read, write, extract); identity of the bus master generating the request; security state information; and / or target address. The hardware memory protection module may then use this information to determine whether the memory access request satisfies access conditions for the memory region addressed by the request.

[0063] In some embodiments, each file and its corresponding metadata are written only once. In other embodiments, the address in the content data of the file can be written multiple times.

[0064] In some embodiments, the memory region may be set to be permanently read-only (at least until the next device reset). This may be accomplished by configuring the hardware memory protection module to prevent modification after an access condition is set that specifies read-only access to the memory region.

[0065] The memory may be volatile (eg, SRAM) or non-volatile (eg, flash memory), or may include a combination of the two. At least some of the memory regions may be independently erasable non-volatile memory pages, such as corresponding flash memory blocks.

[0066] In one set of embodiments, upon device reset, a set of configuration registers (which may be in non-volatile memory) are used to write configuration settings (which may be in volatile memory), for example, by copying values ​​from configuration registers stored in non-volatile memory to access control lists stored in volatile memory. This can improve the performance of hardware memory protection modules, especially where volatile memory (e.g., RAM) has a faster read speed than volatile memory. The writes can be controlled by bootloader code executed by the processor. Based on the contents of the configuration registers, the processor can be released from reset only after the configuration settings (e.g., access control lists) have been written.

[0067] The file creation software and / or file retrieval software may be part of a firmware module. They may be accessible via an API (application programming interface) to an application module stored in the memory of the device. Alternatively, they may be software routines within the application code, or any other software unit on the device. In some embodiments, the file retrieval software may be executed at an increased security level; this may allow it to read memory areas that may restrict access to non-secure code. The file retrieval software may return the address of the identified file to the calling function. The calling function may be executed at a lower security level than the file retrieval software.

[0068] Features of any aspect or embodiment of the invention as described herein may be applied where appropriate to any other aspect or embodiment described herein.Where reference is made to different embodiments or groups of embodiments, it should be understood that these are not necessarily different but may overlap. BRIEF DESCRIPTION OF THE DRAWINGS

[0069] Certain embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which:

[0070] Figure 1 An integrated circuit system-on-chip device according to an embodiment of the present invention is shown.

[0071] Figure 2 Memory modules within an integrated circuit device according to an embodiment of the present invention are shown.

[0072] Figure 3 is a flowchart illustrating a method of storing a file according to an embodiment of the present invention.

[0073] Figure 4 is a flowchart illustrating a method of memory access according to an embodiment of the present invention; and

[0074] Figure 5 is a flowchart illustrating a method of searching for files according to an embodiment of the present invention. DETAILED DESCRIPTION

[0075] Figure 1 An integrated circuit system-on-chip device 100 is shown that includes components for hardware protection of files according to an embodiment of the present invention. The device 100 may be a digital radio-on-chip device.

[0076] The device 100 includes a plurality of processors 102-106. In other embodiments, a single processor may be used. The device 100 also includes a flash memory 114. The flash memory 114 may inherently include a plurality of different memory regions, such as separate flash memory pages. The flash memory 114 may store a set of configuration registers 116 in the flash memory 114 that contain corresponding access conditions to the different memory regions. These memory regions may correspond to flash memory pages, or they may be independent of the flash memory pages (e.g., defined by a start address and an end address).

[0077] The device 100 also has a further memory 118. The further memory 118 may be volatile or non-volatile. A set of peripheral devices 120 is included in the device 100 in a known manner.

[0078] Arm TM AMBA TM (Advanced Microcontroller Bus Architecture) is an open interface protocol for embedded system-on-chip applications. Device 100 has an AMBA implementation. TM Standardized bus system.

[0079] The bus system includes a bus matrix 110 that connects the processors 102 - 106 with a hardware protection module 112 , another memory 118 , and peripheral devices 120 .

[0080] It is worth noting that the bus system is not directly connected to the flash memory 114, but is connected to the flash memory 114 via the hardware memory protection module 112. The hardware memory protection module 112 intercepts a memory access request to the flash memory 114, determines whether the access request is for a memory area whose access is restricted by an access condition, and grants or denies access to the memory area according to whether the access request satisfies the relevant access condition.

[0081] Figure 2 The structure of the memory area of ​​the flash memory 114 at a specific moment in time is shown in FIG. Figure 2 Shown in.

[0082] Figure 2 The memory 114 in FIG. 1 is shown as comprising N memory regions. In this embodiment, the memory regions are individually erasable flash memory pages.

[0083] Memory page #1 202 contains content data 206 of a file (labeled as file #1) and metadata 204 of the file.

[0084] Memory page #2 210 contains metadata 214 for file #2 and a portion 216 of the content data for file #2. Memory page #3 212 contains the remainder 218 of the content data for file #2.

[0085] Memory page #4 220 contains metadata 222 of file #3 and content data 224 of file #3. Memory page #4 220 also contains metadata 226 of file #4 and content data 228 of file #4.

[0086] Additional memory pages up to memory page #N 230 may contain metadata for the file and content data for the file, as described above with respect to memory pages #1-#4.

[0087] For example, each memory page may contain:

[0088] (i) metadata and content data for a single file, as shown in memory page #1 202; or

[0089] (ii) metadata for a single file and only some of its content data, as shown in memory page #2 210. The remaining content data may be stored in one or more other memory pages (see memory page #3 212) adjacent to the memory page (i.e., in this example, adjacent to memory page #2 210); or

[0090] (iii) Metadata and content data of multiple files, as shown in memory page #4 220.

[0091] Each memory page does not necessarily need to be completely filled, as shown in memory page #3 212 .

[0092] At any moment in time, the content data of a particular file may be filled with information, or may be empty (eg, contain null or invalid data), or may be partially filled with information. The metadata may define the size of the content data area.

[0093] Metadata encodes the file name of the file. It can also encode the length of the file and other information such as the creation date or file type.

[0094] The device 100 is configured to Figure 3 and Figure 4 The method shown in the flowchart uses the memory 114 to protect files.

[0095] Figure 3 The file creation software at step 310 is shown, which causes the metadata and content data of the file to be stored in a continuous memory area (e.g., such as Figure 2 The configuration registers of the hardware memory protection module 112 are then updated in step 320 to protect the memory region by restricting access to the memory region as needed (eg, denying all future write accesses to the memory region).

[0096] Figure 4 How file protection is then implemented is shown. First, a request to access a file is made at step 410. The request may originate from within application software executing on processor 102. It may be received by file retrieval software written by a chip manufacturer executing on processor 102. The request to open a file causes the file retrieval software to search to find the memory location of the file. This is described in more detail below.

[0097] Once the file has been located by the file retrieval software, the address of the file is passed to the application software and attempts are made to access the file, such as reading from or writing to the file. This causes the processor 102 operating in the security state of the application software to issue a bus request to the memory address in the file.

[0098] At step 420, the hardware memory protection module 112 intercepts the bus request and determines whether it addresses a memory region protected by access conditions. It can make this determination with the aid of an access control list stored in volatile hardware registers of the hardware memory protection module 112; these registers can be populated from flash configuration registers at boot time. The access control list contains the access conditions for all protected memory regions.

[0099] In some embodiments, the hardware memory protection module 112 may use the Arm TM Trustzone TM Security techniques determine whether a memory access request satisfies access conditions, for example, by checking the security status of a bus request.

[0100] At step 430, if the bus request does not satisfy the access conditions for the memory region, the flow moves to step 440, where the memory access request is denied. The denial may simply be a no response to the bus transaction, or may result in a reset of the device 100. Also at step 430, if the access conditions are satisfied, the flow moves to step 450, where the memory access request is granted.

[0101] The file index is not used to search for and locate files. Instead, in the present scheme, metadata and at least some content data for a particular file are stored in a single protectable area, and files are located by scanning memory 114, thereby reading metadata from successive files until the searched file is identified.

[0102] Figure 5 A flow chart showing steps for searching for files that have been hardware protected in accordance with the principles of the present invention is shown.

[0103] The file search begins at step 510. The search is performed by file retrieval software. In this example, the search criteria is the file name. This may be received as a search parameter by the file retrieval software from the user software on the device.

[0104] At step 520, the file retrieval software reads the address in memory 114 to identify file metadata. It locates the file name of the first file stored in the first memory area. In other embodiments, other metadata may be checked and compared. At step 530, if the file name of the first file does not match the file name of the file being searched, the process returns to step 520, where the software routine scans the memory to locate a subsequent file and checks the file name of the second file in a similar manner. If there are no other files, the process will time out and return an indication that the file was not found. The software routine continues to check the file names of files in this sequential manner until, at step 540, a file whose file name matches the file name of the file being searched is found. It returns a pointer to the file.

[0105] It will be appreciated by those skilled in the art that the present invention has been illustrated by describing one or more specific embodiments thereof and is not limited to these embodiments; many variations and modifications are possible within the scope of the appended claims.

Claims

1. A method for file protection performed on an integrated circuit device, the integrated circuit device comprising: processor; Non-volatile memory; a hardware memory protection module configured to control access to a plurality of regions of the non-volatile memory according to configuration settings specific to respective regions; as well as a bus system, the processor and the hardware memory protection module being connected to the bus system; Wherein, the method comprises: creating a first new file in the non-volatile memory by storing metadata for the first new file and content data for the first new file in a first common memory area of ​​the plurality of memory areas; creating a second new file in the nonvolatile memory by storing metadata for the second new file and content data for the second new file in a second common memory area of ​​the plurality of memory areas, wherein the second common memory area is different from the first common memory area; setting corresponding access conditions to the first public memory area and the second public memory area in the configuration settings of the hardware memory protection module; and Files are retrieved from the non-volatile memory by searching the non-volatile memory to identify files that satisfy search criteria, the searching comprising reading metadata for a collection of one or more files from the non-volatile memory and comparing the metadata to the search criteria to identify files from the collection that satisfy the search criteria.

2. The method according to claim 1, wherein: The content data of the first new file occupies memory addresses adjacent to the metadata of the corresponding new file.

3. The method according to claim 1 or 2, wherein: The first new file includes additional content data stored in one or more other memory areas of the plurality of memory areas.

4. The method according to claim 1 or 2, comprising: The hardware memory protection module controls access to the plurality of regions by the following steps: receiving, via the bus system, a memory access request to an address in a memory area of ​​the plurality of memory areas; determining whether the memory access request satisfies an access condition to the memory region specified by the configuration setting; If the memory access request satisfies the access condition to the memory region, granting access to the address; and If the memory access request does not satisfy the access condition to the memory region, access to the address is denied.

5. The method according to claim 1 or 2, wherein: The metadata includes one or more of: a file name, a timestamp, and a file type; and The search criteria specifies one or more of: file name, timestamp, and file type.

6. The method according to claim 1 or 2, wherein: The memory stores a plurality of files, each file including corresponding metadata and content data, wherein the metadata of each file includes a corresponding file name unique to the corresponding file.

7. The method according to claim 1 or 2, wherein: The hardware memory protection module is configured to read region-specific configuration settings from a volatile memory of the integrated circuit device, the method further comprising: upon resetting the device, writing the configuration settings to the volatile memory based on data stored in a set of configuration registers in the non-volatile memory of the device; and The processor can be released from reset only after the configuration settings are written to the volatile memory.

8. An integrated circuit device comprising: processor; Non-volatile memory; a hardware memory protection module configured to control access to a plurality of regions of the memory according to configuration settings specific to respective regions; as well as a bus system, the processor and the hardware memory protection module being connected to the bus system; The memory stores file creation software, and when the file creation software is executed on the processor, the processor executes: creating a first new file in the memory by storing metadata for the first new file and content data for the first new file in a first common memory area of ​​the plurality of memory areas; creating a second new file in the memory by storing metadata for the second new file and content data for the second new file in a second common memory area of ​​the plurality of memory areas, wherein the second common memory area is different from the first common memory area; and setting corresponding access conditions to the first public memory area and the second public memory area in the configuration settings of the hardware memory protection module, And wherein the memory stores file retrieval software which, when executed on the processor, causes the processor to search the memory to identify files that meet the search criteria by reading the metadata of a collection of one or more files from the memory and comparing the metadata with the search criteria to identify files from the collection that meet the search criteria.

9. An integrated circuit device comprising: processor; Non-volatile memory; a hardware memory protection module configured to control access to a plurality of regions of the non-volatile memory according to configuration settings specific to respective regions; as well as a bus system, the processor and the hardware memory protection module being connected to the bus system; in: the non-volatile memory storing a plurality of files, each file including corresponding metadata and content data, wherein the metadata and the content data of a first file of the plurality of files are stored in a first common memory area of ​​the plurality of memory areas, the metadata and the content data of a second file of the plurality of files are stored in a second common memory area of ​​the plurality of memory areas, wherein the second common memory area is different from the first common memory area, and the configuration settings specify corresponding access conditions to the first common memory area and the second common memory area; and The memory stores file retrieval software which, when executed on the processor, causes the processor to search the memory to identify files that satisfy a search criterion by reading the metadata of a collection of one or more files from the memory and comparing the metadata to the search criterion to identify files from the collection that satisfy the search criterion.

10. The integrated circuit device according to claim 8 or 9, wherein: The content data of the first new file or stored file occupies memory addresses adjacent to the metadata of the first new file or stored file.

11. The integrated circuit device according to claim 8 or 9, wherein: Each memory region of the plurality of memory regions is a corresponding independently erasable nonvolatile memory page.

12. The integrated circuit device according to claim 8 or 9, wherein: The hardware memory protection module is configured to control access to the plurality of regions by: receiving, via the bus system, a memory access request to an address in a memory area of ​​the plurality of memory areas; determining whether the memory access request satisfies an access condition to the memory region specified by the configuration setting; If the memory access request satisfies the access condition to the memory region, granting access to the address; and If the memory access request does not satisfy the access condition to the memory region, access to the address is denied.

13. The integrated circuit device according to claim 12, wherein: The hardware memory protection module is configured to determine whether a type of the memory access request satisfies an access condition to the memory region, wherein the type of the memory access request is one of a read request, a write request, or an instruction fetch.

14. The integrated circuit device according to claim 8 or 9, wherein: The file retrieval software, when executed on the processor, causes the processor to search the memory to identify files that meet the search criteria by reading one or more of a file name, a timestamp, and a file type from corresponding metadata of a collection of one or more files in the memory and comparing each corresponding file name, timestamp, or file type to one or more of a file name, timestamp, and file type specified by the search criteria.