Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

EEPROM emulation: wrong flash sector used for some F7 variants#938

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

ABOSTM
Copy link
Contributor

Summary
EEPROM emulation: wrong flash sector used for some STM32F7 variants

Default configuration for F76xx and F77xx chip is single bank.
But HAL define FLASH_SECTOR_TOTAL doesn't represent the real number of sector,
instead, it represents the maximum number of sectors (for single and dual bank).
So for variants using F76xx and F77xx chip,
we must define FLASH_BASE_ADDRESS and FLASH_DATA_SECTOR in order to use the last sector of the flash corresponding to the default single bank configuration.

Variants concerned: NUCLEO_F767ZI and REMRAM

Fixes#297

Default configuration for F76xx and F77xx chip is single bank.But HAL define FLASH_SECTOR_TOTAL doesn't represent the real number of sector,instead, it represents the maximum number of sectors (for single and dual bank).So for variants using F76xx and F77xx chip,we must define FLASH_BASE_ADDRESS and FLASH_DATA_SECTOR in order to use the last sector of the flash corresponding to the default single bank configuration.Variants concerned: NUCLEO_F767ZI and REMRAMFixesstm32duino#297
@ABOSTMABOSTMforce-pushed theEEPROM_FLASH_SECTOR_DEFINITION branch from0d1c001 toc0cfed9CompareFebruary 13, 2020 17:41
@fpistmfpistm added enhancementNew feature or request fix 🩹Bug fix labelsFeb 13, 2020
@fpistmfpistm added this to the1.9.0 milestoneFeb 13, 2020
Copy link
Member

@fpistmfpistm left a comment

Choose a reason for hiding this comment

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

LGTM
Thanks@ABOSTM

@fpistmfpistm merged commit89e08d2 intostm32duino:masterFeb 14, 2020
Bmooij pushed a commit to Bmooij/Arduino_Core_STM32 that referenced this pull requestJul 14, 2020
…duino#938)Default configuration for F76xx and F77xx chip is single bank.But HAL define FLASH_SECTOR_TOTAL doesn't represent the real number of sector,instead, it represents the maximum number of sectors (for single and dual bank).So for variants using F76xx and F77xx chip,we must define FLASH_BASE_ADDRESS and FLASH_DATA_SECTOR in order to use the last sector of the flash corresponding to the default single bank configuration.Variants concerned: NUCLEO_F767ZI and REMRAMFixesstm32duino#297
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fpistmfpistmfpistm approved these changes

Assignees
No one assigned
Labels
enhancementNew feature or requestfix 🩹Bug fix
Projects
None yet
Milestone
1.9.0
Development

Successfully merging this pull request may close these issues.

Possible bug when writing to flash using the EEPROM library (F7)
2 participants
@ABOSTM@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp