STMicroelectronics / STM32CubeF3

STM32Cube MCU Full Package for the STM32F3 series - (HAL + LL Drivers, CMSIS Core, CMSIS Device, MW libraries plus a set of Projects running on all boards provided by ST (Nucleo, Evaluation and Discovery Kits))
Other
141 stars 54 forks source link

HRTIM_TIM_TypeDef is undefined #1

Closed salkinium closed 4 years ago

salkinium commented 5 years ago

Describe the set-up

Describe the bug

HRTIM_TIM_TypeDef is undefined. After cross referencing this with the RM you probably meant to use HRTIM_Timerx_TypeDef.

How To Reproduce

Trying to access HRTIM1_TIMA in any code will fail, since HRTIM_TIM_TypeDef is undefined:

#include <stm32f3xx.h>
HRTIM1_TIMA->TIMxCR = 0;

Additional context

-#define HRTIM1_TIMA         ((HRTIM_TIM_TypeDef *) HRTIM1_TIMA_BASE)
-#define HRTIM1_TIMB         ((HRTIM_TIM_TypeDef *) HRTIM1_TIMB_BASE)
-#define HRTIM1_TIMC         ((HRTIM_TIM_TypeDef *) HRTIM1_TIMC_BASE)
-#define HRTIM1_TIMD         ((HRTIM_TIM_TypeDef *) HRTIM1_TIMD_BASE)
-#define HRTIM1_TIME         ((HRTIM_TIM_TypeDef *) HRTIM1_TIME_BASE)
+#define HRTIM1_TIMA         ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMA_BASE)
+#define HRTIM1_TIMB         ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMB_BASE)
+#define HRTIM1_TIMC         ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMC_BASE)
+#define HRTIM1_TIMD         ((HRTIM_Timerx_TypeDef *) HRTIM1_TIMD_BASE)
+#define HRTIM1_TIME         ((HRTIM_Timerx_TypeDef *) HRTIM1_TIME_BASE)

Full patch Related to https://github.com/STMicroelectronics/STM32CubeH7/issues/2.

CCASTM commented 5 years ago

Hello Niklas, Thank you for your finding. This has been communicated to the development team and we will come back to you (a very first analysis confirms the problem, as mentioned the STM32H7 series) Regards, Christophe

FVISTM commented 5 years ago

Hello, New internal Bugzilla tracker created (Ticket 67770 - [CMSIS Device] Wrong definition of HRTIM1_TIMx constants)

ALABSTM commented 5 years ago

ST Internal Reference: 67768

ALABSTM commented 4 years ago

Hi Salkinium,

This issue has been integrated to STM32CubeF3 v1.11.0 which will be available soon. This issue could be closed in this case.

With regards,