vemu.

System & Infrastructure - Debug & Trace - nordic,nrf-ctrlap

nRF5340 CTRLAP (control access port)

Behavioral model of the nRF5340 CTRL-AP peripheral (CPU side, sec 8.10.7). The CPU-to-debugger mailbox is fully modeled: writing TXDATA emits a `nrf.ctrlap.mailbox_tx` event and sets TXSTATUS=DataPending; reading RXDATA auto-clears RXSTATUS. Protection LOCK/DISABLE/STATUS registers are stored and read back. All protection is disabled by default in emulation so the debugger always has full access.

snapshottableemits: custom

Events emitted

nrf.ctrlap.approtect_disable

Firmware wrote a value to APPROTECT.DISABLE or SECUREAPPROTECT.DISABLE, attempting to disable access port protection.

Payload

FieldTypeDescription
keyu32The 32-bit key value written by firmware.
securebooleanTrue if the secure access port protection disable was written.
nrf.ctrlap.mailbox_tx

Firmware wrote data to the CTRLAP MAILBOX.TXDATA register, sending a message to the debugger. The payload carries the data value.

Payload

FieldTypeDescription
datau3232-bit value written to MAILBOX.TXDATA by the CPU.

Events accepted

No peripheral-specific input events. The peripheral is driven through MMIO register access.

Commands

This peripheral exposes no commands.

Snapshot fields

FieldTypeLabel
state_jsonstrCTRLAP State (JSON)
mailbox_rxdatau32MAILBOX.RXDATA
mailbox_rxstatusu32MAILBOX.RXSTATUS
mailbox_txdatau32MAILBOX.TXDATA
mailbox_txstatusu32MAILBOX.TXSTATUS
approtect_disableu32APPROTECT.DISABLE
secureapprotect_disableu32SECUREAPPROTECT.DISABLE
statusu32STATUS

Read at runtime with emulator.peripheral_snapshot(name).

Boards using this peripheral