This is an automated email from Gerrit.

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

-- gerrit

commit ef80fd6be61004b575053c40d29adb21e3579c8a
Author: Christian Unhold <[email protected]>
Date:   Wed May 19 11:58:20 2021 +0200

    stm32h7x: enable access to undocumented Flash
    
    Change-Id: Ic3621e5202a92d2ac9b39877335dd95bd3ee744f
    Signed-off-by: Christian Unhold <[email protected]>

diff --git a/src/flash/nor/stm32h7x.c b/src/flash/nor/stm32h7x.c
index 52e3e0e..785718f 100644
--- a/src/flash/nor/stm32h7x.c
+++ b/src/flash/nor/stm32h7x.c
@@ -841,8 +841,8 @@ static int stm32x_probe(struct flash_bank *bank)
        } else {
                LOG_INFO("STM32H7 flash has a single bank");
                if (bank->base == bank2_base) {
-                       LOG_ERROR("this device has a single bank only");
-                       return ERROR_FAIL;
+                       LOG_WARNING("the second bank of this device is 
undocumented");
+                       has_dual_bank = true;
                } else if (bank->base != bank1_base) {
                        LOG_ERROR("STM32H7 flash bank base address config is 
incorrect. "
                                        TARGET_ADDR_FMT " but should be 0x%" 
PRIx32,

-- 

Reply via email to