stm32l4x: Fix stm32l4x dual bank support
commit20113201df25475889a3cd9ee22c0397e4fae530
authorAlex J Lennon <alex.lennon@s19.tech>
Thu, 2 Aug 2018 16:59:24 +0000 (2 17:59 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Mon, 26 Nov 2018 09:28:01 +0000 (26 09:28 +0000)
tree24da911b471f1b9a8a4361f64fb7c2ab35567337
parent1b864d6e49d634a382ba1ed13f650898872627cf
stm32l4x: Fix stm32l4x dual bank support

The dual bank option was being incorrectly read and the
bank b base incorrectly set. This is tested with 512kB
dual bank configuration but needs checking with other
configurations (e.g. 256kb).

This fix should remove the need to use a mass_erase command
prior to programming with OpenOCD

Change-Id: I6e920f11b794c4c1fd34c0e44fb8fa01e7fe8f85
Signed-off-by: Alex J Lennon <alex.lennon@s19.tech>
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4641
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-by: Thomas Søhus <soehus@gmail.com>
src/flash/nor/stm32l4x.c