- update to 0.7 * Fix I2C page-by-page erase (Yann Sionneau) * Fix hex file base address not used, extraneous base padding (Renaud Fivet) * Fix truncated read from stdin (Renaud Fivet) * Fix input buffer flush on Windows (Jan Belohoubek) * More baud rates available, up to 4000000 * Allow skipping serial port setup with -b 0 * Support STM32L412xx/422xx (Andy Little) * Support STM32G05xxx/061xx (Luca Amati), STM32G0B0/B1/C1xx, STM32G491xx/A1xx - drop stm32flash-i2c-tools-headers-clash.patch OBS-URL: https://build.opensuse.org/request/show/1065592 OBS-URL: https://build.opensuse.org/package/show/electronics/stm32flash?expand=0&rev=14
63 lines
2.0 KiB
RPMSpec
63 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package stm32flash
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: stm32flash
|
|
Version: 0.7
|
|
Release: 0
|
|
Summary: Flash Program for the STM32 Bootloader
|
|
License: GPL-2.0-or-later
|
|
Group: Hardware/Other
|
|
URL: https://sourceforge.net/p/stm32flash/wiki/Home
|
|
Source: https://download.sourceforge.net/stm32flash/stm32flash-%{version}.tar.gz
|
|
|
|
%description
|
|
Open source flash program for the STM32 ARM processors using the ST
|
|
serial bootloader over UART or I2C.
|
|
|
|
Features:
|
|
- UART and I2C transports supported
|
|
- device identification
|
|
- write to flash/ram
|
|
- read from flash/ram
|
|
- auto-detect Intel HEX or raw binary input format with option to force
|
|
binary
|
|
- flash from binary file
|
|
- save flash to binary file
|
|
- verify & retry up to N times on failed writes
|
|
- start execution at specified address
|
|
- software reset the device when finished if -R is specified
|
|
- resume already initialized connection (for when reset fails, UART only)
|
|
- GPIO signalling to enter bootloader mode (hardware dependent)
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%make_build CFLAGS="-O2 %{optflags}" PREFIX=%{_prefix}
|
|
|
|
%install
|
|
make %{?_smp_mflags} CFLAGS="-O2 %{optflags}" PREFIX=%{_prefix} DESTDIR=%{buildroot} install
|
|
|
|
%files
|
|
%license gpl-2.0.txt
|
|
%doc HOWTO I2C.txt protocol.txt TODO
|
|
%{_bindir}/stm32flash
|
|
%{_mandir}/man1/stm32flash.1*
|
|
|
|
%changelog
|