]> git.gag.com Git - fw/stlink/commit
SNB is wider than three bits on STM32F4
authorSven Wegener <sven.wegener@stealer.net>
Tue, 21 Oct 2014 08:04:10 +0000 (10:04 +0200)
committerSven Wegener <sven.wegener@stealer.net>
Tue, 21 Oct 2014 14:33:12 +0000 (16:33 +0200)
commitabe1a0f026807ad1aec26b3f1ac176fd053b661f
tree20b20cefbc9f368498c89cafcd1816420020de2a
parent87bb966922b8039646615b7946a172872504ad50
SNB is wider than three bits on STM32F4

The SNB part of the FLASH_CR register is four bits wide on F4 devices
and five bits wide on F4_HD devices. F4 devices have a reserved bit
alongside the sector number, so just increase the bitmask to cover all
five bits.

Currently flashing breaks, if flahing sector eight and above before
flashing lower sectors, because the highest bit is never unset.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
src/stlink-common.c