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/+/8014
-- gerrit commit 99fe3b6ed1044054412d90644b7dae174ac33abd Author: Marc Schink <d...@zapb.de> Date: Sat May 13 12:24:04 2023 +0200 flash/nor/stm32f1x: Add support for Geehy APM32F0 series Tested with APM32F030C8T. Change-Id: I63cd8b66424135dae481a96ba560e6f0b1f9544e Signed-off-by: Marc Schink <d...@zapb.de> diff --git a/doc/openocd.texi b/doc/openocd.texi index 45c2e4df5d..4d36cdc7e4 100644 --- a/doc/openocd.texi +++ b/doc/openocd.texi @@ -7676,6 +7676,7 @@ applied to all of them. All members of the STM32F0, STM32F1 and STM32F3 microcontroller families from STMicroelectronics and all members of the GD32F1x0, GD32F3x0 and GD32E23x microcontroller families from GigaDevice include internal flash and use ARM Cortex-M0/M3/M4/M23 cores. +The driver also works with the APM32F0 series from Geehy Semiconductor. The driver also works with GD32VF103 powered by RISC-V core. 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 b3bb843358..bfcfdc588e 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -748,6 +748,10 @@ static int stm32x_get_property_addr(struct target *target, struct stm32x_propert addr->device_id = 0x40015800; addr->flash_size = 0x1FFFF7CC; return ERROR_OK; + case CORTEX_M0P_PARTNO: /* APM32F0x devices */ + addr->device_id = 0x40015800; + addr->flash_size = 0x1FFFF7CC; + return ERROR_OK; case CORTEX_M3_PARTNO: /* STM32F1x devices */ addr->device_id = 0xE0042000; addr->flash_size = 0x1FFFF7E0; --