From 43828f5f913395fb23ed5620d4abec4c459bee3d Mon Sep 17 00:00:00 2001 From: Russell Senior Date: Tue, 22 Sep 2020 23:11:20 -0700 Subject: [PATCH] stm32flash: add support for STM32G431xx Signed-off-by: Russell Senior --- utils/stm32flash/Makefile | 2 +- .../patches/100-add_support_for_stm32g4.patch | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 utils/stm32flash/patches/100-add_support_for_stm32g4.patch diff --git a/utils/stm32flash/Makefile b/utils/stm32flash/Makefile index 5621e9a467..b6f73d9394 100644 --- a/utils/stm32flash/Makefile +++ b/utils/stm32flash/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=stm32flash PKG_VERSION:=0.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=@SF/$(PKG_NAME) diff --git a/utils/stm32flash/patches/100-add_support_for_stm32g4.patch b/utils/stm32flash/patches/100-add_support_for_stm32g4.patch new file mode 100644 index 0000000000..f4ec0dbb24 --- /dev/null +++ b/utils/stm32flash/patches/100-add_support_for_stm32g4.patch @@ -0,0 +1,11 @@ +--- a/dev_table.c ++++ b/dev_table.c +@@ -90,6 +90,8 @@ const stm32_dev_t devices[] = { + {0x434, "STM32F469xx" , 0x20003000, 0x20060000, 0x08000000, 0x08200000, 1, f4db , 0x1FFEC000, 0x1FFFC00F, 0x1FFF0000, 0x1FFF7800, 0}, + /* F7 */ + {0x449, "STM32F74xxx/75xxx" , 0x20004000, 0x20050000, 0x08000000, 0x08100000, 1, f7 , 0x1FFF0000, 0x1FFF001F, 0x1FF00000, 0x1FF0EDC0, 0}, ++ /* G4 */ ++ {0x468, "STM32G431xx/441xx" , 0x20000000, 0x20004000, 0x08000000, 0x08020000, 1, p_2k , 0x1FFF7800, 0x1FFF780F, 0x1FFF0000, 0x1FFF7000, 0}, + /* L0 */ + {0x425, "STM32L031xx/041xx" , 0x20001000, 0x20002000, 0x08000000, 0x08008000, 32, p_128 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF01000, 0}, + {0x417, "STM32L05xxx/06xxx" , 0x20001000, 0x20002000, 0x08000000, 0x08010000, 32, p_128 , 0x1FF80000, 0x1FF8001F, 0x1FF00000, 0x1FF01000, 0},