WO2016176126A1 - Secure access in a microcontroller system - Google Patents
Secure access in a microcontroller system Download PDFInfo
- Publication number
- WO2016176126A1 WO2016176126A1 PCT/US2016/029033 US2016029033W WO2016176126A1 WO 2016176126 A1 WO2016176126 A1 WO 2016176126A1 US 2016029033 W US2016029033 W US 2016029033W WO 2016176126 A1 WO2016176126 A1 WO 2016176126A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- secure
- cpu
- access
- system bus
- microcontroller
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/82—Protecting input, output or interconnection devices
- G06F21/85—Protecting input, output or interconnection devices interconnection devices, e.g. bus-connected or in-line devices
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/50—Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
- G06F21/57—Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
- G06F21/575—Secure boot
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/70—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
- G06F21/71—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information
- G06F21/74—Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer to assure secure computing or processing of information operating in dual or compartmented mode, i.e. at least one secure mode
Definitions
- This disclosure relates to secure information processing.
- microcontroller systems When designing products with microcontroller systems it may be desirable to program code into secure memory so that a customer can execute the code but not copy or modify the code. Additionally, it may be desirable to partition an application into secure and non-secure domains, where the secure domain allows critical information (e.g., cryptographic keys) to be processed by code stored in secure memory with full system access, while the nonsecure domain does not have access to the secure memory.
- This split domain architecture improves security robustness by preventing software errors from accidentally leaking information from the secure domain into the non-secure domain.
- Microcontroller systems with split domain architectures are designed with a single central processing unit (CPU) that is designed to operate in secure and non-secure modes to ensure a safe transition between secure and non-secure operations.
- CPU central processing unit
- a microcontroller system comprises a system bus and a secure central processing unit (CPU) coupled to the system bus.
- the secure CPU is configured to provide secure access to the system bus.
- a non-secure CPU is also coupled to the system bus and is configured to provide non-secure access to the system bus.
- a non-secure memory is coupled to the system bus and is configured to allow the secure CPU and the non-secure CPU to exchange data and communicate with each other.
- a peripheral access controller (PAC) is coupled to the system bus and configured to enable secure access to a peripheral by the secure CPU while disabling non-secure access to the peripheral based upon a non-secure state of the non-secure CPU.
- a method comprises: detecting, by a microcontroller system, a system event; and responsive to the system event: configuring a first CPU of the microcontroller system to operate in secure mode, where secure mode allows secure access to a system bus of the microcontroller system and execution of secure code on the first CPU; configuring a second CPU to operate in non-secure mode, where non-secure mode allows nonsecure access to the system bus and to execute non-secure code on the second CPU; configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory; and configuring a peripheral access controller (PAC) coupled to the system bus to allow secure communication between the PAC and a peripheral coupled to the PAC.
- PAC peripheral access controller
- a non-transitory, computer-readable storage medium has instructions stored thereon, which, when executed by two or more central processing units of a microcontroller system, causes the two or more central processing units of the microcontroller system to perform operations comprising: detecting a system event; and responsive to the system event: configuring a first CPU to operate in secure mode, where secure mode allows secure access to a system bus of the microcontroller system and to execute secure code on the first CPU; configuring a second CPU to operate in non-secure mode, where nonsecure mode allows non-secure access to the system bus and to execute non-secure code on the second CPU; configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory; and configuring a peripheral access controller (PAC) coupled to the system bus, the PAC allowing secure communication between the PAC and a peripheral coupled to the PAC.
- PAC peripheral access controller
- FIG. 1 is a conceptual block diagram of a microcontroller system with secure information processing extensions, according to some implementations.
- FIG. 2 is a flow diagram of an example process performed by a microcontroller system with secure information processing extensions, according to some implementations.
- FIG. 1 is a conceptual block diagram of a microcontroller system 100 with secure information processing extensions, according to some implementations.
- Microcontroller system 100 can include debug master module 101, central processing unit (CPU) 102, CPU 103, direct memory access (DMA) controller 104, memory 106 (e.g., Flash), 107 (e.g., RAM), slave controller 108, bridges 109, 113, slave modules 110, 111 and peripheral access controller (PAC) 114.
- the masters and slave modules 110, 111, 112 and PAC 114 are coupled directly or indirectly (e.g., through bridges 109, 113) to system bus 115 (e.g., a bus matrix).
- the system bus is configurable to route secure access requests from secure CPU 102.
- the secure access request can be associated with a signal indicating the request was initiated by secure CPU 102.
- slave module 110 is a cryptographic slave module for implementing an Integrity Check Monitor (ICM) capable of executing cryptographic hash algorithms
- slave module 111 is a cryptographic slave module for implementing an Advanced Encryption Standard (AES) algorithm.
- slave modules 110, 111 receive secure signals 122a, 122b from PAC 114. When secure signals 122a, 122b are high (or low), only secure bus accesses are permitted.
- slave modules 110, 111 can include software wrapper layers for receiving secure signals 122a, 122b.
- Microcontroller system 100 can include other master modules 105 and other slave modules 112 in addition to, or in place of, the master and slave modules shown in FIG. 1.
- Other slave modules 112, if configured as secure slave modules, can be configured to receive secure signals from PAC 114 to allow only secure bus accesses.
- FIG. 1 includes a Legend that associates block fill patterns with secure (forward slash fill pattern) and optionally secure (backward slash fill pattern) master and slave modules in microcontroller system 100.
- the Legend also shows that blocks with a cross hatch fill partem indicate fuses 119a-l 19d (e.g., write protected pseudo fuses).
- fuses 119a-119d can be real fuses latched in memory (e.g., memory 106) at system reset or pseudo fuses read from memory (e.g., non-volatile memory) and latched in a memory controller (not shown) at system reset.
- Microcontroller system 100 can be extended to include additional CPUs, where each additional CPU can be configured to be secure or non-secure and each secure CPU can share the same secure memory resources.
- CPU 102 can be configured as a secure CPU and CPU 103 can be configured as a non-secure CPU.
- Secure CPU 102 runs secure code and provides secure access to system bus 115
- non-secure CPU 103 runs non-secure code and provides non-secure access to system bus 115.
- the security configuration can be static (e.g., hardwired in the design) or programmable by pseudo fuses 119a (FV; FlashVault Enable), 119b (FVDE; FlashVault Debug Enable), 119c (FVFLSZ; FlashVault Flash Size) and 119d (FVRAMSZ; FlashVault RAM Size) (e.g., write protected pseudo fuses).
- the pseudo fuses can be loaded at system reset to configure microcontroller system 100 before any client application code executes.
- secure CPU 102 can configure itself (e.g., by means of internal control register 116) to temporarily provide non-secure access to system bus 115. This can improve robustness if non-secure and secure code need to execute on the same CPU. Secure bus accesses can be disabled before executing the non-secure code, then re-enabled when executing further secure code. This prevents software errors in the non-secure code from accidently reading data from secure memory.
- Slave modules 110, 111, 112 in microcontroller system 100 can be accessed by secure CPU 102 or non-secure CPU 103.
- secure access can be centralized in microcontroller system 100 by PAC 114, which can be configured to distribute one or more signals to each slave module or peripheral of system 100 to command each slave module or peripheral to only accept secure accesses provided by secure CPU 102.
- the one or more signals can be switched on by one or more bits being written to control register 117 in PAC 114.
- Control register 117 can be written by a secure access provided by secure CPU 102. Control register 117 enables secure CPU 102 to enable secure access to critical peripherals for as long as needed and disable secure access when the secure operation is complete, thus allowing the peripheral to be controlled by non-secure CPU 103.
- secure CPU 102 can be secure by setting fuse FV.
- Secure CPU 102 can optionally switch off secure bus access by setting one or more bits in control register 116, which can be external or internal to secure CPU 102 (shown as internal to secure CPU 102 in FIG. 1). Secure CPU 102 can be controlled and debugged by bus mapped control registers (not shown). When FV is set, the bus mapped control registers can be modified by secure access provided by secure CPU 102. In some implementations, secure CPU 102 can boot from boot code 118 stored in a secure portion of non-volatile (NV) memory 106 (e.g., Flash memory). The upper portions of NVM 106 and volatile memory 107 (e.g., RAM) can be reserved for secure operations.
- NV non-volatile
- NVM 106 FVFLSZ
- FVRAMSZ RAM 107
- DMA 104 DMA 104
- PAC 114 includes control register 117 where a user can write a peripheral identifier indicating which peripheral to target for access and a KEY value to enable or disable secure access to the peripheral.
- the KEY value can be written/programmed by secure CPU 102 as a secure write operation.
- Control register 117 can also be used to write protect the peripheral using different KEY values, which can be written to control register 117 by non-secure access.
- debug master module 101 is controlled by an external debugger (external to microcontroller system 100) and grants access to internal resources for programming and debugging.
- debug master module 101 can be non-secure and can provide non-secure access to non-secure memory and peripherals.
- debug master module 101 can be made temporarily secure by setting the FVDE fuse. When FVDE is set, debug master module 101 is secure and can access all memories and peripherals in microcontroller system 100, including control registers in secure CPU 102 and PAC 114.
- a user can erase the FVDE fuse before deploying the application to the end customer to ensure that the external debugger cannot read out secure memories in a customer application.
- SEC 120 is a security fuse which, when programmed, disables all external debug access. SEC 120 can only be restored by a full chip erase command, which erases all memory contents.
- SWD 121 is a Serial Wire Debug interface for communicating with the external debugger over a serial bus.
- FIG. 2 is a flow diagram of an example process 200 of performed by a microcontroller system with secure information processing extensions, according to one implementation.
- Process 200 can be implemented in, for example, microcontroller system 100 described in reference to FIG. 1.
- process 200 can begin by detecting, by the microcontroller system, start of a system reset sequence (202). Responsive to the system event, process 200 can continue by configuring a first CPU of the microcontroller system to operate in secure mode that allows secure access to a system bus of the microcontroller system and to run secure code on the first CPU (204).
- the system event can be a system reset and a fuse bit can be set at system reset that configures the first CPU to operate in secure mode.
- Process 200 can continue by configuring a second CPU to operate in non-secure mode that allows non-secure access to the system bus and to run non-secure code on the second CPU (206).
- Process 200 can continue by configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory (208).
- non-secure shared memory For example memory coupled to the system bus can be divided into secure and non-secure portions and the secure CPU and non-secure CPU can exchange data and communicate using the portion of non-secure shared memory.
- Process 200 can continue by configuring a peripheral access controller (PAC) coupled to the system bus to allow secure communication between the PAC and one or more peripherals coupled to the PAC (210).
- a peripheral access controller PAC
- the PAC can be coupled directly or indirectly (e.g., through bridge 113 in FIG. 1) to the system bus and distributes one or more signals to each peripheral to command the peripheral to only allow secure accesses.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Debugging And Monitoring (AREA)
- Storage Device Security (AREA)
Abstract
Systems, methods and computer-readable mediums are disclosed for providing secure access in a microcontroller system. In some implementations, a microcontroller system comprises a system bus and a secure central processing unit (CPU) coupled to the system bus. The secure CPU is configured to provide secure access to the system bus. A non-secure CPU is also coupled to the system bus and is configured to provide non-secure access to the system bus. A non-secure memory is coupled to the system bus and is configured to allow the secure CPU and the non-secure CPU to exchange data and communicate with each other. A peripheral access controller (PAC) is coupled to the system bus and configured to enable secure access to a peripheral by the secure CPU while disabling non-secure access to the peripheral based upon a non-secure state of the non-secure CPU.
Description
SECURE ACCESS IN A MICROCONTROLLER SYSTEM
TECHNICAL FIELD
[0001] This disclosure relates to secure information processing.
BACKGROUND
[0002] When designing products with microcontroller systems it may be desirable to program code into secure memory so that a customer can execute the code but not copy or modify the code. Additionally, it may be desirable to partition an application into secure and non-secure domains, where the secure domain allows critical information (e.g., cryptographic keys) to be processed by code stored in secure memory with full system access, while the nonsecure domain does not have access to the secure memory. This split domain architecture improves security robustness by preventing software errors from accidentally leaking information from the secure domain into the non-secure domain. Microcontroller systems with split domain architectures are designed with a single central processing unit (CPU) that is designed to operate in secure and non-secure modes to ensure a safe transition between secure and non-secure operations.
SUMMARY
[0003] Systems, methods and computer-readable mediums are disclosed for providing secure access in a microcontroller system. In some implementations, a microcontroller system comprises a system bus and a secure central processing unit (CPU) coupled to the system bus. The secure CPU is configured to provide secure access to the system bus. A non-secure CPU is also coupled to the system bus and is configured to provide non-secure access to the system bus. A non-secure memory is coupled to the system bus and is configured to allow the secure CPU and the non-secure CPU to exchange data and communicate with each other. A peripheral access controller (PAC) is coupled to the system bus and configured to enable secure access to a peripheral by the secure CPU while disabling non-secure access to the peripheral based upon a non-secure state of the non-secure CPU.
[0004] In some implementations, a method comprises: detecting, by a microcontroller system, a system event; and responsive to the system event: configuring a first CPU of the microcontroller system to operate in secure mode, where secure mode allows secure access to a system bus of the microcontroller system and execution of secure code on the first CPU; configuring a second CPU to operate in non-secure mode, where non-secure mode allows nonsecure access to the system bus and to execute non-secure code on the second CPU; configuring
the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory; and configuring a peripheral access controller (PAC) coupled to the system bus to allow secure communication between the PAC and a peripheral coupled to the PAC.
[0005] In some implementations, a non-transitory, computer-readable storage medium has instructions stored thereon, which, when executed by two or more central processing units of a microcontroller system, causes the two or more central processing units of the microcontroller system to perform operations comprising: detecting a system event; and responsive to the system event: configuring a first CPU to operate in secure mode, where secure mode allows secure access to a system bus of the microcontroller system and to execute secure code on the first CPU; configuring a second CPU to operate in non-secure mode, where nonsecure mode allows non-secure access to the system bus and to execute non-secure code on the second CPU; configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory; and configuring a peripheral access controller (PAC) coupled to the system bus, the PAC allowing secure communication between the PAC and a peripheral coupled to the PAC.
BRIEF DESCRIPTION OF THE DRAWINGS
[0006] FIG. 1 is a conceptual block diagram of a microcontroller system with secure information processing extensions, according to some implementations.
[0007] FIG. 2 is a flow diagram of an example process performed by a microcontroller system with secure information processing extensions, according to some implementations.
DETAILED DESCRIPTION
Example System Architecture
[0008] FIG. 1 is a conceptual block diagram of a microcontroller system 100 with secure information processing extensions, according to some implementations. Microcontroller system 100 can include debug master module 101, central processing unit (CPU) 102, CPU 103, direct memory access (DMA) controller 104, memory 106 (e.g., Flash), 107 (e.g., RAM), slave controller 108, bridges 109, 113, slave modules 110, 111 and peripheral access controller (PAC) 114. The masters and slave modules 110, 111, 112 and PAC 114 are coupled directly or indirectly (e.g., through bridges 109, 113) to system bus 115 (e.g., a bus matrix). The system bus is configurable to route secure access requests from secure CPU 102. In some
implementations, the secure access request can be associated with a signal indicating the request was initiated by secure CPU 102. In some implementations, slave module 110 is a cryptographic slave module for implementing an Integrity Check Monitor (ICM) capable of executing cryptographic hash algorithms, and slave module 111 is a cryptographic slave module for implementing an Advanced Encryption Standard (AES) algorithm. In some implementations, slave modules 110, 111 receive secure signals 122a, 122b from PAC 114. When secure signals 122a, 122b are high (or low), only secure bus accesses are permitted. In some implementations, slave modules 110, 111 can include software wrapper layers for receiving secure signals 122a, 122b. Microcontroller system 100 can include other master modules 105 and other slave modules 112 in addition to, or in place of, the master and slave modules shown in FIG. 1. Other slave modules 112, if configured as secure slave modules, can be configured to receive secure signals from PAC 114 to allow only secure bus accesses.
[0009] To assist the reader, FIG. 1 includes a Legend that associates block fill patterns with secure (forward slash fill pattern) and optionally secure (backward slash fill pattern) master and slave modules in microcontroller system 100. The Legend also shows that blocks with a cross hatch fill partem indicate fuses 119a-l 19d (e.g., write protected pseudo fuses). In some implementations, fuses 119a-119d can be real fuses latched in memory (e.g., memory 106) at system reset or pseudo fuses read from memory (e.g., non-volatile memory) and latched in a memory controller (not shown) at system reset. Microcontroller system 100 can be extended to include additional CPUs, where each additional CPU can be configured to be secure or non-secure and each secure CPU can share the same secure memory resources.
[0010] In response to a system event (e.g., a system reset), CPU 102 can be configured as a secure CPU and CPU 103 can be configured as a non-secure CPU. Secure CPU 102 runs secure code and provides secure access to system bus 115, while non-secure CPU 103 runs non-secure code and provides non-secure access to system bus 115. The security configuration can be static (e.g., hardwired in the design) or programmable by pseudo fuses 119a (FV; FlashVault Enable), 119b (FVDE; FlashVault Debug Enable), 119c (FVFLSZ; FlashVault Flash Size) and 119d (FVRAMSZ; FlashVault RAM Size) (e.g., write protected pseudo fuses). The pseudo fuses can be loaded at system reset to configure microcontroller system 100 before any client application code executes.
[0011] The security configuration described above allows secure code to execute on secure CPU 102, while data exchange and communication between secure CPU 102 and nonsecure CPU 103 takes place in non-secure portions of memories 106, 107. In some implementations, secure CPU 102 can configure itself (e.g., by means of internal control
register 116) to temporarily provide non-secure access to system bus 115. This can improve robustness if non-secure and secure code need to execute on the same CPU. Secure bus accesses can be disabled before executing the non-secure code, then re-enabled when executing further secure code. This prevents software errors in the non-secure code from accidently reading data from secure memory.
[0012] Slave modules 110, 111, 112 (e.g., peripherals) in microcontroller system 100 can be accessed by secure CPU 102 or non-secure CPU 103. When secure software depends on secure interaction with a peripheral (e.g., cryptographic modules 110, 111), access to the peripheral should be limited to secure access. In some implementations, secure access can be centralized in microcontroller system 100 by PAC 114, which can be configured to distribute one or more signals to each slave module or peripheral of system 100 to command each slave module or peripheral to only accept secure accesses provided by secure CPU 102. The one or more signals can be switched on by one or more bits being written to control register 117 in PAC 114. Control register 117 can be written by a secure access provided by secure CPU 102. Control register 117 enables secure CPU 102 to enable secure access to critical peripherals for as long as needed and disable secure access when the secure operation is complete, thus allowing the peripheral to be controlled by non-secure CPU 103.
[0013] In some implementations, secure CPU 102 can be secure by setting fuse FV.
Secure CPU 102 can optionally switch off secure bus access by setting one or more bits in control register 116, which can be external or internal to secure CPU 102 (shown as internal to secure CPU 102 in FIG. 1). Secure CPU 102 can be controlled and debugged by bus mapped control registers (not shown). When FV is set, the bus mapped control registers can be modified by secure access provided by secure CPU 102. In some implementations, secure CPU 102 can boot from boot code 118 stored in a secure portion of non-volatile (NV) memory 106 (e.g., Flash memory). The upper portions of NVM 106 and volatile memory 107 (e.g., RAM) can be reserved for secure operations. These secure portions of memory can be set up by size fuses FVFLSZ (NVM 106) and FVRAMSZ (RAM 107). The NVM and RAM controllers (e.g., DMA 104) will provide secure access to the secure memory regions and secure or nonsecure access to non-secure memory regions.
[0014] In some implementations, PAC 114 includes control register 117 where a user can write a peripheral identifier indicating which peripheral to target for access and a KEY value to enable or disable secure access to the peripheral. The KEY value can be written/programmed by secure CPU 102 as a secure write operation. Control register 117 can
also be used to write protect the peripheral using different KEY values, which can be written to control register 117 by non-secure access.
[0015] In some implementations, debug master module 101 is controlled by an external debugger (external to microcontroller system 100) and grants access to internal resources for programming and debugging. By default, debug master module 101 can be non-secure and can provide non-secure access to non-secure memory and peripherals. To aid development of secure code, debug master module 101 can be made temporarily secure by setting the FVDE fuse. When FVDE is set, debug master module 101 is secure and can access all memories and peripherals in microcontroller system 100, including control registers in secure CPU 102 and PAC 114. In some implementations, a user can erase the FVDE fuse before deploying the application to the end customer to ensure that the external debugger cannot read out secure memories in a customer application. In the example shown, SEC 120 is a security fuse which, when programmed, disables all external debug access. SEC 120 can only be restored by a full chip erase command, which erases all memory contents. SWD 121 is a Serial Wire Debug interface for communicating with the external debugger over a serial bus.
Example Process
[0016] FIG. 2 is a flow diagram of an example process 200 of performed by a microcontroller system with secure information processing extensions, according to one implementation. Process 200 can be implemented in, for example, microcontroller system 100 described in reference to FIG. 1.
[0017] In some implementations, process 200 can begin by detecting, by the microcontroller system, start of a system reset sequence (202). Responsive to the system event, process 200 can continue by configuring a first CPU of the microcontroller system to operate in secure mode that allows secure access to a system bus of the microcontroller system and to run secure code on the first CPU (204). For example, the system event can be a system reset and a fuse bit can be set at system reset that configures the first CPU to operate in secure mode.
[0018] Process 200 can continue by configuring a second CPU to operate in non-secure mode that allows non-secure access to the system bus and to run non-secure code on the second CPU (206).
[0019] Process 200 can continue by configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory (208). For example memory coupled to the system bus can be divided into secure and non-secure portions
and the secure CPU and non-secure CPU can exchange data and communicate using the portion of non-secure shared memory.
[0020] Process 200 can continue by configuring a peripheral access controller (PAC) coupled to the system bus to allow secure communication between the PAC and one or more peripherals coupled to the PAC (210). For example, the PAC can be coupled directly or indirectly (e.g., through bridge 113 in FIG. 1) to the system bus and distributes one or more signals to each peripheral to command the peripheral to only allow secure accesses.
[0021] When process 200 ends the system reset sequence (212), the CPU can execute its first instruction (214).
[0022] While this document contains many specific implementation details, these should not be construed as limitations on the scope of what may be claimed but rather as descriptions of features that may be specific to particular embodiments. Certain features that are described in this specification in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable sub combination. Moreover, although features may be described above as acting in certain combinations and even initially claimed as such, one or more features from a claimed combination can, in some cases, be excised from the combination, and the claimed combination may be directed to a sub combination or variation of a sub combination.
Claims
1. A microcontroller system comprising:
a system bus;
a secure central processing unit (CPU) coupled to the system bus, the secure CPU configured to provide secure access to the system bus;
a non-secure CPU coupled to the system bus, the non-secure CPU configured to provide non-secure access to the system bus;
non-secure memory coupled to the system bus, the non-secure memory configured to allow the secure CPU and the non-secure CPU to exchange data and communicate with each other; and
a peripheral access controller (PAC) coupled to the system bus, the PAC configured to enable secure access to a peripheral by the secure CPU while disabling non-secure access to the peripheral based upon a non-secure state of the non-secure CPU.
2. The microcontroller system of claim 1, further comprising:
a secure control register included in the PAC, the secure control register programmable by the secure CPU to enable secure access for a secure operation and to disable secure access when the secure operation is complete.
3. The microcontroller system of claim 2, where the secure control register is configured during a secure write operation by the secure CPU to receive a peripheral identifier for targeting the peripheral for access and a key value, the key value enabling secure access to the peripheral by the secure CPU.
4. The microcontroller system of claim 1, where the secure CPU is configured to be secure and the non-secure CPU is configured to be non-secure at system reset.
5. The microcontroller system of claim 4, where configuration of the secure CPU and the non-secure CPU is programmable by pseudo fuses.
6. The microcontroller system of claim 5, where the pseudo fuses are loaded in nonvolatile memory at system reset.
7. The microcontroller system of claim 1, further comprising a configuration register included in the secure CPU, the configuration register programmable to temporarily provide non-secure bus access to the secure CPU.
8. The microcontroller system of claim 1, further comprising:
a debug master module coupled to the system bus, the debug master module programmable to be temporarily secure to allow access by the debug master module to secure and non-secure memory, registers or peripherals of the microcontroller system.
9. The microcontroller system of claim 1, where a portion of memory of the microcontroller system is configured to be secure at system reset.
10. The microcontroller system of claim 1, where the system bus is a bus matrix configurable to route secure access requests from the secure CPU using one or more bits of an opcode or memory address.
11. A method comprising:
detecting, by a microcontroller system, a system event; and
responsive to the system event:
configuring a first CPU of the microcontroller system to operate in secure mode, where secure mode allows secure access to a system bus of the microcontroller system and execution of secure code on the first CPU;
configuring a second CPU to operate in non-secure mode, where nonsecure mode allows non-secure access to the system bus and to execute non-secure code on the second CPU;
configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory; and
configuring a peripheral access controller (PAC) coupled to the system bus to allow secure communication between the PAC and a peripheral coupled to the PAC.
12. The method of claim 11, further comprising:
configuring a debug master module of the microcontroller system to execute secure code and access secure memory, registers or peripherals of the microcontroller system.
13. The method of claim 11, where configuring the first CPU to operate in secure mode further comprises setting a pseudo fuse.
14. The method of claim 11, further comprising:
configuring the first CPU to set one or more control bits in a control register that is internal or extemal to the first CPU to enable secure access to the system bus by the first CPU.
15. The method of claim 11, further comprising
booting the first CPU during a reset of the microcontroller system using boot code stored in secure non-volatile memory.
16. A non-transitory, computer-readable storage medium having instructions stored thereon, which, when executed by two or more central processing units of a microcontroller system, causes the two or more central processing units of the microcontroller system to perform operations comprising:
detecting a system event; and
responsive to the system event:
configuring a first CPU to operate in secure mode, where secure mode allows secure access to a system bus of the microcontroller system and to execute secure code on the first CPU;
configuring a second CPU to operate in non-secure mode, where nonsecure mode allows non-secure access to the system bus and to execute nonsecure code on the second CPU;
configuring the first CPU and the second CPU to exchange data and communicate with each other using non-secure shared memory; and
configuring a peripheral access controller (PAC) coupled to the system bus, the PAC allowing secure communication between the PAC and a peripheral coupled to the PAC.
17. The non-transitory, computer-readable storage medium of claim 16, where the operations further comprise:
configuring a debug master module in the microcontroller system to execute secure code and access secure memory, registers or peripherals of the microcontroller system.
18. The non-transitory, computer-readable storage medium of claim 16, where configuring the first CPU to operate in secure mode further comprises setting a pseudo fuse.
19. The non-transitory, computer-readable storage medium of claim 16, where the operations further comprise:
configuring the first CPU to set one or more control bits in a control register that is internal or extemal to the first CPU to enable secure access to the system bus by the first CPU.
20. The non-transitory, computer-readable storage medium of claim 16, where the operations further comprise:
booting the first CPU during a reset of the microcontroller system using boot code stored in secure non-volatile memory.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201680024292.XA CN107533610A (en) | 2015-04-28 | 2016-04-22 | Secure access in micro controller system |
| DE112016001972.6T DE112016001972T5 (en) | 2015-04-28 | 2016-04-22 | Secure access in a microcontroller system |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US14/698,330 | 2015-04-28 | ||
| US14/698,330 US9715601B2 (en) | 2015-04-28 | 2015-04-28 | Secure access in a microcontroller system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2016176126A1 true WO2016176126A1 (en) | 2016-11-03 |
Family
ID=55913722
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2016/029033 Ceased WO2016176126A1 (en) | 2015-04-28 | 2016-04-22 | Secure access in a microcontroller system |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US9715601B2 (en) |
| CN (1) | CN107533610A (en) |
| DE (1) | DE112016001972T5 (en) |
| WO (1) | WO2016176126A1 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10296741B2 (en) | 2017-07-27 | 2019-05-21 | International Business Machines Corporation | Secure memory implementation for secure execution of virtual machines |
| US10387686B2 (en) | 2017-07-27 | 2019-08-20 | International Business Machines Corporation | Hardware based isolation for secure execution of virtual machines |
Families Citing this family (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB201806465D0 (en) | 2018-04-20 | 2018-06-06 | Nordic Semiconductor Asa | Memory-access controll |
| GB201810653D0 (en) | 2018-06-28 | 2018-08-15 | Nordic Semiconductor Asa | Secure peripheral interconnect |
| GB201810662D0 (en) * | 2018-06-28 | 2018-08-15 | Nordic Semiconductor Asa | Peripheral Access On A Secure-Aware Bus System |
| JP7379888B2 (en) * | 2019-07-08 | 2023-11-15 | オムロン株式会社 | Control system and control method |
| US11132470B2 (en) * | 2019-11-07 | 2021-09-28 | Micron Technology, Inc. | Semiconductor device with secure access key and associated methods and systems |
| US11182308B2 (en) | 2019-11-07 | 2021-11-23 | Micron Technology, Inc. | Semiconductor device with secure access key and associated methods and systems |
| US11494522B2 (en) | 2019-11-07 | 2022-11-08 | Micron Technology, Inc. | Semiconductor device with self-lock security and associated methods and systems |
| US11030124B2 (en) | 2019-11-07 | 2021-06-08 | Micron Technology, Inc. | Semiconductor device with secure access key and associated methods and systems |
| EP3929784A1 (en) * | 2020-06-23 | 2021-12-29 | Siemens Aktiengesellschaft | Boot device for a computer element and method for booting a computer element |
| US12253960B2 (en) * | 2020-07-28 | 2025-03-18 | Mediatek Inc. | Method and system for improving the efficiency of protecting a multi-content process |
| US11921655B2 (en) * | 2021-05-04 | 2024-03-05 | Stmicroelectronics, Inc. | Dynamic memory protection device system and method |
| CN113806805A (en) * | 2021-09-18 | 2021-12-17 | 国家石油天然气管网集团有限公司 | Safety data exchange method |
| US20250094563A1 (en) * | 2023-09-20 | 2025-03-20 | Apple Inc. | Secure Exclaves |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060059285A1 (en) * | 2004-09-15 | 2006-03-16 | Fischer Stephen A | System and method for deadlock free bus protection of resources during search execution |
| US20110161645A1 (en) * | 2009-12-28 | 2011-06-30 | General Instrument Corporation | Content securing system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7277972B2 (en) * | 2002-03-08 | 2007-10-02 | Freescale Semiconductor, Inc. | Data processing system with peripheral access protection and method therefor |
| US7152193B2 (en) * | 2002-08-13 | 2006-12-19 | Lsi Logic Corporation | Embedded sequence checking |
| US20060227376A1 (en) * | 2005-03-29 | 2006-10-12 | Kabushiki Kaisha Toshiba | Secure image data system and method |
| US8051467B2 (en) | 2008-08-26 | 2011-11-01 | Atmel Corporation | Secure information processing |
| CN101604252A (en) * | 2009-07-10 | 2009-12-16 | 深圳华为通信技术有限公司 | Multicomputer system and multicomputer system startup method |
-
2015
- 2015-04-28 US US14/698,330 patent/US9715601B2/en active Active
-
2016
- 2016-04-22 CN CN201680024292.XA patent/CN107533610A/en active Pending
- 2016-04-22 DE DE112016001972.6T patent/DE112016001972T5/en active Pending
- 2016-04-22 WO PCT/US2016/029033 patent/WO2016176126A1/en not_active Ceased
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20060059285A1 (en) * | 2004-09-15 | 2006-03-16 | Fischer Stephen A | System and method for deadlock free bus protection of resources during search execution |
| US20110161645A1 (en) * | 2009-12-28 | 2011-06-30 | General Instrument Corporation | Content securing system |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10296741B2 (en) | 2017-07-27 | 2019-05-21 | International Business Machines Corporation | Secure memory implementation for secure execution of virtual machines |
| US10387686B2 (en) | 2017-07-27 | 2019-08-20 | International Business Machines Corporation | Hardware based isolation for secure execution of virtual machines |
| US10474816B2 (en) | 2017-07-27 | 2019-11-12 | International Business Machines Corporation | Secure memory implementation for secure execution of Virtual Machines |
| US10831889B2 (en) | 2017-07-27 | 2020-11-10 | International Business Machines Corporation | Secure memory implementation for secure execution of virtual machines |
Also Published As
| Publication number | Publication date |
|---|---|
| US9715601B2 (en) | 2017-07-25 |
| US20160321472A1 (en) | 2016-11-03 |
| CN107533610A (en) | 2018-01-02 |
| DE112016001972T5 (en) | 2018-01-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9715601B2 (en) | Secure access in a microcontroller system | |
| US11615035B2 (en) | Storage system and method for performing and authenticating write-protection thereof | |
| US10324864B2 (en) | Storage system and method for performing and authenticating write-protection thereof | |
| CN100371906C (en) | Method and apparatus for determining access permissions | |
| KR102432451B1 (en) | Semiconductor device and method for operating semiconductor device | |
| JP6433198B2 (en) | System and method for secure boot ROM patch | |
| JP6306578B2 (en) | Memory protection device and protection method | |
| US10354073B2 (en) | Information processor device verifying software and method of controlling information processor device | |
| US8239663B2 (en) | System and method for maintaining the security of memory contents and computer architecture employing the same | |
| JP5911835B2 (en) | Information processing device | |
| US11055237B2 (en) | Method of access to a memory | |
| US10352998B2 (en) | Multi-processor core device with MBIST | |
| CN113557500A (en) | Multimode protected memory | |
| EP2637124B1 (en) | Method for implementing security of non-volatile memory | |
| CN102043648A (en) | Multi-core system and starting method thereof | |
| CN115129511B (en) | Processing system, related integrated circuit, device and method | |
| CN106919865B (en) | Non-volatile memory data encryption system | |
| US20080034150A1 (en) | Data processing circuit | |
| JP5761880B2 (en) | Automobile | |
| JP5798007B2 (en) | Microcomputer and data processing apparatus | |
| JP5603993B2 (en) | Electrical unit and data processing method | |
| JP2011141888A (en) | Single chip microcomputer | |
| CN101248437A (en) | Processor Hardware and Software |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16720978 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 112016001972 Country of ref document: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16720978 Country of ref document: EP Kind code of ref document: A1 |