The current code to erase flash is only using the mer field.
On bigger chips, there is two memory banks, so the mer field is split in two for the two memory banks, mer1 and mer2.
This PR add checks to configure either mer or mer[12] for erase functions.
The current code to erase flash is only using the
mer
field. On bigger chips, there is two memory banks, so themer
field is split in two for the two memory banks,mer1
andmer2
.This PR add checks to configure either
mer
ormer[12]
for erase functions.