Skip to main content
Andreas Fecht
Associate II
January 26, 2021
Solved

HAL Version Number Info

  • January 26, 2021
  • 6 replies
  • 2190 views

Hello,

I've a question about the HAL-Version FW_L4_V1.15.1.

In the file stm32l4xx_hal.c there are defines for the HAL-Version-Number:

#define STM32L4XX_HAL_VERSION_MAIN  (0x01U) /*!< [31:24] main version */

#define STM32L4XX_HAL_VERSION_SUB1  (0x0BU) /*!< [23:16] sub1 version */

#define STM32L4XX_HAL_VERSION_SUB2  (0x01U) /*!< [15:8] sub2 version */

#define STM32L4XX_HAL_VERSION_RC    (0x00U) /*!< [7:0] release candidate */

I expected the Numbers (0x01U) (0x0FU) (0x01U) (0x00U)

Why the STM32L4XX_HAL_VERSION_SUB1 has a wrong value?

Best regards

Andreas Fecht

This topic has been closed for replies.
Best answer by Imen.D

I think it is due to the issue I have shared in my previous post.

As for the HAL version, it is actually the HAL L4 V1.12.0 driver version used in the STM32CubeL4 V1.16.0 firmware package, with the associated versions are the following:

0693W000007CvHHQA0.jpgYou can refer to it in the Release_Notes.html file within the Cube MCU package.

Therefore, the HAL version V1.12.0 in the firmware package V1.16.0 is correct:

* @brief STM32L4xx HAL Driver version number
*/
#define STM32L4XX_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define STM32L4XX_HAL_VERSION_SUB1 (0x0CU) /*!< [23:16] sub1 version */
#define STM32L4XX_HAL_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
#define STM32L4XX_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */

Imen

6 replies

ST Technical Moderator
January 27, 2021

Hello @Andreas Fecht​ ,

After checking the latest STM32CubeL4 V1.16.0 MCU package, I found different HAL-Version-Number define, that you may want to check:

 * @brief STM32L4xx HAL Driver version number
 */
#define STM32L4XX_HAL_VERSION_MAIN (0x01U) /*!< [31:24] main version */
#define STM32L4XX_HAL_VERSION_SUB1 (0x0CU) /*!< [23:16] sub1 version */
#define STM32L4XX_HAL_VERSION_SUB2 (0x00U) /*!< [15:8] sub2 version */
#define STM32L4XX_HAL_VERSION_RC (0x00U) /*!< [7:0] release candidate */

Please mark my answer as best by clicking on the "Select as Best" button if it fully solved your issue. This will help other users find this solution more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
KnarfB
Super User
January 27, 2021

But the question remains: in the code SUB1 is 0x0CU which is 12 and not 16?