78. Hardware debug port (HDP)

The hardware debug port allows the observation of internal signals. By using multiplexers, up to 16 signals for each of 8-bit output can be observed.

78.1 HDP main features

78.2 Functional description

Figure 1009. Hardware debug port block diagram

Figure 1009. Hardware debug port block diagram. The diagram illustrates the internal architecture of the Hardware Debug Port (HDP). A 16-input multiplexer (inputs 0 through 15) selects 8-bit signals. Inputs 0 through 14 receive 8-bit device internal signals. Input 15 receives gpoval[7:0] driven by registers hdp_gposet[7:0], hdp_gpoclr[7:0], and hdp_gpoval[7:0]. The multiplexer is controlled by hdp_mux[2:0][3:0] and hdp_ctrl.en. The 8-bit output of the multiplexer feeds into an hdp_val[7:0] register and an 8-bit wide AND gate gated by (from BSEC) HDPEN, which outputs to HDP[7:0].
Figure 1009. Hardware debug port block diagram. The diagram illustrates the internal architecture of the Hardware Debug Port (HDP). A 16-input multiplexer (inputs 0 through 15) selects 8-bit signals. Inputs 0 through 14 receive 8-bit device internal signals. Input 15 receives gpoval[7:0] driven by registers hdp_gposet[7:0], hdp_gpoclr[7:0], and hdp_gpoval[7:0]. The multiplexer is controlled by hdp_mux[2:0][3:0] and hdp_ctrl.en. The 8-bit output of the multiplexer feeds into an hdp_val[7:0] register and an 8-bit wide AND gate gated by (from BSEC) HDPEN, which outputs to HDP[7:0].

The control of the main multiplexer that allows the selection of the 8-signal debug set to be output is done through the HDP_CTRL register.

The HDP value at the output of the main multiplexer can be read by software through the HDP_VAL register.

During debug, it is often useful to output some signals that are controlled by the software. They can be used to observe precisely a code sequence, or to indicate the current executed task. The debug set #15 is reserved for this purpose: it provides on HDP outputs, HDP_GPOVAL value that is associated with HDP_GPOSET and HDP_GPOCLR, allowing the signals to be toggled without a read-modify-write sequence.

Some debug sets expose internal data that require to be protected: the HDPEN signal, when low, forces all the HDP block outputs low.

Note: The internal signals may toggle at a higher rate than the pins can support. Their observability may then be compromised. The user must be aware of this limitation when using the HDP port.

Table 891. HDP signal muxing

HDP_MUXHDP7HDP6HDP5HDP4HDP3HDP2HDP1HDP0
MUX7[3:0]MUX6[3:0]MUX5[3:0]MUX4[3:0]MUX3[3:0]MUX2[3:0]MUX1[3:0]MUX0[3:0]
0CPU1 STANDBY WFI0-CPU1 STANDBY WFIL2PWR SEL_VTH_VDDCOREPWR SEL_VTH_VDDCPUPWR pwrwake_cpu1PWR pwrwake_cpu2PWR pwrwake_sys
1CPU1 STANDBY WFE0--CPU2 SLEEPINGCPU2 TXEVCPU2 RXEVCPU2 HALTEDCPU2 SLEEP DEEP
2CPU1 HALTED0--CPU1 EVENTOCPU1 nPMUIRQ0-CPU2 State[1]BSEC out test_sdr_unlock OR DISABLE_SCAN
3-CPU1 nAXIER RIRQCPU1 nIRQOUT0-CPU1 nFIQOUT0-BSECout dbgenmBSEC out nidenm
4BSEC out spidenmBSEC out spnidenmBSEC out spidenaBSEC out spnidenmBSEC out ddbgenBSEC out shdbgenBSEC out dbgenaBSEC out nidena
5EXTI2 cpu1_wakeupEXTI2 cpu2_wakeup-EXTI2 sys_wakeupEXTI1 cpu1_wakeupEXTI1 cpu2_wakeupEXTI1 sys_wakeupCPU2 State[0]
6-----RCC pwrds_cpu1RCC pwrds_cpu2RCC pwrds_sys
7--------
8DDRSS dfi_ctrlupd_reqDDRSS dfi_init_completeDDRCTRL dfi_init_startDDRSS dphycg_enDDRSS mcdcg_enDDRSS cactive_ddrcDDRSS csysack_ddrcDDRSS csysreq_ddrc
9DDRSS obsp3DDRSS obsp2DDRSS obsp1DDRSS obsp0DDRSS dfi_freq[0]DDRSS dfi_lp_reqDDRSS dfi_phymstr_reqDDRSS dfi_phyupd_req
10D2 State[1]D2 State[0]pll6_lockpll5_lockpll4_lock-pll2_lockpll1_lock
11pll8_lockpll7_lock-HPDMA3 clk_bus_reqHPDMA2 clk_bus_reqHPDMA1 clk_bus_reqD2 gbl_per_dma_reqD2 gbl_per_clk_bus_req
12USB_HDP[7]USB_HDP[6]USB_HDP[5]USB_HDP[4]USB_HDP[3]USB_HDP[2]USB_HDP[1]USB_HDP[0]
13-octospi1_dll_lockUSB_HDP[13]USB_HDP[12]USB_HDP[11]USB_HDP[10]USB_HDP[9]USB_HDP[8]

Table 891. HDP signal muxing (continued)

HDP_MUXHDP7HDP6HDP5HDP4HDP3HDP2HDP1HDP0
MUX7[3:0]MUX6[3:0]MUX5[3:0]MUX4[3:0]MUX3[3:0]MUX2[3:0]MUX1[3:0]MUX0[3:0]
14CPU1 State[1]CPU1 State[0]D1 State[2]D1 State[1]D1 State[0]sdmmc3_dll_locksdmmc2_dll_locksdmmc1_dll_lock
15gpoval[7]gpoval[6]gpoval[5]gpoval[4]gpoval[3]gpoval[2]gpoval[1]gpoval[0]

78.3 HDP registers

78.3.1 HDP control register (HDP_CTRL)

Address offset: 0x000

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EN
rw

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 EN: HDP enable (valid if enabled in BSEC)

78.3.2 HDP multiplexer control register (HDP_MUX)

Address offset: 0x004

Reset value: 0x0000 0000

31302928272625242322212019181716
MUX7[3:0]MUX6[3:0]MUX5[3:0]MUX4[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
MUX3[3:0]MUX2[3:0]MUX1[3:0]MUX0[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 MUXy[3:0]: Selection of the HDPy output among the 16 available signals (y = 7 to 0)

78.3.3 HDP read back value register (HDP_VAL)

Address offset: 0x010

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HDPVAL[7:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 HDPVAL[7:0]: Value of the HDP signals

78.3.4 HDP general purpose output set register (HDP_GPOSET)

Address offset: 0x014

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HDPGPOSET[7:0]
wwwwwwww

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 HDPGPOSET[7:0]:

When a bit is written to 1, the corresponding HDP GPO is set.

Writing a bit to 0 has no effect.

78.3.5 HDP general purpose output clear register (HDP_GPOCLR)

Address offset: 0x018

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HDPGPOCLR[7:0]
wwwwwwww

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 HDPGPOCLR[7:0]:

When a bit is written to 1, the corresponding HDP GPO is cleared.

Writing a bit to 0 has no effect.

78.3.6 HDP general purpose output value register (HDP_GPOVAL)

Address offset: 0x01C

Reset value: 0x0000 0000

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.HDPGPOVAL[7:0]
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 HDPGPOVAL[7:0]:

When written, this bitfield defines the value of the HDP GPO.

When read, this bitfield provides the current GPO value.

78.3.7 HDP version register (HDP_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0010

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:4 MAJREV[3:0]: HDP major revision

Bits 3:0 MINREV[3:0]: HDP minor revision

78.3.8 HDP identification register (HDP_IPIDR)

Address offset: 0x3F8

Reset value: 0x0003 0002

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: HDP identifier

78.3.9 HDP size identification register (HDP_SIDR)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: Size identifier

78.3.10 HDP register map

Table 892. HDP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000HDP_CTRLRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.EN
Reset value0
0x004HDP_MUXMUX7[3:0]MUX6[3:0]MUX5[3:0]MUX4[3:0]MUX3[3:0]MUX2[3:0]MUX1[3:0]MUX0[3:0]
Reset value00000000000000000000000000000000
0x008-0x00CReservedRes.erved
0x010HDP_VALRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDPVAL[7:0]
Reset value00000000
0x014HDP_GPOSETRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDPGPOSET[7:0]
Reset value00000000

Table 892. HDP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x018HDP_GPOCLRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDPGPOCLR[7:0]
Reset value00000000
0x01CHDP_GPOVALRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.HDPGPOVAL[7:0]
Reset value00000000
0x020-0x3F0ReservedRes.erved
0x3F4HDP_VERRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAJREV [3:0]MINREV [3:0]
Reset value00010000
0x3F8HDP_IPIDRID[31:0]
Reset value000000000000001100000000000000010
0x3FCHDP_SIDRSID[31:0]
Reset value10100011110001011101110100000001

Refer to Section 2.4 for the register boundary addresses.