Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qitas committed Aug 3, 2024
1 parent bc4db3d commit 46ab682
Show file tree
Hide file tree
Showing 192 changed files with 2,539 additions and 2,549 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

103 changes: 58 additions & 45 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,77 @@
name: Examples
name: examples

on: [push, pull_request]
on:
push:
branches:
- main
paths-ignore:
- '**.md'
- '**.rst'
- 'LICENSE'
- '.gitignore'

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
example:
- "examples/arduino-blink"
- "examples/arduino-external-libs"
- "examples/arduino-internal-libs"
- "examples/arduino-mbed-doom"
- "examples/arduino-mbed-rpc"
- "examples/arduino-mxchip-azureiot"
- "examples/arduino-mxchip-filesystem"
- "examples/arduino-mxchip-sensors"
- "examples/arduino-mxchip-wifiscan"
- "examples/cmsis-blink"
- "examples/libopencm3-1bitsy"
- "examples/libopencm3-blink"
- "examples/libopencm3-usb-cdcacm"
- "examples/mbed-rtos-blink-baremetal"
- "examples/mbed-rtos-custom-target"
- "examples/mbed-rtos-ethernet-tls"
- "examples/mbed-rtos-events"
- "examples/mbed-rtos-filesystem"
- "examples/mbed-rtos-mesh-minimal"
- "examples/mbed-rtos-serial"
- "examples/mbed-rtos-usb-keyboard"
- "examples/mbed-rtos-sockets"
- "examples/spl-blink"
- "examples/stm32cube-hal-blink"
- "examples/stm32cube-hal-eeprom-emulation"
- "examples/stm32cube-hal-extmem-boot"
- "examples/stm32cube-hal-iap"
- "examples/stm32cube-hal-lcd"
- "examples/stm32cube-hal-usb-device-dfu"
- "examples/stm32cube-hal-wifi-client"
- "examples/stm32cube-ll-blink"
- "examples/zephyr-blink"
- "examples/zephyr-cpp-synchronization"
- "examples/zephyr-drivers-can"
- "examples/zephyr-net-https-client"
- "examples/zephyr-subsys-usb-hid-mouse"
- "tests/arduino-blink-different-cores"
- "arduino-blink"
- "arduino-external-libs"
- "arduino-internal-libs"
- "arduino-mbed-doom"
- "arduino-mbed-rpc"
- "arduino-mxchip-azureiot"
- "arduino-mxchip-filesystem"
- "arduino-mxchip-sensors"
- "arduino-mxchip-wifiscan"
- "cmsis-blink"
- "libopencm3-1bitsy"
- "libopencm3-blink"
- "libopencm3-usb-cdcacm"
- "mbed-rtos-blink-baremetal"
- "mbed-rtos-custom-target"
- "mbed-rtos-ethernet-tls"
- "mbed-rtos-events"
- "mbed-rtos-filesystem"
- "mbed-rtos-mesh-minimal"
- "mbed-rtos-serial"
- "mbed-rtos-sockets"
- "mbed-rtos-usb-keyboard"
- "spl-blink"
- "stm32cube-hal-blink"
- "stm32cube-hal-eeprom-emulation"
- "stm32cube-hal-extmem-boot"
- "stm32cube-hal-iap"
- "stm32cube-hal-lcd"
- "stm32cube-hal-usb-device-dfu"
- "stm32cube-hal-wifi-client"
- "stm32cube-ll-blink"
- "zephyr-blink"
- "zephyr-cpp-synchronization"
- "zephyr-drivers-can"
- "zephyr-net-https-client"
- "zephyr-subsys-usb-hid-mouse"
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.OSQ_REPO_TOKEN }}
submodules: "recursive"
- name: Set up Python
uses: actions/setup-python@v3

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
python-version: '3.11'
architecture: 'x64'

- name: Install dependencies
run: |
pip install -U https://github.com/platformio/platformio/archive/develop.zip
pip install -U https://github.com/os-q/pio/archive/develop.zip
pio pkg install --global --platform symlink://.
- name: Build examples
working-directory: examples
run: |
pio run -d ${{ matrix.example }}
40 changes: 9 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,13 @@
# ST STM32: development platform for [PlatformIO](https://platformio.org)
# [platform-stm32](https://github.com/os-q/platform-stm32)

[![Build Status](https://github.com/platformio/platform-ststm32/workflows/Examples/badge.svg)](https://github.com/platformio/platform-ststm32/actions)
[![Build Status](https://github.com/os-q/platform-ststm32/workflows/examples/badge.svg)](https://github.com/os-q/platform-ststm32/actions/workflows/examples.yml)

The STM32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development.

* [Home](https://registry.platformio.org/platforms/platformio/ststm32) (home page in the PlatformIO Registry)
* [Documentation](https://docs.platformio.org/page/platforms/ststm32.html) (advanced usage, packages, boards, frameworks, etc.)

# Usage

1. [Install PlatformIO](https://platformio.org)
2. Create PlatformIO project and configure a platform option in [platformio.ini](https://docs.platformio.org/page/projectconf.html) file:

## Stable version

```ini
[env:stable]
platform = ststm32
board = ...
...
切换下载工具
```bash
debug_tool = cmsis-dap
upload_protocol = cmsis-dap
```

## Development version

```ini
[env:development]
platform = https://github.com/platformio/platform-ststm32.git
board = ...
...
```

# Configuration

Please navigate to [documentation](https://docs.platformio.org/page/platforms/ststm32.html).
| spl | arduino | cmsis | libopencm3 | mbed-rtos | cube-hal | zephyr |
| ----- | ------- | ----- | ---------- | --------- | -------- | ------ |
| 2.10201.0 | 4.20701.0 | 2.50900.0 | 1.10000.0 | 6.61700.0 || 2.30600.0 |
2 changes: 1 addition & 1 deletion boards/acsip_s76s.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"upload": {
"maximum_ram_size": 20480,
"maximum_size": 196608,
"protocol": "stlink",
"protocol": "jlink",
"protocols": [
"jlink",
"cmsis-dap",
Expand Down
2 changes: 1 addition & 1 deletion boards/adafruit_feather_f405.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 1048576,
"protocol": "stlink",
"protocol": "jlink",
"protocols": [
"dfu",
"serial",
Expand Down
2 changes: 1 addition & 1 deletion boards/agafia_sg0.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"upload": {
"maximum_ram_size": 36864,
"maximum_size": 131072,
"protocol": "stlink",
"protocol": "jlink",
"protocols": [
"blackmagic",
"cmsis-dap",
Expand Down
86 changes: 43 additions & 43 deletions boards/armed_v1.json
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
{
"build": {
"core": "stm32",
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
"f_cpu": "168000000L",
"framework_extra_flags": {
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
},
"mcu": "stm32f407vet6",
"product_line": "STM32F407xx",
"variant": "STM32F4xx/F407V(E-G)T_F417V(E-G)T"
},
"connectivity": [
"can"
],
"debug": {
"jlink_device": "STM32F407VE",
"openocd_target": "stm32f4x",
"svd_path": "STM32F40x.svd"
},
"frameworks": [
"arduino",
"cmsis",
"stm32cube",
"libopencm3"
],
"name": "3D Printer Controller",
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 524288,
"protocol": "stlink",
"protocols": [
"jlink",
"cmsis-dap",
"stlink",
"blackmagic",
"serial"
]
},
"url": "https://github.com/ktand/Armed",
"vendor": "Armed"
}
{
"build": {
"core": "stm32",
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F4 -DSTM32F407xx -DSTM32F40_41xxx",
"f_cpu": "168000000L",
"framework_extra_flags": {
"arduino": "-DCUSTOM_PERIPHERAL_PINS"
},
"mcu": "stm32f407vet6",
"product_line": "STM32F407xx",
"variant": "STM32F4xx/F407V(E-G)T_F417V(E-G)T"
},
"connectivity": [
"can"
],
"debug": {
"jlink_device": "STM32F407VE",
"openocd_target": "stm32f4x",
"svd_path": "STM32F40x.svd"
},
"frameworks": [
"arduino",
"cmsis",
"stm32cube",
"libopencm3"
],
"name": "3D Printer Controller",
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 524288,
"protocol": "jlink",
"protocols": [
"jlink",
"cmsis-dap",
"stlink",
"blackmagic",
"serial"
]
},
"url": "https://github.com/ktand/Armed",
"vendor": "Armed"
}
2 changes: 1 addition & 1 deletion boards/b96b_argonkey.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"upload": {
"maximum_ram_size": 262144,
"maximum_size": 1048576,
"protocol": "stlink",
"protocol": "jlink",
"protocols": [
"jlink",
"cmsis-dap",
Expand Down
2 changes: 1 addition & 1 deletion boards/b96b_f446ve.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 524288,
"protocol": "stlink",
"protocol": "jlink",
"protocols": [
"jlink",
"cmsis-dap",
Expand Down
2 changes: 1 addition & 1 deletion boards/b96b_neonkey.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"upload": {
"maximum_ram_size": 131072,
"maximum_size": 524288,
"protocol": "stlink",
"protocol": "jlink",
"protocols": [
"jlink",
"cmsis-dap",
Expand Down
Loading

0 comments on commit 46ab682

Please sign in to comment.