Skip to content
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

EEPROM hardfault: eeprom_buffer should be 8 bytes aligned #931

Merged
merged 1 commit into from
Feb 11, 2020

Conversation

ABOSTM
Copy link
Contributor

@ABOSTM ABOSTM commented Feb 10, 2020

Summary
EEPROM hardfault: eeprom_buffer should be 8 bytes aligned

Due to some cast on (uint64_t *) of eeprom_buffer,
compiler may use asm instruction LDRD which required an alignment:
4 bytes on Armv7 architecture,
and 8 bytes (depending on SCTLR.U) on Armv6 architecture.
To fit to all cases, alignment is made on 8 bytes.

Fixes #930

@fpistm fpistm added the Fix label Feb 10, 2020
@fpistm fpistm added this to In progress in STM32 core based on ST HAL via automation Feb 10, 2020
@fpistm fpistm added this to the 1.9.0 milestone Feb 10, 2020
Due to some cast on (uint64_t *) of eeprom_buffer,
compiler may use asm instruction LDRD which required an alignment:
4 bytes on Armv7 architecture,
and 8 bytes (depending on SCTLR.U) on Armv6 architecture.
To fit to all cases, alignment is made on 8 bytes.

Fixes stm32duino#930
STM32 core based on ST HAL automation moved this from In progress to Reviewer approved Feb 11, 2020
Copy link
Member

@fpistm fpistm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fpistm fpistm merged commit c29e234 into stm32duino:master Feb 11, 2020
STM32 core based on ST HAL automation moved this from Reviewer approved to Done Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

EEPROM usage hangs sometimes
2 participants