-
Notifications
You must be signed in to change notification settings - Fork 111
Add stm32cube framework #45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
bjsowa
wants to merge
25
commits into
micro-ROS:main
Choose a base branch
from
bjsowa:stm32cube
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
cf3c636
Add stm32cube framework
bjsowa a1bb2d7
Add stm32cube serial transport
bjsowa a27c890
Allow nonblocking read
bjsowa f33a16e
Add some comments
bjsowa 35fbb64
Don't wait until len bytes of data is available to read
bjsowa e77c93b
Merge remote-tracking branch 'origin/main' into stm32cube
bjsowa 09be1ec
Move arduino CI package into subdirectory
bjsowa a114a71
Make the transport header compatible with C language
bjsowa 3fdcc1c
Add example project for stm32cube framework
bjsowa ad2ba7c
Update CI workflow
bjsowa 4fecbf7
Remove vscode artifacts
bjsowa 2975d2f
Install and use CubeMX to generate code
bjsowa 8828f03
Uncomment arduino ci job
bjsowa 1d6a755
Allow setting buffer sizes that are not a power of 2
bjsowa 44da965
Freeze ststm32 platform package version
bjsowa d7bbc0a
Update .github/workflows/ci.yml
bjsowa 6dee3d2
Ignore vscode configuration
bjsowa 9399a57
Don't include HAL libraries in clock_gettime
bjsowa b77f752
Create example project on nucleo-f103rb board
bjsowa 0fa7672
Update CI to use new pio environment
bjsowa 2e49658
Fix issues with clock_gettime implementation
bjsowa d5a0592
Add nucleo_767zi example to CI
bjsowa 5552498
Set default colcon metas for nucleo boards
bjsowa a69ff65
Add nucleo board to supported boards
bjsowa 19eabda
Merge remote-tracking branch 'microros/main' into stm32cube
bjsowa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,30 +1,105 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: | ||
| - '**' | ||
| workflow_dispatch: | ||
| pull_request: | ||
| branches: | ||
| - "**" | ||
|
|
||
| jobs: | ||
| micro_ros_platformio_arduino: | ||
| runs-on: ubuntu-20.04 | ||
| container: ubuntu:20.04 | ||
|
|
||
| micro_ros_platformio: | ||
| runs-on: ubuntu-20.04 | ||
| container: ubuntu:20.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| pio-environment: | ||
| - teensy41 | ||
| - teensy40 | ||
| - teensy36 | ||
| - teensy35 | ||
| - teensy31 | ||
| - due | ||
| - zero | ||
| - olimex_e407 | ||
| - esp32dev | ||
| - nanorp2040connect | ||
| - portenta_h7_m7 | ||
| - teensy41_eth | ||
| - nanorp2040connect_wifi | ||
| - portenta_h7_m7_wifi | ||
| - esp32dev_wifi | ||
| - portenta_h7_m7_galactic | ||
| - portenta_h7_m7_foxy | ||
| - portenta_h7_m7_rolling | ||
| - teensy41_custom | ||
| - pico | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| platform: [teensy41, teensy40, teensy36, teensy35, teensy31, due, zero, olimex_e407, esp32dev, nanorp2040connect, portenta_h7_m7, teensy41_eth, nanorp2040connect_wifi, portenta_h7_m7_wifi, esp32dev_wifi, portenta_h7_m7_galactic, portenta_h7_m7_foxy, portenta_h7_m7_rolling, teensy41_custom, pico] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| path: repo | ||
| - name: Install environment | ||
| uses: ./repo/.github/actions/platformio-env | ||
| - name: Build | ||
| shell: bash | ||
| run: | | ||
| export PATH=$PATH:~/.platformio/penv/bin | ||
| cd repo/ci/arduino | ||
| pio run -e ${{ matrix.pio-environment }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| path: repo | ||
| - name: Install environment | ||
| uses: ./repo/.github/actions/platformio-env | ||
| - name: Build | ||
| shell: bash | ||
| run: | | ||
| export PATH=$PATH:~/.platformio/penv/bin | ||
| cd repo/ci | ||
| pio run -e ${{ matrix.platform }} | ||
| micro_ros_platformio_stm32cube: | ||
| runs-on: ubuntu-20.04 | ||
| container: ubuntu:20.04 | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| pio-environment: | ||
| - nucleo_f103rb | ||
| - nucleo_f767zi | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| path: repo | ||
| - name: Install STM32CubeMX | ||
| env: | ||
| CUBEMX_LINK: http://files.fictionlab.pl/en.stm32cubemx-lin_v6-3-0.zip | ||
| run: | | ||
| apt update | ||
| export DEBIAN_FRONTEND=noninteractive | ||
| apt install -y wget unzip python3-pip expect fontconfig xvfb libxrender1 libxtst6 libxi6 | ||
| wget -q -O cubemx.zip $CUBEMX_LINK | ||
| unzip -q cubemx.zip -d cubemx | ||
| expect -f - <<EOF | ||
| set timeout 30 | ||
| spawn ./cubemx/SetupSTM32CubeMX-6.3.0 -console | ||
| expect -exact "Press 1 to continue, 2 to quit, 3 to redisplay\r" | ||
| send -- "1\r" | ||
| expect -exact "Press Enter to continue, X to exit\r" | ||
| send -- "\r" | ||
| expect -exact "Press 1 to accept, 2 to reject, 3 to redisplay\r" | ||
| send -- "1\r" | ||
| expect -exact "Press Enter to continue, X to exit\r" | ||
| send -- "\r" | ||
| expect -exact "Press 1 to accept, 2 to reject, anything else to redisplay\r" | ||
| send -- "2\r" | ||
| expect -exact "Select target path \[/usr/local/STMicroelectronics/STM32Cube/STM32CubeMX\] \r" | ||
| send -- "\r" | ||
| expect -exact "Enter Y for Yes, N for No: \r" | ||
| send -- "N\r" | ||
| expect eof | ||
| EOF | ||
| pip3 install stm32pio | ||
| - name: Install environment | ||
| uses: ./repo/.github/actions/platformio-env | ||
| - name: Build | ||
| shell: bash | ||
| run: | | ||
| export PATH=$PATH:~/.platformio/penv/bin | ||
| cd repo/ci/stm32cube | ||
| cp ioc/${{ matrix.pio-environment }}.ioc . | ||
| xvfb-run --auto-servernum stm32pio -v generate | ||
| pio run -e ${{ matrix.pio-environment }} | ||
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| .pio | ||
| .vscode |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.