Skip to content
Commit 80255241 authored by Alexander Wachter's avatar Alexander Wachter Committed by Maureen Helm
Browse files

drivers: flash: stm32g4: Fix erase on wrong bank



In the default configuration of the stm32g4 is the dual bank mode.
In dual bank mode, the flash is split into two banks with 256k each.
The erase pages have a range form 0 to 127, where each page has 2k.
If one wants to erase an area above 256k, the driver has to switch
to bank 2 befor erasing. Otherwise it will erase the page moulo 127.

Signed-off-by: default avatarAlexander Wachter <alexander.wacher@leica-geosystems.com>
parent 7b9320be
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment