This is an automated email from Gerrit. Uli Köhler ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4561
-- gerrit commit 9dd08fea03a27a24945193a96832c70b4d1b110e Author: Uli Köhler <[email protected]> Date: Mon Jun 11 22:32:08 2018 +0200 Added device ID support for STM32F413 (device ID 0x463) OpenOCD 0.10.0 does not recognize the STM32F413(CG) as STM32 processor as (deviceID & 0xfff) == 0x463 which is not listed in stm32f2x.c This change adds F413 support. I've verified this patch by using my own F413 board. The device ID (0x463) and the max flash size of 1536 kb has been verified in the datasheet http://www.mouser.com/ds/2/389/stm32f413cg-1042897.pdf The flash size register (= default) and the max flash sector size (= default) have been verified in the refman http://www.st.com/content/ccc/resource/technical/document/reference_manual/group0/81/ea/88/1f/97/9e/4a/d0/DM00305666/files/DM00305666.pdf/jcr:content/translations/en.DM00305666.pdf I've only tested up to the point of a) being able to flash and b) being able to connect using GDB. I have no knowledge if adding this ID anywhere else is required. Change-Id: If336c68d5c0598e37212a49c61ed2b5e2c9062ff Signed-off-by: Uli Köhler <[email protected]> diff --git a/src/flash/nor/stm32f2x.c b/src/flash/nor/stm32f2x.c index 8013e58..73d8d6f 100644 --- a/src/flash/nor/stm32f2x.c +++ b/src/flash/nor/stm32f2x.c @@ -882,6 +882,9 @@ static int stm32x_probe(struct flash_bank *bank) case 0x441: /* F412 */ max_flash_size_in_kb = 512; break; + case 0x463: /* F413 */ + max_flash_size_in_kb = 1536; + break; case 0x458: /* F410 */ max_flash_size_in_kb = 128; -- ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
