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

arch: stm32h7: Add support for dual bank flash #7258

Conversation

tito97sp
Copy link
Contributor

@tito97sp tito97sp commented Oct 8, 2022

Signed-off-by: Andrés Sánchez Pascual tito97_sp@hotmail.com

Summary

stm32_flash.c not supports currently the dual bank flash memory layout. This commit contemplates this possible layout.

Also a bug in stm32h7_israngeerased function has been solved.

Impact

stm32h7 arch and based boards.

Testing

Tested with nucleo-h743zi with multiple MTD drivers in different memory banks:

  • /dev/ota0 in bank1 (start_address 0x08040000, lenght 0xC0000)
  • /dev/ota1 in bank2 (start_address 0x08100000, lenght 0xC0000)
  • /dev/scratch in bank2 (start_address 0x081E0000, lenght 0x40000)

arch/arm/src/stm32h7/stm32_flash.c Outdated Show resolved Hide resolved
@tito97sp tito97sp force-pushed the bugfix/arch-stm32h7-dual-bank-support branch from 18ac952 to 25ee147 Compare October 9, 2022 12:06
memory

Signed-off-by: Andrés Sánchez Pascual <tito97_sp@hotmail.com>
@tito97sp tito97sp force-pushed the bugfix/arch-stm32h7-dual-bank-support branch from 25ee147 to fff06dc Compare October 9, 2022 12:29
@xiaoxiang781216 xiaoxiang781216 merged commit c28b05e into apache:master Oct 9, 2022
@jerpelea jerpelea added this to To-Add in Release Notes - 12.0.0 Dec 29, 2022
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 12.0.0 Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants