Debug through hardware exploration
AN4989
90/118
AN4989 Rev 3
If the frequency of the signal under observation exceeds the GPIO capability (e.g. 216 MHz
Sysclock on F7 while GPIO maximum frequency is 100 MHz), use a divider to produce a
suitable signal.
The default value in RCC HAL function is the highest (which is good).
In case of a STM32CubeMX generated project, be aware that default value applied in
generated
MX_GPIO_init()
function (executed after MCO config) is the lowest.
In case the output clock is higher than 1 MHz, it is recommended to change this.
A too low OSPEED setting can be suspected in case no signal or very noisy/flatten signal
(small amplitude).
A too high setting can be suspected if a signal with a long and high amplitude dumping
oscillation is observed (overshoot / undershoot).
8.2.3 STM32
Series
differences
STM32L4 Series also provides an LSCO (Low Speed Clock Output) on PA2 in order to
output LSE or LSI, same as MCO, but with benefit to be still available during stop and
standby mode.
Refer to section 6.2.15 Clock-out capability of STMicroelectronics reference manual
STM32L4x5 and STM32L4x6 advanced Arm
®
-based 32-bit MCUs
(RM035) for details.
HAL Function to call is:
void HAL_RCCEx_EnableLSCO(uint32_t LSCOSource)
in stm32l4xx_hal_rcc_ex.c/.h
Note:
LSCO is conflicting with UART2 TX (PA2). On Nucleo-64 board, the use of the LSCO board
use and the use of the ST-LINK VCP are mutually exclusive.
SB63 must be set in order to get the LSCO signal available on Morpho and ARDUINO
®
connectors.
Refer to the board user manual for details.
STM32F4 and STM32F7 Series devices provide two different MCO outputs given choice of
four clocks each as shown in
. Refer also to
Содержание STM32 Series
Страница 46: ...Connecting to the board AN4989 46 118 AN4989 Rev 3 Figure 30 Keil hotplug step2 ...
Страница 91: ...AN4989 Rev 3 91 118 AN4989 Debug through hardware exploration 117 Figure 69 STM32F4 F7 dual MCO capabilities ...
Страница 103: ...AN4989 Rev 3 103 118 AN4989 Managing DBGMCU registers 117 Figure 78 Generator Options debug MCU in STM32CubeIDE ...