flash/nor/stm32f2x: fix protection block size for F767 in dual bank mode
commit90a6245eecd82c95112c09700cfebcf2403d0478
authorTomas Vanek <vanekt@fbl.cz>
Thu, 26 Oct 2017 16:00:33 +0000 (26 18:00 +0200)
committerSpencer Oliver <spen@spen-soft.co.uk>
Tue, 12 Dec 2017 21:16:21 +0000 (12 21:16 +0000)
tree8d39136616a11cb4c8afcaa22d4db2f315275633
parent04227634896ebe6a600d647508b6c934791662b7
flash/nor/stm32f2x: fix protection block size for F767 in dual bank mode

A protection block comprises two adjacent sectors in dual bank mode.
As there are 64 and 128kB sectors joined in blocks 2 and 8, block size
should be computed as a sum of sector sizes.

Change-Id: Ie915df8cf7ca232c4565d7e0c514c8933e71fdfe
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4271
Tested-by: jenkins
Reviewed-by: Andreas Bolsch <hyphen0break@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/flash/nor/stm32f2x.c