cancel
Showing results for 
Search instead for 
Did you mean: 

HAL Version Number Info

Andreas Fecht
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

View solution in original post

6 REPLIES 6
Imen.D
ST Employee

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

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

I've an other problem with HAL-version 1.16.0. This is the reason about the question of the exact version-number.

When I compile my project with HAL-version 1.16.0, the software runs about 13% faster. Also the baud rate of the serial RS232-interface is 13% too high.

Up to version 1.15.1 everything is correct.

I use the Keil compiler in version 5.25.2.0.

A test with STM32CubeIDE 1.5.0 brings the same result: With HAL-version 1.16.0 the software runs faster and the RS232 Baudrate is no more correct!

Andy ideas?

Best regards

Andreas Fecht

Hi @Andreas Fecht​ ,

Thanks for pointing out this issue. I'm checking this internally.

Did you reproduced this issue on STM32L431/L432/L433/L442 or L443 MCU ?

Could be linked to the issue of HSI not running at the exact speed.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

I'm using the controller STM32L433CCU3.

Best regards

Andreas

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

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen