summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2022-12-08 21:57:52 +0100
committerTormod Volden <debian.tormod@gmail.com>2022-12-08 22:06:33 +0100
commitcae1bb8b08e3b71d62d185c924be0a3ca0093dd3 (patch)
tree8bd5ab5d5a41bd1eaa6179915482adde65a8e9e8
parent5580827cea00cc72cad77fc32bfa721d618b7c1a (diff)
dev_table: Tighten option bytes range for device ID 0x436 / 0x437
These dual-bank devices have two ranges of option bytes, and we previously listed the start of the first and the end of the second. Since we use the range (only) to display the number of option bytes, this can get very wrong for some dual-bank devices where the two ranges are far apart. So for consistency ignore the second range, as long as our table only support one range. https://sourceforge.net/p/stm32flash/tickets/92/ Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r--dev_table.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev_table.c b/dev_table.c
index e6d005c..1492c9c 100644
--- a/dev_table.c
+++ b/dev_table.c
@@ -129,8 +129,8 @@ const stm32_dev_t devices[] = {
{0x416, "STM32L1xxx6(8/B)" , 0x20000800, 0x20004000, 0x08000000, 0x08020000, 16, p_256 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF01000, F_NO_ME},
{0x429, "STM32L1xxx6(8/B)A" , 0x20001000, 0x20008000, 0x08000000, 0x08020000, 16, p_256 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF01000, F_NO_ME},
{0x427, "STM32L1xxxC" , 0x20001000, 0x20008000, 0x08000000, 0x08040000, 16, p_256 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF02000, F_NO_ME},
- {0x436, "STM32L1xxxD" , 0x20001000, 0x2000C000, 0x08000000, 0x08060000, 16, p_256 , 0x1FF80000, 0x1FF8009F, 0x1FF00000, 0x1FF02000, F_NO_ME},
- {0x437, "STM32L1xxxE" , 0x20001000, 0x20014000, 0x08000000, 0x08080000, 16, p_256 , 0x1FF80000, 0x1FF8009F, 0x1FF00000, 0x1FF02000, F_NO_ME},
+ {0x436, "STM32L1xxxD" , 0x20001000, 0x2000C000, 0x08000000, 0x08060000, 16, p_256 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF02000, F_NO_ME},
+ {0x437, "STM32L1xxxE" , 0x20001000, 0x20014000, 0x08000000, 0x08080000, 16, p_256 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF02000, F_NO_ME},
/* L4 */
{0x464, "STM32L412xx/422xx" , 0x20003100, 0x20008000, 0x08000000, 0x08020000, 1, p_2k , 0x1FFF7800, 0x1FFF780F, 0x1FFF0000, 0x1FFF7000, 0},
{0x435, "STM32L43xxx/44xxx" , 0x20003100, 0x2000C000, 0x08000000, 0x08040000, 1, p_2k , 0x1FFF7800, 0x1FFF780F, 0x1FFF0000, 0x1FFF7000, 0},