🤞 Sync 2026-04-23 06:19:46

This commit is contained in:
github-actions[bot] committed 2026-04-23 06:19:46 +08:00
1 parent a1df15cd3d
commit b86d032e91
250 files changed
+41507 -188

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
#
# Copyright (C) 2012-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=stm32flash
PKG_VERSION:=0.7
PKG_RELEASE:=1
PKG_SOURCE:=stm32flash-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_NAME)
PKG_HASH:=skip
PKG_MAINTAINER:=Christian Pointner <equinox@spreadspace.org>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=gpl-2.0.txt
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/stm32flash-gd
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=Microcontroller programming
URL:=https://sourceforge.net/projects/stm32flash
TITLE:=Firmware flash tool for STM32's serial bootloader
endef
define Package/stm32flash-gd/description
This tool can be used to burn firmware images to STM32 ARM processors
using the built-in serial bootloader.
endef
define Package/stm32flash-gd/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/stm32flash $(1)/usr/bin/
endef
$(eval $(call BuildPackage,stm32flash-gd))
@@ -0,0 +1,10 @@
--- a/dev_table.c
+++ b/dev_table.c
@@ -143,5 +143,7 @@ const stm32_dev_t devices[] = {
{0x641, "Medium_Density PL" , 0x20000200, 0x20005000, 0x08000000, 0x08020000, 4, p_1k , 0x1FFFF800, 0x1FFFF80F, 0x1FFFF000, 0x1FFFF800, 0},
{0x9a8, "STM32W-128K" , 0x20000200, 0x20002000, 0x08000000, 0x08020000, 4, p_1k , 0x08040800, 0x0804080F, 0x08040000, 0x08040800, 0},
{0x9b0, "STM32W-256K" , 0x20000200, 0x20004000, 0x08000000, 0x08040000, 4, p_2k , 0x08040800, 0x0804080F, 0x08040000, 0x08040800, 0},
+ /* GD32 */
+ {0x482, "GD32F10xxx High-density" , 0x20000200, 0x20010000, 0x08000000, 0x08080000, 2, p_2k , 0x1FFFF800, 0x1FFFF80F, 0x1FFFF000, 0x1FFFF800, 0},
{ /* sentinel */ }
};