Skip to content

Commit 2087711

Browse files
General Project Update
- Updated CHANGELOG.md - Updated README.md - Removed support for macOS (Closes stlink-org#1269)
1 parent c2db68e commit 2087711

File tree

28 files changed

+8
-1245
lines changed

28 files changed

+8
-1245
lines changed

.github/ISSUE_TEMPLATE/bug-report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ labels: ""
2020
In order to allow developers to isolate and target your respective issue, please take some time to select the check boxes below and fill out each of the following items appropriate to your specific problem.
2121

2222
- [ ] Programmer/board type: [enter here] (e.g STLINK /V1, /V2, /V2-onboard, /V2-clone, /V3)
23-
- [ ] Operating system an version: [enter here] (e.g Linux, macOS, Windows)
23+
- [ ] Operating system an version: [enter here] (e.g Linux, Windows)
2424
- [ ] **stlink tools version** and/or git commit hash: [enter here] (e.g v1.6.1/git-d0416149)
2525
- [ ] stlink commandline tool name: [enter here] (e.g `st-info`, `st-flash`, `st-trace`, `st-util`)
2626
- [ ] Target chip (and board, if applicable): [enter here] (e.g STM32F103C8T6 (NUCLEO-F103RB))

.github/workflows/c-cpp.yml

-82
Original file line numberDiff line numberDiff line change
@@ -188,88 +188,6 @@ jobs:
188188
run: sudo make package
189189
- name: sudo make uninstall
190190
run: sudo make uninstall && sudo make clean
191-
192-
# macOS
193-
194-
job_macos_10_15_gcc:
195-
name: macos-10.15 gcc
196-
runs-on: macos-10.15
197-
steps:
198-
- uses: actions/checkout@v2
199-
- name: Install dependencies
200-
run: brew install gcc libusb gtk+3
201-
- name: make debug
202-
run: sudo make clean && make debug
203-
- name: make test
204-
run: sudo make clean && make test
205-
- name: make release
206-
run: sudo make clean && make release
207-
- name: sudo make install
208-
run: sudo make clean && sudo make install
209-
- name: sudo make package
210-
run: sudo make package
211-
- name: sudo make uninstall
212-
run: sudo make uninstall && sudo make clean
213-
214-
job_macos_10_15_clang:
215-
name: macos-10.15 clang
216-
runs-on: macos-10.15
217-
steps:
218-
- uses: actions/checkout@v2
219-
- name: Install dependencies
220-
run: brew install llvm libusb gtk+3
221-
- name: make debug
222-
run: sudo make clean && make debug
223-
- name: make test
224-
run: sudo make clean && make test
225-
- name: make release
226-
run: sudo make clean && make release
227-
- name: sudo make install
228-
run: sudo make clean && sudo make install
229-
- name: sudo make package
230-
run: sudo make package
231-
- name: sudo make uninstall
232-
run: sudo make uninstall && sudo make clean
233-
234-
# job_macos_11_gcc:
235-
# name: macos-11.0 gcc
236-
# runs-on: macos-11.0
237-
# steps:
238-
# - uses: actions/checkout@v2
239-
# - name: Install dependencies
240-
# run: brew install gcc libusb gtk+3
241-
# - name: make debug
242-
# run: sudo make clean && make debug
243-
# - name: make test
244-
# run: sudo make clean && make test
245-
# - name: make release
246-
# run: sudo make clean && make release
247-
# - name: sudo make install
248-
# run: sudo make clean && sudo make install
249-
# - name: sudo make package
250-
# run: sudo make package
251-
# - name: sudo make uninstall
252-
# run: sudo make uninstall && sudo make clean
253-
# job_macos_11_clang:
254-
# name: macos-11.0 clang
255-
# runs-on: macos-11.0
256-
# steps:
257-
# - uses: actions/checkout@v2
258-
# - name: Install dependencies
259-
# run: brew install llvm libusb gtk+3
260-
# - name: make debug
261-
# run: sudo make clean && make debug
262-
# - name: make test
263-
# run: sudo make clean && make test
264-
# - name: make release
265-
# run: sudo make clean && make release
266-
# - name: sudo make install
267-
# run: sudo make clean && sudo make install
268-
# - name: sudo make package
269-
# run: sudo make package
270-
# - name: sudo make uninstall
271-
# run: sudo make uninstall && sudo make clean
272-
273191
# Linux MinGW cross compliation
274192

275193
# job_linux_20_04_cross:

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Updates & changes:
4242
- [refactoring] Sourcefile 'common.c' ([#1218](https://github.com/stlink-org/stlink/pull/1218), [#1220](https://github.com/stlink-org/stlink/pull/1220))
4343
- Set C standard through cmake variables ([#1221](https://github.com/stlink-org/stlink/pull/1221))
4444
- [doc] Added make install to the macOS compiling instructions ([#1259](https://github.com/stlink-org/stlink/pull/1259))
45-
- [doc] Linux Install from code Documentation improvement ([#1263](https://github.com/stlink-org/stlink/pull/1263), (commit [#2926648](https://github.com/stlink-org/stlink/commit/2926648be78f32919c0624bf1060b17fffde8b0d))
45+
- [doc] Linux Install from code Documentation improvement ([#1263](https://github.com/stlink-org/stlink/pull/1263), (commit [#43498de](https://github.com/stlink-org/stlink/commit/43498dedf651260ef34197e512d35e3ad7142401))
4646

4747
Fixes:
4848
- cmake: Install shared libraries in proper directories ([#1142](https://github.com/stlink-org/stlink/pull/1142))
@@ -63,6 +63,7 @@ Fixes:
6363
- Included 'SSIZE_MAX' from 'limits.h' in 'src/common.c' ([#1207](https://github.com/stlink-org/stlink/pull/1207))
6464
- Fix for libusb_kernel_driver_active & error handling for st.st_size () ([#1210](https://github.com/stlink-org/stlink/pull/1210), [#1211](https://github.com/stlink-org/stlink/pull/1211), [#1214](https://github.com/stlink-org/stlink/pull/1214)
6565
- st-trace: Fixed clock issues ([#1251](https://github.com/stlink-org/stlink/pull/1251), [#1252](https://github.com/stlink-org/stlink/pull/1252))
66+
- Fixed compilation with gcc-12 ([#1257](https://github.com/stlink-org/stlink/pull/1257), [#1267](https://github.com/stlink-org/stlink/pull/1267))
6667
- Fixed flash regs addr for STM32L152RET6 in common_flash.c ([#1265](https://github.com/stlink-org/stlink/pull/1265))
6768
- Fixed flash, dbgmcu and rcc registers for STM32L1 ([#1266](https://github.com/stlink-org/stlink/pull/1266))
6869

README.md

+1-13
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
[![CodeQL](https://github.com/stlink-org/stlink/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/stlink-org/stlink/actions/workflows/codeql-analysis.yml)
1010
[![C/C++ CI](https://github.com/stlink-org/stlink/actions/workflows/c-cpp.yml/badge.svg?branch=testing)](https://github.com/stlink-org/stlink/actions/workflows/c-cpp.yml)
1111
[![Linux Status](https://img.shields.io/travis/stlink-org/stlink/master?env=BADGE=linux&label=linux)](https://travis-ci.org/stlink-org/stlink)
12-
[![macOS Status](https://img.shields.io/travis/stlink-org/stlink/master?env=BADGE=osx&label=osx)](https://travis-ci.org/stlink-org/stlink)
1312

1413
Recent new features and bugfixes can be found in the [Changelog](CHANGELOG.md) of this software project.
1514

@@ -22,7 +21,7 @@ The stlink library and tools are licensed under the **[BSD-3 License](LICENSE.md
2221
stlink is an open source toolset to program and debug STM32 devices and boards manufactured by STMicroelectronics.
2322
It supports several so called STLINK programmer boards (and clones thereof) which use a microcontroller chip to translate commands from USB to JTAG/SWD. There are four generations available on the market which are _all_ supported by this toolset:
2423

25-
- **STLINK/V1** _[obsolete as of 21-11-2019, continued support by this toolset] \*)_
24+
- **STLINK/V1** _[obsolete as of 21-11-2019, continued support by this toolset]_
2625
- transport layer: SCSI passthru commands over USB
2726
- stand-alone programmer
2827
- on-board on STM32VL Discovery boards
@@ -38,8 +37,6 @@ It supports several so called STLINK programmer boards (and clones thereof) whic
3837
- stand-alone programmer (STLINK-V3SET, STLINK-V3MINI, STLINK-V3MODS)
3938
- on-board on some STM32 Nucleo boards (STLINK-V3E)
4039

41-
_\*)_ *Note: Support for the STLINK/V1 on macOS is limited to 10.15. Due to the deprecation and removal of macOS Kernel Extensions (KEXT) there will be no support for this programmer on macOS 11 or any later version.*
42-
4340
On the user level there is no difference in handling or operation between these different revisions.
4441

4542
The STlink toolset includes:
@@ -70,15 +67,6 @@ Please ensure to select the correct version for your system (i686 or x86_64). Th
7067

7168
Alternatively one may compile and install from source as described in our [compiling manual](doc/compiling.md#Windows).
7269

73-
**macOS**:
74-
75-
We recommend to install from:
76-
77-
- [homebrew](https://formulae.brew.sh/formula/stlink) or
78-
- [MacPorts](https://ports.macports.org/port/stlink)
79-
80-
Alternatively one can compile and install from source as described in our [compiling manual](doc/compiling.md#macOS).
81-
8270
**Linux**:
8371

8472
We recommend to install `stlink-tools` from the package repository of the used distribution:

cmake/modules/Findlibusb.cmake

+1-18
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,7 @@
1010

1111
include(FindPackageHandleStandardArgs)
1212

13-
if (APPLE) # macOS
14-
FIND_PATH(
15-
LIBUSB_INCLUDE_DIR NAMES libusb.h
16-
HINTS /usr /usr/local /opt
17-
PATH_SUFFIXES libusb-1.0
18-
)
19-
set(LIBUSB_NAME libusb-1.0.a)
20-
find_library(
21-
LIBUSB_LIBRARY NAMES ${LIBUSB_NAME}
22-
HINTS /usr /usr/local /opt
23-
)
24-
FIND_PACKAGE_HANDLE_STANDARD_ARGS(libusb DEFAULT_MSG LIBUSB_LIBRARY LIBUSB_INCLUDE_DIR)
25-
mark_as_advanced(LIBUSB_INCLUDE_DIR LIBUSB_LIBRARY)
26-
if (NOT LIBUSB_FOUND)
27-
message(FATAL_ERROR "No libusb library found on your system! Install libusb-1.0 from Homebrew or MacPorts")
28-
endif ()
29-
30-
elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") # FreeBSD; libusb is integrated into the system
13+
if (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") # FreeBSD; libusb is integrated into the system
3114
FIND_PATH(
3215
LIBUSB_INCLUDE_DIR NAMES libusb.h
3316
HINTS /usr/include

cmake/packaging/cpack_config.cmake

+1-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ set(CPACK_SET_DESTDIR "ON")
1515
file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/dist)
1616
set(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_BINARY_DIR}/dist")
1717

18-
if (APPLE) # macOS
19-
set(CPACK_GENERATOR "ZIP")
20-
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}-macos-amd64")
21-
set(CPACK_INSTALL_PREFIX "")
22-
23-
elseif (WIN32 AND (NOT EXISTS "/etc/debian_version")) # Windows
18+
if (WIN32 AND (NOT EXISTS "/etc/debian_version")) # Windows
2419
set(CPACK_GENERATOR "ZIP")
2520
set(CPACK_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}-win32")
2621
set(CPACK_INSTALL_PREFIX "")

cmake/packaging/deb/copyright

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
22
Upstream-Name: stlink
33
Upstream-Contact: Nightwalker-87 <stlink-org>
44
Source: https://github.com/stlink-org/stlink
5-
Files-Excluded: stlinkv1_macos_driver
65

76
Files: *
87
Copyright: 2011-2020 stlink-org

doc/compiling.md

-42
Original file line numberDiff line numberDiff line change
@@ -183,48 +183,6 @@ Choose one of the following options _before_ connecting the device to your compu
183183
1. `cp stlink_v1.modprobe.conf /etc/modprobe.d`
184184
2. `modprobe -r usb-storage && modprobe usb-storage`
185185

186-
## macOS
187-
188-
### Common requirements
189-
190-
The best and recommended way is to install a package manager for open source software,
191-
either [homebrew](https://brew.sh) or [MacPorts](https://www.macports.org/).
192-
193-
Then install the following dependencies from the package repository:
194-
195-
- `git`
196-
- `gcc` or `llvm` (for clang) (C-compiler)
197-
- `cmake`
198-
- `libusb`
199-
- `gtk+3` or `gtk3` (_optional_, needed for `stlink-gui`)
200-
201-
To do this with only one simple command, type:
202-
203-
- for homebrew:
204-
- with gcc: `sudo brew install git gcc cmake libusb gtk+3` or
205-
- with clang: `sudo brew install git llvm cmake libusb gtk+3` or
206-
- for MacPorts:
207-
- with gcc: `sudo port install git gcc10 cmake libusb gtk3` or
208-
- with clang: `sudo port install git llvm-10 cmake libusb gtk3`
209-
210-
### Installation
211-
212-
1. Open a new terminal window
213-
2. Create a new destination folder at a place of your choice e.g. at `~/git`: `mkdir $HOME/git`
214-
3. Change to this directory: `cd ~/git`
215-
4. Fetch the project sourcefiles by running `git clone https://github.com/stlink-org/stlink.git`
216-
217-
### Building
218-
219-
1. Change into the project source directory: `cd stlink`
220-
2. Run `make clean` to clean remnants of any previous builds.
221-
3. Run `make release` to create the _Release_ target
222-
4. Run `make install` to full install the package with complete system integration. This might require sudo permissions.
223-
5. Run `make debug` to create the _Debug_ target. (_optional_)<br />
224-
The debug target is only necessary in order to modify the sources and to run under a debugger.
225-
226-
As an option you may also install to an individual user-defined folder e.g `$HOME` with `make install DESTDIR=$HOME`.
227-
228186
## Build options
229187

230188
### Build using a different directory for shared libs

doc/dev/app-example/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Warning: This example assumes that you are building on a host with pkg-config available (e.g. linux).
2-
# The logic required to build under windows/mingw and/or mac was intentionally omitted to keep this
3-
# CMakeLists as small as possible.
2+
# The logic required to build under windows/mingw was intentionally omitted to keep this CMakeLists as small as possible.
43

54
cmake_minimum_required(VERSION 3.4.2)
65

doc/version_support.md

-9
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ Up on compiling c-make will **automatically** download and install the latest co
1010
- Windows 10
1111
- Windows 8.1
1212

13-
### Apple macOS
14-
15-
| Package Repository | libusb | cmake | gtk-3-dev | Supported macOS versions |
16-
| ------------------ | ------ | ------ | ------------------ | ------------------------ |
17-
| homebrew | 1.0.25 | 3.22.1 | 3.24.30<br />gtk+3 | **10.10 - 12.x** |
18-
| MacPorts | 1.0.25 | 3.22.1 | 3.24.31<br />gtk3 | **10.4 - 12.x** |
19-
20-
NOTE: In order to use a STLINK/V1 programmer on macOS, version 10.15 is required.
21-
2213
### Linux-/Unix-based:
2314

2415
| Operating System | libusb | cmake | libgtk-dev | Notes |

src/win32/getopt/getopt.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int getopt_long(int argc,
179179

180180
if (match->has_arg == required_argument) {
181181
/* Only scan the next argv for required arguments. Behavior is not
182-
specified, but has been observed with Ubuntu and macOS. */
182+
specified, but has been observed with Ubuntu. */
183183
if (optarg == NULL && ++optind < argc) { optarg = argv[optind]; }
184184

185185
if (optarg == NULL) { retval = ':'; }

stlinkv1_macos_driver/Makefile

-58
This file was deleted.

stlinkv1_macos_driver/README.md

-39
This file was deleted.

0 commit comments

Comments
 (0)