This is an automated email from Gerrit.

"Tomas Vanek <van...@fbl.cz>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/6759

-- gerrit

commit 4ae0fe90671ba3755c8e47b2c8cdda2a4dce1344
Author: Tomas Vanek <van...@fbl.cz>
Date:   Tue Nov 30 10:33:41 2021 +0100

    flash/nor/stm32f1x: add can_load_options flag for GD32F1x0, F3x0 and E23x
    
    According to GigaDevice user manuals the devices have OBRLD bit in FMC_CTL
    register which is functionally compatible with OBL_LAUNCH @ FLASH_CR
    of STM32 counterparts.
    
    Change-Id: I84d231b38815fcb6452fd73b9153b269cce3b737
    Signed-off-by: Tomas Vanek <van...@fbl.cz>

diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c
index 9815a3a35..f9bee1e8b 100644
--- a/src/flash/nor/stm32f1x.c
+++ b/src/flash/nor/stm32f1x.c
@@ -890,10 +890,12 @@ static int stm32x_probe(struct flash_bank *bank)
                        stm32x_info->user_data_offset = 16;
                        stm32x_info->option_offset = 6;
                        max_flash_size_in_kb = 64;
+                       stm32x_info->can_load_options = true;
                        break;
                case 0x1704: /* gd32f3x0 */
                        stm32x_info->user_data_offset = 16;
                        stm32x_info->option_offset = 6;
+                       stm32x_info->can_load_options = true;
                        break;
                case 0x1906: /* gd32vf103 */
                        break;
@@ -901,6 +903,7 @@ static int stm32x_probe(struct flash_bank *bank)
                        stm32x_info->user_data_offset = 16;
                        stm32x_info->option_offset = 6;
                        max_flash_size_in_kb = 64;
+                       stm32x_info->can_load_options = true;
                        break;
                }
                break;

-- 

Reply via email to