This is an automated email from Gerrit.

Uwe Bonnes ([email protected]) just uploaded a new patch 
set to Gerrit, which you can find at http://openocd.zylin.com/3517

-- gerrit

commit 1b33da8a9c7c46e630faf159f8b0eab3c5d89c27
Author: Uwe Bonnes <[email protected]>
Date:   Sat Jun 11 14:13:33 2016 +0200

    stm32f4: Fix OPTCR_DB1M name and bit position.
    
    Change-Id: I81291c9a4c76869e43d396179c1103867ca8b845
    Signed-off-by: Uwe Bonnes <[email protected]>

diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c
index 4269c44..7ec9112 100644
--- a/src/flash/nor/stm32f2x.c
+++ b/src/flash/nor/stm32f2x.c
@@ -150,7 +150,7 @@
 #define OPT_RDRSTSTOP  3
 #define OPT_RDRSTSTDBY 4
 #define OPT_BFB2       5       /* dual flash bank only */
-#define OPT_DB1M       14      /* 1 MiB devices dual flash bank option */
+#define OPTCR_DB1M    31       /* F42x 1 MiB devices dual flash bank option */
 
 /* register unlock keys */
 
@@ -851,7 +851,7 @@ static int stm32x_probe(struct flash_bank *bank)
                        LOG_DEBUG("unable to read option bytes");
                        return retval;
                }
-               if (optiondata & (1 << OPT_DB1M)) {
+               if (optiondata & (1 << OPTCR_DB1M)) {
                        stm32x_info->has_large_mem = true;
                        LOG_INFO("Dual Bank 1024 kiB STM32F42x/43x found");
                }

-- 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to