Skip to main content
tony2399
Associate II
October 30, 2016
Question

STM32L0Cube UART HAL pulls in extraneous floating point code

  • October 30, 2016
  • 1 reply
  • 646 views
Posted on October 30, 2016 at 18:47

Hi,

The latest STM32L0Cube UART Hal pulls in unnecessary floating point code when initializing the UART. The culprit is the __DIV_LPUART macro, which contains a floating point number (256.0). When replaced with the version from STM32L4Cube, it no longer pulls in floating point libraries.

The extra code takes up at least 6KB of extra code space, which is a lot for the smaller L0's.

Tony

    This topic has been closed for replies.

    1 reply

    Anders Dam Kofoed
    Associate II
    December 14, 2016
    Posted on December 14, 2016 at 22:18

    https://community.st.com/0D70X000006SJVESA4