Skip to content

stm32g0xx_hal_flash.h does not have FLASH_FLAG_ALL_ERRORS #2056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
amanenk opened this issue Jul 8, 2023 · 2 comments
Closed

stm32g0xx_hal_flash.h does not have FLASH_FLAG_ALL_ERRORS #2056

amanenk opened this issue Jul 8, 2023 · 2 comments
Labels
invalid This doesn't seem right third party library Linked to a third party library

Comments

@amanenk
Copy link

amanenk commented Jul 8, 2023

Describe the bug
I am trying to create a program that uses flash memory of STM32G030F6 as storage for configs. I have found a library that might do it but i cant build a code with it. the link to the library https://github.com/khoih-prog/FlashStorage_STM32. When i try to build the library the compiler gives the next error error: 'FLASH_FLAG_ALL_ERRORS' was not declared in this scope; did you mean 'FLASH_FLAG_REG_POS'?.

To Reproduce
to reproduce you need to create an empty project with STM32G030F6 , import #khoih-prog/FlashStorage_STM32 library, and try to build it.

@fpistm
Copy link
Member

fpistm commented Jul 8, 2023

Hi @amanenk ,
This issue is not linked to the core. This flag is defined by the HAL for some series and used by third party library.
As the core uses HAL without no change, this issue is not valid. Third party librariy have to update its code or submit this to official HAL tepo

@fpistm fpistm added invalid This doesn't seem right third party library Linked to a third party library labels Jul 8, 2023
@fpistm fpistm closed this as completed Jul 8, 2023
@fpistm
Copy link
Member

fpistm commented Jul 10, 2023

Just to go further, the FLASH_FLAG_ALL_ERRORS was removed from the STM32CubeG0 v1.4.1, see #1253 .
As you can see I got the same issue and resolve this like this:
b3f5a2f

So you can probably define it like I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right third party library Linked to a third party library
Projects
None yet
Development

No branches or pull requests

2 participants