From d1af9651572ebec7f3a618ed0bf138ed9b7cb050 Mon Sep 17 00:00:00 2001 From: ALTracer <11005378+ALTracer@users.noreply.github.com> Date: Sat, 11 May 2024 20:00:00 +0300 Subject: [PATCH] stlinkv3: Enable CRC clock to support `compare-sections` --- src/platforms/stlinkv3/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/platforms/stlinkv3/platform.c b/src/platforms/stlinkv3/platform.c index 5a2af0565bd..9dec247e1b9 100644 --- a/src/platforms/stlinkv3/platform.c +++ b/src/platforms/stlinkv3/platform.c @@ -171,6 +171,7 @@ void platform_init(void) rcc_periph_clock_enable(RCC_GPIOH); rcc_periph_clock_enable(RCC_GPIOF); rcc_periph_clock_enable(RCC_GPIOG); + rcc_periph_clock_enable(RCC_CRC); /* Initialize ADC. */ gpio_mode_setup(GPIOA, GPIO_MODE_ANALOG, GPIO_PUPD_NONE, GPIO0);