cancel
Showing results for 
Search instead for 
Did you mean: 

I am using CubeIDE, stm32l0xx_hal_def.h Apach-2.0

tunaingot
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

3 REPLIES 3
tunaingot
Associate II

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
Guru

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".
tunaingot
Associate II

TDK san, Thank you!

This issue has been resolved.