95. 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.

95.1 HDP main features

95.2 Functional description

Figure 1171. Hardware debug port block diagram

Block diagram of the Hardware Debug Port (HDP) showing the selection of 8 internal signals via a multiplexer and their output to the HDP[7:0] register.

The diagram illustrates the Hardware Debug Port (HDP) block. It features a main multiplexer that selects from 15 device internal signals (labeled 0, 1, ..., 14, 15). The selection is controlled by the hdp_mux[2:0][3:0] register. The multiplexer's output is connected to the hdp_val[7:0] register. Additionally, the output of the multiplexer is connected to an AND gate, which also receives the hdp_ctrl.en signal. The output of the AND gate is connected to the HDP[7:0] register. The hdp_gposet[7:0], hdp_gpoclr[7:0], and hdp_gpoval[7:0] registers are connected to the gpoval[7:0] signal, which is also connected to the multiplexer. The (from BSEC) HDPEN signal is connected to the AND gate. The diagram is labeled "HDP" and includes the reference "MSv67413V1".

Block diagram of the Hardware Debug Port (HDP) showing the selection of 8 internal signals via a multiplexer and their output to the HDP[7:0] register.

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 999. 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 WFI0CPU1 STANDBY WFI1CPU1 STANDBY WFIL2PWR SEL_VTH_VDDCOREPWR SEL_VTH_VDDCPUPWR pwrwake_cpu1PWR pwrwake_cpu2PWR pwrwake_sys
1CPU1 STANDBY WFE0CPU1 STANDBY WFE1-CPU2 SLEEPINGCPU2 TXEVCPU2 RXEVCPU2 HALTEDCPU2 SLEEP DEEP
2CPU1 HALTED0CPU1 HALTED1-CPU1 EVENTOCPU1 nPMUIRQ0CPU1 nPMUIRQ1CPU2 State[1]BSEC out tst_sdr_unlock OR DISABLE_SCAN
3-CPU1 nAXIER RIRQCPU1 nIRQOUT0CPU1 nIRQOUT1CPU1 nFIQOUT0CPU1 nFIQOUT1BSECout dbgenmBSEC out nidenm
4BSEC out spidenmBSEC out spnidenmBSEC out spidenaBSEC out spnidenmBSEC out ddbgenBSEC out shdbgenBSEC out dbgenaBSEC out nidena
5EXTI2 cpu1 _wakeuptEXTI2 cpu2 _wakeuptEXTI2 cpu3 _wakeuptEXTI2 d3_wakeuptEXTI1 cpu1 _wakeuptEXTI1 cpu2 _wakeuptEXTI1 sys_wakeuptCPU2 State[0]
6ETH2 out lpi_intr_oETH2 out pmt_intr_oETH1 out lpi_intr_oETH1 out pmt_intr_oCPU3 State[0]RCC pwrds_cpu1RCC pwrds_cpu2RCC pwrds_sys
7GPU dbg0 (FE is idle)GPU dbg1 (All GPU idle)GPU dbg2 (PE is idle)GPU dbg3 (SH is idle)GPU dbg4 (PA is idle)GPU dbg5 (SE is idle)GPU dbg6 (Ra is idle)GPU dbg7 (TX is idle)
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]CPU3 State[1]CPU3 SLEEPINGCPU3 TXEVCPU3 RXEVCPU3 HALTEDCPU3 SLEEP DEEP
11LPDMA1 clk_bus_reqD3 gbl_per_dma_reqD3 gbl_per_clk_bus_reqHPDMA3 clk_bus_reqHPDMA2 clk_bus_reqHPDMA1 clk_bus_reqD2 gbl_per_dma_reqD2 gbl_per_clk_bus_req

Table 999. 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]
12PCIE_USB
cxpl_debug
_info_ei[7]
PCIE_USB
cxpl_debug
_info_ei[6]
PCIE_USB
cxpl_debug
_info_ei[5]
PCIE_USB
cxpl_debug
_info_ei[4]
PCIE_USB
cxpl_debug
_info_ei[3]
PCIE_USB
cxpl_debug
_info_ei[2]
PCIE_USB
cxpl_debug
_info_ei[1]
PCIE_USB
cxpl_debug
_info_ei[0]
13PCIE_USB
cxpl_debug
_info_ei[15]
PCIE_USB
cxpl_debug
_info_ei[14]
PCIE_USB
cxpl_debug
_info_ei[13]
PCIE_USB
cxpl_debug
_info_ei[12]
PCIE_USB
cxpl_debug
_info_ei[11]
PCIE_USB
cxpl_debug
_info_ei[10]
PCIE_USB
cxpl_debug
_info_ei[9]
PCIE_USB
cxpl_debug
_info_ei[8]
14CPU1
State[1]
CPU1
State[0]
D1 State[2]D1 State[1]D1 State[0]D3 State[2]D3 State[1]D3 State[0]
15gpoval[7]gpoval[6]gpoval[5]gpoval[4]gpoval[3]gpoval[2]gpoval[1]gpoval[0]

95.3 HDP registers

95.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)

95.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)

95.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

95.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.

95.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.

95.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.

95.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

95.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

95.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

95.3.10 HDP register map

Table 1000. 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 value000000000
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 value000000000

Table 1000. 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 value000000000000000110000000000000010
0x3FCHDP_SIDRSID[31:0]
Reset value10100011110001011101110100000001

Refer to Section 2.4 for the register boundary addresses.

ST logo
ST logo