HAL DBGMCU How to Use ¶
- group DBGMCU_How_To_Use
-
How to use the DBGMCU HAL module driver ¶
The DBGMCU HAL driver can be used as follows: ¶
Use these three API sets to:
Identify the device: Use this feature to get information about the device.
Get the device revision:
Get the device revision with HAL_DBGMCU_GetRevisionID().
Get the device identifier:
Get the device identifier with HAL_DBGMCU_GetDeviceID().
Debug during low power mode: Use the following APIs to debug peripherals during low power modes.
Enable or disable the debug module during Sleep, Stop and Standby modes:
Use HAL_DBGMCU_EnableDebugLowPowerMode() to enable the debug module and HAL_DBGMCU_DisableDebugLowPowerMode() to disable the debug module.
Check whether the debug module is enabled during Sleep, Stop and Standby modes:
Use HAL_DBGMCU_IsEnabledDebugLowPowerMode() to check the debug module status.
Freeze and unfreeze clock peripherals: The DBGMCU peripheral allows certain peripherals to be suspended in debug mode when the CPU is halted.
Freeze and unfreeze PPPi peripherals:
Use HAL_DBGMCU_PPPi_Freeze() to freeze PPPi peripherals and HAL_DBGMCU_PPPi_UnFreeze() to unfreeze them.