Skip to main content
Associate
August 3, 2023
Solved

I am using CubeIDE, stm32l0xx_hal_def.h Apach-2.0

The contents of "stm32l0xx_hal_def." are shown in the attached photo.
It says something like "Apache-2.0".
This causes a compile error.
What should I do?

スクリーンショット 2023-08-03 10.16.04.png

    This topic has been closed for replies.
    TDK
    TDKBest answer
    August 3, 2023

    That's not a valid header file, no wonder it's giving error. Where did you get the project or how did you generate it? No doubt something went wrong in the process.

    See here for the correct file:

    https://github.com/STMicroelectronics/STM32CubeL0/blob/master/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_def.h

    Lots of error icons showing up on other headers, wouldn't be surprised if other files are wrong as well.

    "If you feel a post has answered your question, please click ""Accept as Solution""."

    3 replies

    tunaingotAuthor
    Associate
    August 3, 2023

    The contents of "stm32l0xx_hal_def." are as follows

    ---------------------------------------------------------

    This software component is provided to you as part of a software package and

    applicable license terms are in the Package_license file. If you received this

    software component outside of a package or without applicable license terms,

    the terms of the Apache-2.0 license shall apply.

    You may obtain a copy of the Apache-2.0 at:

    https://opensource.org/licenses/Apache-2.0

    TDK
    TDKBest answer
    August 3, 2023

    That's not a valid header file, no wonder it's giving error. Where did you get the project or how did you generate it? No doubt something went wrong in the process.

    See here for the correct file:

    https://github.com/STMicroelectronics/STM32CubeL0/blob/master/Drivers/STM32L0xx_HAL_Driver/Inc/stm32l0xx_hal_def.h

    Lots of error icons showing up on other headers, wouldn't be surprised if other files are wrong as well.

    "If you feel a post has answered your question, please click ""Accept as Solution""."
    tunaingotAuthor
    Associate
    August 3, 2023

    TDK san, Thank you!

    This issue has been resolved.