File 0013-dev_table-Tighten-option-bytes-range-for-device-ID-0.patch of Package stm32flash

From cae1bb8b08e3b71d62d185c924be0a3ca0093dd3 Mon Sep 17 00:00:00 2001
From: Tormod Volden <debian.tormod@gmail.com>
Date: Thu, 8 Dec 2022 21:57:52 +0100
Subject: [PATCH 13/13] 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>
---
 dev_table.c | 4 ++--
 1 file 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},
-- 
2.39.2

openSUSE Build Service is sponsored by