GSC Privilege and Non-Privilege Access Demo
This example demonstrates how to use the Global Security Controller (GSC) to configure and enforce privilege-based access control for peripherals, Flash memory, and SRAM.
The GSC provides three protection controllers:
PPC (Peripheral Protection Controller) — controls which peripherals can only be accessed from privileged Thread mode or Handler mode
FPC (Flash Protection Controller) — controls read privilege and write-erase protection for Flash sectors
SPC (SRAM Protection Controller) — controls which SRAM regions can only be accessed from privileged mode
The example walks through four scenarios:
A privileged user accessing a privileged peripheral — succeeds normally
A privileged user accessing a non-privileged peripheral — succeeds normally
A non-privileged user accessing a non-privileged peripheral — succeeds normally
A non-privileged user accessing a privileged peripheral — triggers a Security NMI, which is handled in Handler mode (always privileged), after which the access retries successfully
External Connections
None