STMicroelectronics / stm32h7xx-hal-driver

Provides the STM32Cube MCU Component "hal_driver" of the STM32H7 series.
BSD 3-Clause "New" or "Revised" License
97 stars 41 forks source link

Bug in stm32h7xx_hal_rcc_ex.c - wrong #define for HRTIM1 (versions 1.7, 1.8) #7

Closed pavel-a closed 4 years ago

pavel-a commented 4 years ago

In file stm32h7xx_hal_rcc_ex.c function HAL_RCCEx_PeriphCLKConfig

https://github.com/STMicroelectronics/stm32h7xx_hal_driver/blob/b1c3ba014904de02274c7ff901f0226ad6f20238/Src/stm32h7xx_hal_rcc_ex.c#L1474

Instead of #if defined(HRTIM) should be #if defined(HRTIM1)

Result: HRTIM1 is configured incorrectly.

Reported on the STM32 forum by AndiAndi

ALABSTM commented 4 years ago

Duplicate of issue STM32CubeH7/#46.

ALABSTM commented 4 years ago

Hi @pavel-a,

Thank you once again for all your reports. This point has been transmitted to our development teams. I will get to you once I have their answer.

Kind regards,