Hi, Thanks for the comment. The STM32F407 is similar to the STM32F405. The main differences are in peripherals (the F407 integrates Ethernet MAC and a camera interface, which the F405 lacks). I’ll review the common parts and see what code can be shared in revision V3. Best Wishes, --Yihao Fan
范艺豪 fanyi...@rt-thread.org Original: From:Peter Maydell <peter.mayd...@linaro.org>Date:2025-08-16 01:56:02(中国 (GMT+08:00))To:fanyihao<fanyi...@rt-thread.org>Cc:qemu-devel<qemu-devel@nongnu.org> , Alistair Francis <alist...@alistair23.me>Subject:Re: [PATCH v2 1/3] Add-the-stm32f407-SoCOn Mon, 21 Jul 2025 at 21:11, <fanyi...@rt-thread.org> wrote: > > From: Yihao Fan <fanyi...@rt-thread.org> > > This patch introduces a new QEMU machine type for the STM32F407 SoC featuring > a Cortex-M4 core. > This will be used by the RT-Spark to create a machine. The Subject line of this patch seems to have hyphens instead of spaces. A "hw/arm:" prefix would also be helpful. > diff --git a/hw/arm/stm32f407_soc.c b/hw/arm/stm32f407_soc.c > new file mode 100644 > index 0000000000..0a91d4bb10 > --- /dev/null > +++ b/hw/arm/stm32f407_soc.c > @@ -0,0 +1,130 @@ > +/* SPDX-License-Identifier: GPL-2.0-or-later */ This seems very similar to the existing stm32f05_soc.c. How different are these two SoCs? Would it make sense to share code? I've cc'd Alistair as the maintainer of the stm32f05. thanks -- PMM