forked from platformio/platform-ststm32
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
192 changed files
with
2,539 additions
and
2,549 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.