2.21. Syscfg
2.21.1. Overview
The system config block controls miscellaneous chip settings including:
- • NMI (Non-Maskable-Interrupt) mask to pick sources that generate the NMI
- • Processor config
- ◦ DAP Instance ID (to change the address that the SWD uses to communicate with the core in debug)
- ◦ Processor status (If the processor is halted, which may be useful in debug)
- • Processor IO config
- ◦ Input synchroniser control (to allow input synchronisers to be bypassed to reduce latency where clocks are synchronous)
- • Debug control
- ◦ Provides the ability to control the SWD interface from inside the chip. This means Core 0 could debug Core 1, which may make debug connectivity easier.
- • Memory power down (each memory can be powered down if not being used to save a small amount of extra power).
2.21.2. List of Registers
The system config registers start at a base address of 0x40004000 (defined as SYSCFG_BASE in SDK).
Table 353. List of SYSCFG registers
| Offset | Name | Info |
|---|---|---|
| 0x00 | PROC0_NMI_MASK | Processor core 0 NMI source mask |
| 0x04 | PROC1_NMI_MASK | Processor core 1 NMI source mask |
| 0x08 | PROC_CONFIG | Configuration for processors |
| 0x0c | PROC_IN_SYNC_BYPASS | For each bit, if 1, bypass the input synchronizer between that GPIO and the GPIO input register in the SIO. The input synchronizers should generally be unbypassed, to avoid injecting metastabilities into processors. If you're feeling brave, you can bypass to save two cycles of input latency. This register applies to GPIO 0...29. |
| 0x10 | PROC_IN_SYNC_BYPASS_HI | For each bit, if 1, bypass the input synchronizer between that GPIO and the GPIO input register in the SIO. The input synchronizers should generally be unbypassed, to avoid injecting metastabilities into processors. If you're feeling brave, you can bypass to save two cycles of input latency. This register applies to GPIO 30...35 (the QSPI IOs). |
| 0x14 | DBGFORCE | Directly control the SWD debug port of either processor |
| 0x18 | MEMPOWERDOWN | Control power downs to memories. Set high to power down memories. Use with extreme caution |
SYSCFG: PROC0_NMI_MASK Register
Offset: 0x00
Description
Processor core 0 NMI source mask
Table 354.
PROC0_NMI_MASK
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:0 | Set a bit high to enable NMI from that IRQ | RW | 0x00000000 |
SYSCFG: PROC1_NMI_MASK Register
Offset: 0x04
Description
Processor core 1 NMI source mask
Table 355.
PROC1_NMI_MASK
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:0 | Set a bit high to enable NMI from that IRQ | RW | 0x00000000 |
SYSCFG: PROC_CONFIG Register
Offset: 0x08
Description
Configuration for processors
Table 356.
PROC_CONFIG
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:28 | PROC1_DAP_INSTID
: Configure proc1 DAP instance ID. Recommend that this is NOT changed until you require debug access in multi-chip environment WARNING: do not set to 15 as this is reserved for RescueDP | RW | 0x1 |
| 27:24 | PROC0_DAP_INSTID
: Configure proc0 DAP instance ID. Recommend that this is NOT changed until you require debug access in multi-chip environment WARNING: do not set to 15 as this is reserved for RescueDP | RW | 0x0 |
| 23:2 | Reserved. | - | - |
| 1 | PROC1_HALTED : Indication that proc1 has halted | RO | 0x0 |
| 0 | PROC0_HALTED : Indication that proc0 has halted | RO | 0x0 |
SYSCFG: PROC_IN_SYNC_BYPASS Register
Offset: 0x0c
Table 357.
PROC_IN_SYNC_BYPASS
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:30 | Reserved. | - | - |
| 29:0 | For each bit, if 1, bypass the input synchronizer between that GPIO and the GPIO input register in the SIO. The input synchronizers should generally be unbypassed, to avoid injecting metastabilities into processors. If you're feeling brave, you can bypass to save two cycles of input latency. This register applies to GPIO 0...29. | RW | 0x00000000 |
SYSCFG: PROC_IN_SYNC_BYPASS_HI Register
Offset: 0x10
Table 358.
PROC_IN_SYNC_BYPASS_HI
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:6 | Reserved. | - | - |
| 5:0 | For each bit, if 1, bypass the input synchronizer between that GPIO and the GPIO input register in the SIO. The input synchronizers should generally be unbypassed, to avoid injecting metastabilities into processors. If you're feeling brave, you can bypass to save two cycles of input latency. This register applies to GPIO 30...35 (the QSPI I/Os). | RW | 0x00 |
SYSCFG: DBGFORCE Register
Offset: 0x14
Description
Directly control the SWD debug port of either processor
Table 359. DBGFORCE
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:8 | Reserved. | - | - |
| 7 | PROC1_ATTACH : Attach processor 1 debug port to syscfg controls, and disconnect it from external SWD pads. | RW | 0x0 |
| 6 | PROC1_SWCLK : Directly drive processor 1 SWCLK, if PROC1_ATTACH is set | RW | 0x1 |
| Bits | Description | Type | Reset |
|---|---|---|---|
| 5 | PROC1_SWDI : Directly drive processor 1 SWDIO input, if PROC1_ATTACH is set | RW | 0x1 |
| 4 | PROC1_SWDO : Observe the value of processor 1 SWDIO output. | RO | - |
| 3 | PROC0_ATTACH : Attach processor 0 debug port to syscfg controls, and disconnect it from external SWD pads. | RW | 0x0 |
| 2 | PROC0_SWCLK : Directly drive processor 0 SWCLK, if PROC0_ATTACH is set | RW | 0x1 |
| 1 | PROC0_SWDI : Directly drive processor 0 SWDIO input, if PROC0_ATTACH is set | RW | 0x1 |
| 0 | PROC0_SWDO : Observe the value of processor 0 SWDIO output. | RO | - |
SYSCFG: MEMPOWERDOWN Register
Offset: 0x18
Description
Control power downs to memories. Set high to power down memories.
Use with extreme caution
Table 360.
MEMPOWERDOWN
Register
| Bits | Description | Type | Reset |
|---|---|---|---|
| 31:8 | Reserved. | - | - |
| 7 | ROM | RW | 0x0 |
| 6 | USB | RW | 0x0 |
| 5 | SRAM5 | RW | 0x0 |
| 4 | SRAM4 | RW | 0x0 |
| 3 | SRAM3 | RW | 0x0 |
| 2 | SRAM2 | RW | 0x0 |
| 1 | SRAM1 | RW | 0x0 |
| 0 | SRAM0 | RW | 0x0 |