This is an automated email from Gerrit. Shirish Jamthe (sjam...@yahoo.com) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/5269
-- gerrit commit 6951933b06df9a526296a8b40723c6f9c8d8b9d0 Author: Shirish Jamthe <sjam...@yahoo.com> Date: Fri Aug 2 18:31:35 2019 -0700 support for AT32F403 microcontroller. Change-Id: I67c516e24fabd72d43545dce287af8cc89adeae9 Signed-off-by: Shirish Jamthe <sjam...@yahoo.com> diff --git a/src/flash/nor/stm32f1x.c b/src/flash/nor/stm32f1x.c index cf10e37..35f02b0 100644 --- a/src/flash/nor/stm32f1x.c +++ b/src/flash/nor/stm32f1x.c @@ -762,6 +762,11 @@ static int stm32x_probe(struct flash_bank *bank) stm32x_info->default_rdp = 0xAA; stm32x_info->can_load_options = true; break; + case 0x242: /* AT32F403 */ + page_size = 2048; + stm32x_info->ppage_size = 2; + max_flash_size_in_kb = 512; + break; case 0x446: /* stm32f303xD/E */ page_size = 2048; stm32x_info->ppage_size = 2; @@ -833,8 +838,8 @@ static int stm32x_probe(struct flash_bank *bank) /* failed reading flash size or flash size invalid (early silicon), * default to max target family */ if (retval != ERROR_OK || flash_size_in_kb == 0xffff || flash_size_in_kb == 0) { - LOG_WARNING("STM32 flash size failed, probe inaccurate - assuming %dk flash", - max_flash_size_in_kb); + LOG_WARNING("STM32 flash size failed got %dk, probe inaccurate - assuming %dk flash", + flash_size_in_kb, max_flash_size_in_kb); flash_size_in_kb = max_flash_size_in_kb; } -- _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel