STM32L073 missing RCC defines for CRC Topic is solved

Report here problems in any of ChibiOS components. This forum is NOT for support.
Post Reply
TheoMarjan
Posts: 1
Joined: Sat Jan 17, 2026 5:11 am
Been thanked: 1 time

STM32L073 missing RCC defines for CRC

Post by TheoMarjan »

Hello all !

developing on the STM32L073RZ (on the nucleo board), I've activated the CRC driver of ChibiOS-Contrib. This raised that the rcc macros for CRC are not available. Looking at the Reference Manual of the STM32L0x3, page 123 confirms the existence of a compatible CRC peripheral and page 205 the availability (and necessity) of the configuration bit for RCC.

All [font=Courier New]stm32l0xxxx.h[/font] files have the [font=Courier New]RCC_AHBENR_CRCEN[/font] defines already properly set, only the macros seem to be missing in [font=Courier New]os/hal/ports/STM32/STM32L0xx/stm32_rcc.h[/font]. I've added the necessary lines and the CRC driver now works properly. I think the change should be integrated into the offical codebase :

Code: Select all


/**
 * @name    CRC peripherals specific RCC operations
 * @{
 */
/**
 * @brief   Enables the CRC peripheral clock.
 *
 * @param[in] lp        low power enable flag
 *
 * @api
 */
#define rccEnableCRC(lp) rccEnableAHB(RCC_AHBENR_CRCEN, lp)

/**
 * @brief   Disables the CRC peripheral clock.
 *
 * @api
 */
#define rccDisableCRC() rccDisableAHB(RCC_AHBENR_CRCEN)

/**
 * @brief   Resets the CRC peripheral.
 *
 * @api
 */
#define rccResetCRC() rccResetAHB(RCC_AHBRSTR_CRCRST)
/** @} */



Request for Comments :)

Kind regards,

Theo
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L073 missing RCC defines for CRC

Post by Giovanni »

Hi,

Moving this topic in "Bug Reports" for "processing" (will add the macros).

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: STM32L073 missing RCC defines for CRC

Post by Giovanni »

Hi,

Macros added to trunk code.

Giovanni
Post Reply