This is an automated email from Gerrit.

"zapb <d...@zapb.de>" just uploaded a new patch set to Gerrit, which you can 
find at https://review.openocd.org/c/openocd/+/8351

-- gerrit

commit 33f0e33d46f915d3214de7c45120015a88ae07e9
Author: Marc Schink <d...@zapb.de>
Date:   Fri Jun 21 08:35:02 2024 +0100

    flash/nor/stm32f1x: Add GD32L233x support
    
    The revision number is not updated since there is no information in the
    datasheet.
    
    Tested with GD32L233CCT6 (programming, write protection and mass erase).
    
    Change-Id: Ia105fca8843449672cd497576da8b2d7334baa1b
    Signed-off-by: Marc Schink <d...@zapb.de>

diff --git a/doc/openocd.texi b/doc/openocd.texi
index e46e6004bc..86d1e47d5f 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -7739,7 +7739,7 @@ applied to all of them.
 
 @deffn {Flash Driver} {stm32f1x}
 This driver supports the STM32F0, STM32F1 and STM32F3 microcontroller series 
from STMicroelectronics.
-The driver is also compatible with the GD32F1, GD32VF103 (RISC-V core), GD32F3 
and GD32E23 microcontroller series from GigaDevice.
+The driver is also compatible with the GD32F1, GD32VF103 (RISC-V core), 
GD32F3, GD32E23 and GD32L233 microcontroller series from GigaDevice.
 The driver also supports the APM32F0 and APM32F1 series from Geehy 
Semiconductor.
 The driver automatically recognizes a number of these chips using the chip 
identification register, and autoconfigures itself.
 
diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c
index 5a3c2da663..604d7fcfe0 100644
--- a/src/flash/nor/stm32f1x.c
+++ b/src/flash/nor/stm32f1x.c
@@ -757,7 +757,11 @@ static int stm32x_get_property_addr(struct target *target, 
struct stm32x_propert
                addr->device_id = 0xE0042000;
                addr->flash_size = 0x1FFFF7CC;
                return ERROR_OK;
-       case CORTEX_M23_PARTNO: /* GD32E23x devices */
+       case CORTEX_M23_PARTNO:
+                /*
+                 * GD32E23x devices
+                 * GD32L233x devices
+                 */
                addr->device_id = 0x40015800;
                addr->flash_size = 0x1FFFF7E0;
                return ERROR_OK;

-- 

Reply via email to