Skip to main content
raptorhal2
Lead
February 20, 2017
Question

Compiled HAL Library Errors

  • February 20, 2017
  • 3 replies
  • 880 views
Posted on February 20, 2017 at 02:23

Ever since the dawn of HAL, every HAL library I have tried has contained compiler detected errors. My latest frustration source is the STM32L4xx HAL library version 1.6.0. The problems are diverse and include:

  1.         Typo differences in peripheral register bit definitions between the reference manual, the device stm32l4yyxx.h file and  the hal peripheral .c file (yy = 76, 86, etc.).
  2.         Missing peripheral register bit definitions in the device stm32lyyxx.h file.
  3.         Hal peripheral .c file with a code segment with no conditional compile referencing a conditionally compiled parameter.

Some of the problems I can fix myself, but I don’t think I should have to. The root problem seems to be incomplete or non-existent library compile and fix before release.

It’s tough to get universal HAL acceptance with stuff like this going on.

Hal

    This topic has been closed for replies.

    3 replies

    Nesrine M_O
    Associate
    February 20, 2017
    Posted on February 20, 2017 at 11:57

    Hi

    Baird.Hal

    ,

    Could you please provide more detailsabout the issue that you have encountered using the

    STM32L4xx HAL library version 1.6.0, so that it will be easier to check and report internally?

    -Nesrine-

    raptorhal2
    Lead
    February 20, 2017
    Posted on February 20, 2017 at 15:58

    The issue is simple - the libraries need to be compiled and all compiler detected errors fixed before release.

    raptorhal2
    Lead
    February 20, 2017
    Posted on February 20, 2017 at 22:33

    My apologies.

    I had updated the HAL Peripheral Library, but the device header file stm32L476xx.h was a previous version. I get a clean compile now.

    Hal