2025-06-16 6:18 AM - last edited on 2025-06-16 6:23 AM by Andrew Neil
We're using STM32CubeIDE 1.18.1 under Windows. When generating LL_ code for a STM32C092, TIM15 init generates this code:
static void MX_TIM15_Init(void)
{
LL_TIM_InitTypeDef TIM_InitStruct = {0};
/* Peripheral clock enable */
LL_APB2_GRP1_EnableClock(LL_APB2_GRP1_PERIPH_TIM15);
In stm32c0xx_ll_bus.h, the enable clock function redefines the call:
#define LL_APB2_GRP1_EnableClock LL_APB1_GRP2_EnableClock but
LL_APB2_GRP1_PERIPH_TIM15
is undefined. It would seem the generated code should be LL_APB1_GRP2_PERIPH_TIM15
for RCC_APBENR2_TIM15EN.
Regards,
Mike
Edited to apply source code formatting - please see How to insert source code for future reference.
2025-06-16 6:28 AM - edited 2025-06-16 6:31 AM
Hello @MikeInMinnesota
First let me thank you for posting.
I'm currently investigating this . I will get back to you asap.
Could you please share your IOC .
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2025-06-16 6:47 AM - edited 2025-06-16 6:55 AM
2025-06-16 7:00 AM
Hello @MikeInMinnesota
Your contribution is much appreciated.
Issue has been raised to our development team for correction.
Internal ticket number :212341
I will keep you posted with updates.
THX
Ghofrane
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.