riscv-openocd/src
CezaryGapinski e916bcda64 stm32lx: fix dual-bank configuration for Cat.5 and Cat.6 devices
Default values for .first_bank_size_kb and .has_dual_banks fields
described in stm32lx_parts[] do not fully describe
the real device memory layouts.

Basing on:
STM32L0x1 RM0377
STM32L0x2 RM0376
STM32L0x3 RM0367
STM32Lxxxx RM0038

correct values for memory layouts were selected:
id = 0x447 STM32L0xx (Cat.5) <- dual bank flash
for size 192 or 128 KBytes, single bank for 64 KBytes
id = 0x436 STM32L1xx (Cat.4 / Cat.3 - Medium + /
High Density) <- only one size of the bank,
default values are correct
id = 0x437 STM32L1xx (Cat.5 / Cat.6) <- always dual bank,
but size of the bank can be different

For that reason .part_info field in struct stm32lx_flash_bank
is a dynamic field with fields copied from stm32lx_parts[]
and overwriten to correct values
for specific chips and memory sizes.

Change-Id: If638cb0a9916097bfd4eda77d64feaf1ef2d2147
Signed-off-by: Cezary Gapiński <cezary.gapinski@gmail.com>
Reviewed-on: http://openocd.zylin.com/4074
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
2017-04-24 21:56:53 +01:00
..
flash stm32lx: fix dual-bank configuration for Cat.5 and Cat.6 devices 2017-04-24 21:56:53 +01:00
helper help/log.c: better error handling for "log_output" 2017-04-23 22:38:42 +01:00
jtag jtag/drivers cmsis-dap: do not limit speed so strictly 2017-04-24 06:28:28 +01:00
pld Convert to non-recursive make 2016-12-08 16:23:10 +00:00
rtos target: Add 64-bit target address support 2017-02-10 13:50:17 +01:00
server server: Allow 64 address to be send over GBD server 2017-02-10 13:51:00 +01:00
svf Convert to non-recursive make 2016-12-08 16:23:10 +00:00
target target: Fix memory leak 2017-04-23 20:48:45 +01:00
transport Convert to non-recursive make 2016-12-08 16:23:10 +00:00
xsvf Convert to non-recursive make 2016-12-08 16:23:10 +00:00
Makefile.am Convert to non-recursive make 2016-12-08 16:23:10 +00:00
hello.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
hello.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00
main.c Remove FSF address from GPL notices 2016-05-24 22:30:01 +01:00
openocd.c Remove build date from banner for releases 2016-12-08 12:55:19 +00:00
openocd.h Make #include guard naming consistent 2016-05-24 22:30:55 +01:00