This is an automated email from Gerrit.

"Jérôme Pouiller <[email protected]>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9441

-- gerrit

commit 0f23384d114dd4154d1f49d700152b41e16bc8d0
Author: Jérôme Pouiller <[email protected]>
Date:   Wed Feb 4 16:46:57 2026 +0100

    flash/nor/efm32: Fix is_protected value
    
    is_protected should be initialized to -1.
    
    Signed-off-by: Jérôme Pouiller <[email protected]>
    Change-Id: Ia4ccf1cea3feb3843a82179bcfe2fd884beed613

diff --git a/src/flash/nor/efm32.c b/src/flash/nor/efm32.c
index db56b5d2cb..0b7ae090c2 100644
--- a/src/flash/nor/efm32.c
+++ b/src/flash/nor/efm32.c
@@ -1096,7 +1096,7 @@ static int efm32x_probe(struct flash_bank *bank)
                bank->sectors[i].offset = i * efm32_mcu_info->page_size;
                bank->sectors[i].size = efm32_mcu_info->page_size;
                bank->sectors[i].is_erased = -1;
-               bank->sectors[i].is_protected = 1;
+               bank->sectors[i].is_protected = -1;
        }
 
        efm32x_info->probed[bank_index] = true;

-- 

Reply via email to