cancel
Showing results for 
Search instead for 
Did you mean: 

How to check what version is STM32WLxx_HAL_Driver?

David_
Senior

I got this from github.  It compiles ok.  The package has source for STM32WLxx_HAL_Driver.  How can I find out what version is the STM32WLxx_HAL_Driver?  TIA

David__0-1712775785369.png

 

David__1-1712775902525.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @David_ 

I suggest you take a look at the following defines on the stm32wlxx_hal.c file:

#define __STM32WLxx_HAL_VERSION_MAIN   (0x01U) /*!< [31:24] main version */
#define __STM32WLxx_HAL_VERSION_SUB1   (0x03U) /*!< [23:16] sub1 version */
#define __STM32WLxx_HAL_VERSION_SUB2   (0x00U) /*!< [15:8]  sub2 version */
#define __STM32WLxx_HAL_VERSION_RC     (0x00U) /*!< [7:0]  release candidate */
#define __STM32WLxx_HAL_VERSION         ((__STM32WLxx_HAL_VERSION_MAIN << 24U)\
                                         |(__STM32WLxx_HAL_VERSION_SUB1 << 16U)\
                                         |(__STM32WLxx_HAL_VERSION_SUB2 << 8U )\
                                         |(__STM32WLxx_HAL_VERSION_RC))

 Best Regards.

STTwo-32 

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.

View solution in original post

1 REPLY 1
STTwo-32
ST Employee

Hello @David_ 

I suggest you take a look at the following defines on the stm32wlxx_hal.c file:

#define __STM32WLxx_HAL_VERSION_MAIN   (0x01U) /*!< [31:24] main version */
#define __STM32WLxx_HAL_VERSION_SUB1   (0x03U) /*!< [23:16] sub1 version */
#define __STM32WLxx_HAL_VERSION_SUB2   (0x00U) /*!< [15:8]  sub2 version */
#define __STM32WLxx_HAL_VERSION_RC     (0x00U) /*!< [7:0]  release candidate */
#define __STM32WLxx_HAL_VERSION         ((__STM32WLxx_HAL_VERSION_MAIN << 24U)\
                                         |(__STM32WLxx_HAL_VERSION_SUB1 << 16U)\
                                         |(__STM32WLxx_HAL_VERSION_SUB2 << 8U )\
                                         |(__STM32WLxx_HAL_VERSION_RC))

 Best Regards.

STTwo-32 

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.