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

[STM32Gx]: Added erase support for multi-bank products #1420

Merged
merged 2 commits into from
Aug 11, 2024

Commits on Aug 11, 2024

  1. STM32Gx: flash: Set BKER bit for multi-bank products before erasing

    Products of the Gx series with more than 128K of flash use 2 banks.
    In this case we need to specify which bank to erase using the BKER bit.
    
    Reference: 3.7.5 - BKER
    d4ilyrun committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    589e244 View commit details
    Browse the repository at this point in the history
  2. STM32Gx: flash: clear programming mode before erasing

    As described in 3.3.8, if erasing while another mode's "enable" bit
    is set, a programming sequence error will be raised. This change
    makes sure this will not happen for an erase operation.
    d4ilyrun committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    bff6151 View commit details
    Browse the repository at this point in the history