HAL DBGMCU Functions

DBGMCU Device identification functions

group DBGMCU_Exported_Functions_Group1

This section provides functions allowing to get device identity:

Functions

uint32_t HAL_DBGMCU_GetRevisionID ( void )

Returns the device revision identifier.

Note

This field indicates the revision ID of the device.

  • For STM32U5Fx/5Gx:

    • 0x1000: revision A

  • For STM32U59x/5Ax:

    • 0x1000: revision A

    • 0x2000: revision B

    • 0x2001: revision Y

    • 0x3000: revision C

  • For STM32U575/585:

    • 0x1000: revision A

    • 0x1001: revision Z

    • 0x1003: revision Y

    • 0x2000: revision B

    • 0x2001: revision X

    • 0x3000: revision C

  • For STM32U535/545:

    • 0x1000: revision A

Return values :

uint32_t – Value of device revision ID.

hal_dbgmcu_device_id_t HAL_DBGMCU_GetDeviceID ( void )

Returns the device identifier.

Return values :
  • HAL_DBGMCU_DEV_ID_U535_U545 – STM32U5 device ID for STM32U545/535.

  • HAL_DBGMCU_DEV_ID_U575_U585 – STM32U5 device ID for STM32U575/585.

  • HAL_DBGMCU_DEV_ID_U595_U5A5 – STM32U5 device ID for STM32U59x/5Ax.

  • HAL_DBGMCU_DEV_ID_U5F5_U5G5 – STM32U5 device ID for STM32U5Fx/5Gx.

DBGMCU Low power mode debug activation functions

group DBGMCU_Exported_Functions_Group2

This section provides functions allowing to debug peripherals during low power mode (Stop0/1/2 and Standby modes):

Functions

void HAL_DBGMCU_EnableDebugLowPowerMode ( uint32_t mode )

Enable the Debug Module during low power mode (Stop0/1/2 and Standby modes).

Parameters :

mode – This parameter can be one or a combination of the following values:

  • HAL_DBGMCU_STOP_MODE_DEBUG : Debug during Stop modes.

  • HAL_DBGMCU_STANDBY_MODE_DEBUG : Debug during Standby mode.

  • HAL_DBGMCU_LP_MODE_DEBUG_ALL : Debug during all Low power modes.

void HAL_DBGMCU_DisableDebugLowPowerMode ( uint32_t mode )

Disable the Debug Module during low power mode (Stop0/1/2 and Standby modes).

Parameters :

mode – This parameter can be one or a combination of the following values:

  • HAL_DBGMCU_STOP_MODE_DEBUG : Debug during Stop modes.

  • HAL_DBGMCU_STANDBY_MODE_DEBUG : Debug during Standby mode.

  • HAL_DBGMCU_LP_MODE_DEBUG_ALL : Debug during all Low power modes.

hal_dbgmcu_dbg_low_power_mode_status_t HAL_DBGMCU_IsEnabledDebugLowPowerMode ( uint32_t mode )

Check that the Debug Module during low power mode (Stop0/1/2 and Standby modes) is enabled.

Parameters :

mode – This parameter can be one of the following values:

  • HAL_DBGMCU_STOP_MODE_DEBUG : Debug during Stop modes.

  • HAL_DBGMCU_STANDBY_MODE_DEBUG : Debug during Standby mode.

Return values :

hal_dbgmcu_dbg_low_power_mode_status_t – Debug in low power mode activation.

DBGMCU Peripheral clock freeze and unfreeze functions

group DBGMCU_Exported_Functions_Group3

This section provides functions allowing to freeze and unfreeze the peripheral clock when the CPU is halted:

  • Call HAL_DBGMCU_PPPi_Freeze() function to freeze the peripheral clock of PPPi when the CPU is halted.

  • Call HAL_DBGMCU_PPPi_UnFreeze() function to unfreeze the peripheral clock of PPPi when the CPU is halted.

Functions

void HAL_DBGMCU_TIM1_Freeze ( void )

Freeze the clock of TIM1 when the CPU is halted.

void HAL_DBGMCU_TIM1_UnFreeze ( void )

Unfreeze the clock of TIM1 when the CPU is halted.

void HAL_DBGMCU_TIM2_Freeze ( void )

Freeze the clock of TIM2 when the CPU is halted.

void HAL_DBGMCU_TIM2_UnFreeze ( void )

Unfreeze the clock of TIM2 when the CPU is halted.

void HAL_DBGMCU_TIM3_Freeze ( void )

Freeze the clock of TIM3 when the CPU is halted.

void HAL_DBGMCU_TIM3_UnFreeze ( void )

Unfreeze the clock of TIM3 when the CPU is halted.

void HAL_DBGMCU_TIM4_Freeze ( void )

Freeze the clock of TIM4 when the CPU is halted.

void HAL_DBGMCU_TIM4_UnFreeze ( void )

Unfreeze the clock of TIM4 when the CPU is halted.

void HAL_DBGMCU_TIM5_Freeze ( void )

Freeze the clock of TIM5 when the CPU is halted.

void HAL_DBGMCU_TIM5_UnFreeze ( void )

Unfreeze the clock of TIM5 when the CPU is halted.

void HAL_DBGMCU_TIM6_Freeze ( void )

Freeze the clock of TIM6 when the CPU is halted.

void HAL_DBGMCU_TIM6_UnFreeze ( void )

Unfreeze the clock of TIM6 when the CPU is halted.

void HAL_DBGMCU_TIM7_Freeze ( void )

Freeze the clock of TIM7 when the CPU is halted.

void HAL_DBGMCU_TIM7_UnFreeze ( void )

Unfreeze the clock of TIM7 when the CPU is halted.

void HAL_DBGMCU_TIM8_Freeze ( void )

Freeze the clock of TIM8 when the CPU is halted.

void HAL_DBGMCU_TIM8_UnFreeze ( void )

Unfreeze the clock of TIM8 when the CPU is halted.

void HAL_DBGMCU_TIM15_Freeze ( void )

Freeze the clock of TIM15 when the CPU is halted.

void HAL_DBGMCU_TIM15_UnFreeze ( void )

Unfreeze the clock of TIM15 when the CPU is halted.

void HAL_DBGMCU_TIM16_Freeze ( void )

Freeze the clock of TIM16 when the CPU is halted.

void HAL_DBGMCU_TIM16_UnFreeze ( void )

Unfreeze the clock of TIM16 when the CPU is halted.

void HAL_DBGMCU_TIM17_Freeze ( void )

Freeze the clock of TIM17 when the CPU is halted.

void HAL_DBGMCU_TIM17_UnFreeze ( void )

Unfreeze the clock of TIM17 when the CPU is halted.

void HAL_DBGMCU_I2C1_Freeze ( void )

Freeze the clock of I2C1 when the CPU is halted.

void HAL_DBGMCU_I2C1_UnFreeze ( void )

Unfreeze the clock of I2C1 when the CPU is halted.

void HAL_DBGMCU_I2C2_Freeze ( void )

Freeze the clock of I2C2 when the CPU is halted.

void HAL_DBGMCU_I2C2_UnFreeze ( void )

Unfreeze the clock of I2C2 when the CPU is halted.

void HAL_DBGMCU_I2C3_Freeze ( void )

Freeze the clock of I2C3 when the CPU is halted.

void HAL_DBGMCU_I2C3_UnFreeze ( void )

Unfreeze the clock of I2C3 when the CPU is halted.

void HAL_DBGMCU_I2C4_Freeze ( void )

Freeze the clock of I2C4 when the CPU is halted.

void HAL_DBGMCU_I2C4_UnFreeze ( void )

Unfreeze the clock of I2C4 when the CPU is halted.

void HAL_DBGMCU_I2C5_Freeze ( void )

Freeze the clock of I2C5 when the CPU is halted.

void HAL_DBGMCU_I2C5_UnFreeze ( void )

Unfreeze the clock of I2C5 when the CPU is halted.

void HAL_DBGMCU_I2C6_Freeze ( void )

Freeze the clock of I2C6 when the CPU is halted.

void HAL_DBGMCU_I2C6_UnFreeze ( void )

Unfreeze the clock of I2C6 when the CPU is halted.

void HAL_DBGMCU_WWDG_Freeze ( void )

Freeze the clock of WWDG when the CPU is halted.

void HAL_DBGMCU_WWDG_UnFreeze ( void )

Unfreeze the clock of WWDG when the CPU is halted.

void HAL_DBGMCU_IWDG_Freeze ( void )

Freeze the clock of IWDG when the CPU is halted.

void HAL_DBGMCU_IWDG_UnFreeze ( void )

Unfreeze the clock of IWDG when the CPU is halted.

void HAL_DBGMCU_RTC_Freeze ( void )

Freeze the clock of RTC when the CPU is halted.

void HAL_DBGMCU_RTC_UnFreeze ( void )

Unfreeze the clock of RTC when the CPU is halted.

void HAL_DBGMCU_LPTIM1_Freeze ( void )

Freeze the clock of LPTIM1 when the CPU is halted.

void HAL_DBGMCU_LPTIM1_UnFreeze ( void )

Unfreeze the clock of LPTIM1 when the CPU is halted.

void HAL_DBGMCU_LPTIM2_Freeze ( void )

Freeze the clock of LPTIM2 when the CPU is halted.

void HAL_DBGMCU_LPTIM2_UnFreeze ( void )

Unfreeze the clock of LPTIM2 when the CPU is halted.

void HAL_DBGMCU_LPTIM3_Freeze ( void )

Freeze the clock of LPTIM3 when the CPU is halted.

void HAL_DBGMCU_LPTIM3_UnFreeze ( void )

Unfreeze the clock of LPTIM3 when the CPU is halted.

void HAL_DBGMCU_LPTIM4_Freeze ( void )

Freeze the clock of LPTIM4 when the CPU is halted.

void HAL_DBGMCU_LPTIM4_UnFreeze ( void )

Unfreeze the clock of LPTIM4 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch0_Freeze ( void )

Freeze the clock of GPDMA1 channel 0 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch0_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 0 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch1_Freeze ( void )

Freeze the clock of GPDMA1 channel 1 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch1_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 1 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch2_Freeze ( void )

Freeze the clock of GPDMA1 channel 2 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch2_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 2 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch3_Freeze ( void )

Freeze the clock of GPDMA1 channel 3 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch3_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 3 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch4_Freeze ( void )

Freeze the clock of GPDMA1 channel 4 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch4_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 4 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch5_Freeze ( void )

Freeze the clock of GPDMA1 channel 5 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch5_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 5 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch6_Freeze ( void )

Freeze the clock of GPDMA1 channel 6 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch6_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 6 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch7_Freeze ( void )

Freeze the clock of GPDMA1 channel 7 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch7_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 7 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch8_Freeze ( void )

Freeze the clock of GPDMA1 channel 8 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch8_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 8 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch9_Freeze ( void )

Freeze the clock of GPDMA1 channel 9 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch9_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 9 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch10_Freeze ( void )

Freeze the clock of GPDMA1 channel 10 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch10_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 10 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch11_Freeze ( void )

Freeze the clock of GPDMA1 channel 11 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch11_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 11 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch12_Freeze ( void )

Freeze the clock of GPDMA1 channel 12 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch12_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 12 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch13_Freeze ( void )

Freeze the clock of GPDMA1 channel 13 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch13_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 13 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch14_Freeze ( void )

Freeze the clock of GPDMA1 channel 14 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch14_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 14 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch15_Freeze ( void )

Freeze the clock of GPDMA1 channel 15 when the CPU is halted.

void HAL_DBGMCU_GPDMA1_Ch15_UnFreeze ( void )

Unfreeze the clock of GPDMA1 channel 15 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch0_Freeze ( void )

Freeze the clock of LPDMA1 channel 0 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch0_UnFreeze ( void )

Unfreeze the clock of LPDMA1 channel 0 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch1_Freeze ( void )

Freeze the clock of LPDMA1 channel 1 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch1_UnFreeze ( void )

Unfreeze the clock of LPDMA1 channel 1 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch2_Freeze ( void )

Freeze the clock of LPDMA1 channel 2 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch2_UnFreeze ( void )

Unfreeze the clock of LPDMA1 channel 2 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch3_Freeze ( void )

Freeze the clock of LPDMA1 channel 3 when the CPU is halted.

void HAL_DBGMCU_LPDMA1_Ch3_UnFreeze ( void )

Unfreeze the clock of LPDMA1 channel 3 when the CPU is halted.