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

58.1 Features

58.2 Block diagram

Figure 757. Hardware debug port block diagram

Block diagram of the Hardware Debug Port (HDP) showing internal multiplexers, control signals, and output logic.

The diagram illustrates the Hardware Debug Port (HDP) block structure. It features a central multiplexer with 16 inputs (0-15) that selects from 'SoC internal signals'. The output of this multiplexer is an 8-bit bus. This bus is connected to an 8-bit output register labeled 'HDP[7:0]'. The multiplexer's selection is controlled by several signals: 'hdp_val[7:0]' (input to the multiplexer), 'hdp_gposet[7:0]', 'hdp_gpoclr[7:0]', and 'hdp_gpoval[7:0]' (which also provides 'gpoval[7:0]' to the multiplexer), 'hdp_mux[2:0][3:0]', and 'hdp_ctrl.en'. A security signal '(From BSEC) SEC_HDPEN' is connected to an AND gate that gates the multiplexer's output before it reaches the output register. The entire block is labeled 'HDP'.

MSv45021V1

Block diagram of the Hardware Debug Port (HDP) showing internal multiplexers, control signals, and output logic.

58.3 Functional description

The main multiplexer, allowing the selection of the 8-signal debug set to be output, is controlled 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 software; these can be used to observe a precise code sequence or to indicate the current executed task. Debug set #15 is reserved for this purpose; it provides on HDP outputs the value of the HDP_GPOVAL register. This register is associated with set and clear registers (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 protection; the SEC_HDPEN signal, when low, forces all the HDP block outputs low.

Note: The internal signals may toggle at a higher rate than the pads can support, in which case their observability may be compromised. The user should be aware of this limitation when using the HDP port.

Table 595. HDP signal multiplexing

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]
0CA7 STANDBYWFI0CA7 STANDBYWFE0CA7 STANDBYWFIL2-PWR SEL_VTH_VDDCOREPWR pwrwake_mpuPWR SEL_VTH_VDDCPUPWR pwrwake_sys
1PWR RCC_VCPU_RDYPWR VTH_VDDCPU_ACKPWR VTH_VDDCORE_ACKPWR STOP2_ACTIVEPWR MPU_CLOCK_DISABLE_REQPWR MPU_CLOCK_DISABLE_ACKPWR MPU_RAM_LOWSPEEDPWR STOP_FORBIDDEN
2CA7 EVENTICA7 EVENTOCA7 ncorereset_iCA7 nl2reset_iCA7 nPMUIRQ0CA7 ndbgreset_iCA7 nAXIERRIRQPWR STDBY_WAKEUP
3CA7 DBGACK0-CA7 nIRQOUT0CA7 nporeset_varm_iCA7 nFIQOUT0-PWR OKIN_MRPWR ENCOMP_VDDCORE
4BSEC out fuse_okBSEC in tamper_detBSEC in pwrokBSEC out sec_dftenBSEC out sec_dftlockBSEC in rstcore_nBSEC out sec_dbgenBSEC out sec_niden
5BSEC out sec_spidenBSEC out sec_spnidenBSEC out sec_deviceenBSEC out sec_dbgswenableBSEC out sec_jtag_disBSEC out sec_bsc_disAIEC c1_wakeupAIEC sys_wakeup
6ETH1 out mac_speed_o0ETH1 out mac_speed_o1ETH1 out lpi_intr_oETH1 out pmt_intr_oRCC pwrds_sys-RCC pwrds_mpu-
7ETH2 out mac_speed_o0ETH2 out mac_speed_o1ETH2 out lpi_intr_oETH2 out pmt_intr_oSRAM3CTRL TAMP_ERASE_REQ---
8DDRCTRL_csysreq_ddrcDDRCTRL_csysack_ddrcDDRCTRL_cactive_ddrcDDRCTRL_stat_ddrc_reg_selfref_type[1]DDRCTRL_stat_ddrc_reg_selfref_type[0]DDRCTRL_dfi_init_completeDDRCTRL_dfi_ctrlupd_reqDDRCTRL_lp_req
ST logo
ST logo
Synopsys logo
Synopsys logo

Table 595. HDP signal multiplexing (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]
9DDRCTRL_hpr_credit_cnt[4:0]==0DDRCTRL_lpr_credit_cnt[4:0]==0DDRCTRL_wr_credit_cnt[4:0]==0DDRCTRL_cactive_0-DDRCTRL_perf_op_is_refreshDDRCTRL_cactive_ddrc_asrPWR_DDR_RET_ENABLE_N
10DTS valobus1_4DTS valobus1_3DTS valobus1_2DTS valobus1_1DTS valobus1_0DDRCTRL_gskp_dfi_lp_req-DTS CLK_PTAT
11DTS valobus2_4DTS valobus2_3DTS valobus2_2DTS valobus2_1DTS valobus2_0---
12RNG tamper_outSAES tamper_outPKA pka_itamp_outTAMP nreset_sram_ercfgTAMP potential_tamp_ercfgSRAM3CTRL SW_ERASE_ACTSRAM3CTRL HW_ERASE_ACTSRAM3CTRL TAMP_ERASE_ACT
13NIC400_S0 AWAVALIDNIC400_S0 AWREADYNIC400_S0 WVALIDNIC400_S0 WLASTNIC400_S0 WREADYNIC400_S0 BVALIDNIC400_S0 BREADY-
14NIC400_S0 ARAVALIDNIC400_S0 ARREADYNIC400_S0 RVALIDNIC400_S0 RLASTNIC400_S0 RREADY---
15gpoval[7]gpoval[6]gpoval[5]gpoval[4]gpoval[3]gpoval[2]gpoval[1]gpoval[0]

58.4 HDP registers

58.4.1 HDP control register (HDP_CTRL)

Address offset: 0x000

Reset value: 0x0000 0000

HDP Control

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: Enable HDP

Valid if enabled in BSEC.

58.4.2 HDP multiplexers control register (HDP_MUX)

Address offset: 0x004

Reset value: 0x0000 0000

HDP multiplexing

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:28 MUX7[3:0]: Select the HDP7 output among the 16 available signals

Bits 27:24 MUX6[3:0]: Select the HDP6 output among the 16 available signals

Bits 23:20 MUX5[3:0]: Select the HDP5 output among the 16 available signals

Bits 19:16 MUX4[3:0]: Select the HDP4 output among the 16 available signals

Bits 15:12 MUX3[3:0]: Select the HDP3 output among the 16 available signals

Bits 11:8 MUX2[3:0]: Select the HDP2 output among the 16 available signals

Bits 7:4 MUX1[3:0]: Select the HDP1 output among the 16 available signals

Bits 3:0 MUX0[3:0]: Select the HDP0 output among the 16 available signals

58.4.3 HDP read back value register (HDP_VAL)

Address offset: 0x010

Reset value: 0x0000 0000

HDP value

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]: HDP read back value
Provides the value of the HDP signals.

ST logo
ST logo

58.4.4 HDP general purpose output set register (HDP_GPOSET)

Address offset: 0x014
Reset value: 0xXXXXX XXXX
HDP GPO set

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]: HDP general purpose output set
When a bit is written to 1, the corresponding HDP GPO is set. Writing a bit to 0 has no effect.

58.4.5 HDP general purpose output clear register (HDP_GPOCLR)

Address offset: 0x018
Reset value: 0xXXXXX XXXX
HDP GPO clear

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]: HDP general purpose output clear
When a bit is written to 1, the corresponding HDP GPO is cleared. Writing a bit to 0 has no effect.

ST logo
ST logo

58.4.6 HDP general purpose output value register (HDP_GPOVAL)

Address offset: 0x01C

Reset value: 0x0000 0000

HDP GPO value

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]: HDP general purpose output value

When written, defines the value of the HDP GPO. When read, provides the current GPO value.

58.4.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]: Major revision of the IP

Bits 3:0 MINREV[3:0]: Minor revision of the IP

58.4.8 HDP IP 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]: IP Identifier

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

58.4.10 HDP register map

Table 596. HDP register map and reset values

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x000HDP_CTRLResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResResEN
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 - 0x00CReserved
0x010HDP_VALResResResResResResResResResResResResResResResResResResResResResResResResHDPVAL[7:0]
Reset value00000000
0x014HDP_GPOSETResResResResResResResResResResResResResResResResResResResResResResResResHDPGPOSET[7:0]
Reset valueXXXXXXXX
0x018HDP_GPOCLRResResResResResResResResResResResResResResResResResResResResResResResResHDPGPOCLR[7:0]
Reset valueXXXXXXXX

Table 596. HDP register map and reset values (continued)

OffsetRegister Name313029282726252423222120191817161514131211109876543210
0x01CHDP_GPOVALRes.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 - 0x3F0Reserved
0x3F4HDP_VERRRes.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 value0000000000000110000000000000010
0x3FCHDP_SIDRSID[31:0]
Reset value1010001111000101110111010000001

Refer to Section 2.5 on page 153 for the register boundary addresses.