77. Hardware debug port (HDP)

77.1 HDP introduction

The hardware debug port (HDP) is used to observe internal signals, thanks to some multiplexers: up to 16 signals for each of 8-bit output.

77.2 HDP functional description

HDP main features:

The HDP is mainly composed of eight multiplexers under software control through HDP_CTRL. Each multiplexer can output an observed signal on an output pin. The observed signal is selected among a pool of 15 interesting signals for each multiplexer. For each multiplexer, a software programmable signal can be observed.

Table 853 presents for each of the muxes which signal can be selected.

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

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

Note: Internal signals may toggle at a rate higher than pins can support: their observability may then be compromised.

Table 853. Muxing of HDP signals

HDP_MUXHDP7 MUX7[3:0]HDP6 MUX6[3:0]HDP5 MUX5[3:0]HDP4 MUX4[3:0]HDP3 MUX3[3:0]HDP2 MUX2[3:0]HDP1 MUX1[3:0]HDP0 MUX0[3:0]
0---PWR
SEL_VTH_
VDDCORE
---PWR
pwrwake
_sys
1---CPU
SLEEPING
--CPU
HALTED
CPU SLEEP
DEEP

Table 853. Muxing of HDP signals (continued)

HDP_MUXHDP7 MUX7[3:0]HDP6 MUX6[3:0]HDP5 MUX5[3:0]HDP4 MUX4[3:0]HDP3 MUX3[3:0]HDP2 MUX2[3:0]HDP1 MUX1[3:0]HDP0 MUX0[3:0]
2BSEC dbg_unlocked[7]BSEC dbg_unlocked[6]BSEC dbg_unlocked[5]BSEC dbg_unlocked[4]BSEC dbg_unlocked[3]BSEC dbg_unlocked[2]BSEC dbg_unlocked[1]BSEC dbg_unlocked[0]
3BSEC dbg_unlocked_sec[7]BSEC dbg_unlocked_sec[6]BSEC dbg_unlocked_sec[5]BSEC dbg_unlocked_sec[4]BSEC dbg_unlocked_sec[3]BSEC dbg_unlocked_sec[2]BSEC dbg_unlocked_sec[1]BSEC dbg_unlocked_sec[0]
4BSEC ap_unlocked[7]BSEC ap_unlocked[6]BSEC ap_unlocked[5]BSEC ap_unlocked[4]BSEC ap_unlocked[3]BSEC ap_unlocked[2]BSEC ap_unlocked[1]BSEC ap_unlocked[0]
5------EXTI1 sys_wakeup-
6--ETH_ASYNC_ITETH_SYNC_IT---RCC pwrds_sys
7SMPS_HDP[7]SMPS_HDP[6]SMPS_HDP[5]SMPS_HDP[4]SMPS_HDP[3]SMPS_HDP[2]SMPS_HDP[1]SMPS_HDP[0]
8LSE_CKDV08SWHSE_CKDV18m/V08mSDMMCDLL2_LockSDMMCDLL1_LockPLL4_lockPLL3_lockPLL2_lockPLL1_lock
9GFXTIM_EVT[3]GFXTIM_EVT[2]GFXTIM_EVT[1]GFXTIM_EVT[0]GPU2D_GP_FLAG[3]GPU2D_GP_FLAG[2]GFXTIM_EVT[3]GFXTIM_EVT[2]
10MSS_HDP[7]MSS_HDP[6]MSS_HDP[5]MSS_HDP[4]MSS_HDP[3]MSS_HDP[2]MSS_HDP[7]MSS_HDP[6]
11--MSS_HDP[13]MSS_HDP[12]MSS_HDP[11]MSS_HDP[10]--
12USB_HDP[7]USB_HDP[6]USB_HDP[5]USB_HDP[4]USB_HDP[3]USB_HDP[2]USB_HDP[7]USB_HDP[6]
13--USB_HDP[13]USB_HDP[12]USB_HDP[11]USB_HDP[10]--
14--CAMSS dcmipp1_evt_frameend[2]CAMSS dcmipp1_evt_frameend[1]CAMSS dcmipp1_evt_frameend[0]CAMSS dcmipp1_evt_lineend[2]--
15gpoval[7]gpoval[6]gpoval[5]gpoval[4]gpoval[3]gpoval[2]gpoval[7]gpoval[6]

77.3 HDP block diagram

Figure 1075. HDP block diagram

Figure 1075. HDP block diagram showing APB port connected to HDP registers (hdp_gposet, hdp_gpoclr, hdp_gpoval, hdp_mux, hdp_ctrl.en, hdp_val). Internal signals 0-14 and gpoval[7:0] feed a 16-to-1 multiplexer controlled by hdp_mux. The 8-bit mux output goes to a gate controlled by hdp_ctrl.en and (from BSEC) HDPEN, yielding output HDP[7:0] and feeding hdp_val[7:0].
Figure 1075. HDP block diagram showing APB port connected to HDP registers (hdp_gposet, hdp_gpoclr, hdp_gpoval, hdp_mux, hdp_ctrl.en, hdp_val). Internal signals 0-14 and gpoval[7:0] feed a 16-to-1 multiplexer controlled by hdp_mux. The 8-bit mux output goes to a gate controlled by hdp_ctrl.en and (from BSEC) HDPEN, yielding output HDP[7:0] and feeding hdp_val[7:0].

77.4 HDP register description

77.4.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: Enable HDP, valid if enabled in BSEC

77.4.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]: Select the HDPy output among the 16 available signals (y = 7 to 0)

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

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

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

77.4.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, define the value of the HDP GPO.
When read, provide the current GPO value.

77.4.7 HDP register map

Table 854. 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
ST logo
ST logo

Table 854. HDP register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
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
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

Refer to Section 2.3 for the register boundary addresses.

ST logo
ST logo