flash/stm32l4x: add support of STM32WB1x
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Fri, 26 Mar 2021 14:07:41 +0000 (15:07 +0100)
committerOleksij Rempel <linux@rempel-privat.de>
Thu, 2 Sep 2021 17:21:34 +0000 (17:21 +0000)
commit4f371e8eed5c4e479d326cf09f7827884c23b947
treea3cb358700d29fd56a67d501016b34e11930e3d1
parentaf3575b931b2bbd8b82d64f2f4495bae1741a1b1
flash/stm32l4x: add support of STM32WB1x

STM32WB1x devices has a single flash bank up to 320 KB (page 2KB)

note: STM32WB5x/WB3x are single banks as well but do have 4KB as page size.
note: remove the assert that checks if max_mages is power of two, because
      STM32WB1x flash size is not a power of 2

Change-Id: Ib514cf989ecb819d25d1c4a65d641d0a1a3d9f18
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6129
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/flash/nor/stm32l4x.c