Skip to content

Commit af59864

Browse files
committed
Merge branch 'master' into feature/STM32G0
2 parents 412b557 + 77714e0 commit af59864

File tree

193 files changed

+6636
-1680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+6636
-1680
lines changed

.codespell/ignore-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
synopsys
22
sie
33
tre
4+
thre
45
hsi
56
fro
67
dout

.github/workflows/build_aarch64.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build AArch64
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'
@@ -69,7 +70,7 @@ jobs:
6970
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
7071

7172
- name: Get Dependencies
72-
run: python3 tools/get_family_deps.py ${{ matrix.family }}
73+
run: python3 tools/get_deps.py ${{ matrix.family }}
7374

7475
- name: Build
7576
run: python3 tools/build_family.py ${{ matrix.family }}

.github/workflows/build_arm.yml

Lines changed: 5 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build ARM
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'
@@ -33,14 +34,12 @@ jobs:
3334
family:
3435
# Alphabetical order
3536
- 'broadcom_32bit'
36-
- 'imxrt'
37-
- 'kinetis_k32 kinetis_kl'
38-
- 'lpc11 lpc13 lpc15 lpc17 lpc18'
37+
- 'kinetis_k32l kinetis_kl'
38+
- 'lpc11 lpc13 lpc15 lpc17'
3939
- 'lpc51 lpc54 lpc55'
4040
- 'mm32 msp432e4'
4141
- 'nrf'
4242
- 'ra'
43-
- 'rp2040'
4443
- 'samd11 samd21'
4544
- 'samd51 same5x'
4645
- 'saml2x'
@@ -77,7 +76,7 @@ jobs:
7776
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
7877
7978
- name: Get Dependencies
80-
run: python3 tools/get_family_deps.py ${{ matrix.family }}
79+
run: python3 tools/get_deps.py ${{ matrix.family }}
8180

8281
- name: Build
8382
run: python3 tools/build_family.py ${{ matrix.family }}
@@ -91,24 +90,11 @@ jobs:
9190
find ${ex} -name *.map -print -quit | xargs -I % sh -c 'echo "::group::%"; linkermap -v %; echo "::endgroup::"'
9291
done
9392
94-
# Upload binaries for rp2040/stm32l412nucleo hardware test with self-hosted
95-
96-
- name: Prepare rp2040 Artifacts
97-
if: contains(matrix.family, 'rp2040') && github.repository_owner == 'hathach'
98-
run: find examples/ -name "*.elf" -exec mv {} . \;
99-
93+
# Upload binaries for hardware test with self-hosted
10094
- name: Prepare stm32l412nucleo Artifacts
10195
if: contains(matrix.family, 'stm32l4')
10296
run: find examples/ -path "*stm32l412nucleo/*.elf" -exec mv {} . \;
10397

104-
- name: Upload Artifacts for rp2040
105-
if: contains(matrix.family,'rp2040') && github.repository_owner == 'hathach'
106-
uses: actions/upload-artifact@v3
107-
with:
108-
name: rp2040
109-
path: |
110-
*.elf
111-
11298
- name: Upload Artifacts for stm32l412nucleo
11399
if: contains(matrix.family, 'stm32l4') && github.repository_owner == 'hathach'
114100
uses: actions/upload-artifact@v3
@@ -117,67 +103,6 @@ jobs:
117103
path: |
118104
*.elf
119105
120-
# ---------------------------------------
121-
# Hardware in the loop (HIL)
122-
# Current self-hosted instance is running on an RPI4 with
123-
# - pico + pico-probe connected via USB
124-
# - pico-probe is /dev/ttyACM0
125-
# ---------------------------------------
126-
hw-rp2040-test:
127-
# run only with hathach's commit due to limited resource on RPI4
128-
if: github.repository_owner == 'hathach'
129-
needs: build-arm
130-
runs-on: [self-hosted, Linux, ARM64, rp2040]
131-
132-
steps:
133-
- name: Clean workspace
134-
run: |
135-
echo "Cleaning up previous run"
136-
rm -rf "${{ github.workspace }}"
137-
mkdir -p "${{ github.workspace }}"
138-
139-
- name: Download rp2040 Artifacts
140-
uses: actions/download-artifact@v3
141-
with:
142-
name: rp2040
143-
144-
- name: Create flash.sh
145-
run: |
146-
#echo > flash.sh 'cmdout=$(openocd -f "interface/picoprobe.cfg" -f "target/rp2040.cfg" -c "program $1 reset exit")'
147-
echo > flash.sh 'pyocd flash -t rp2040 $1'
148-
echo >> flash.sh 'if (( $? )) ; then echo $cmdout ; fi'
149-
chmod +x flash.sh
150-
151-
- name: Test cdc_dual_ports
152-
run: |
153-
./flash.sh cdc_dual_ports.elf
154-
while (! ([ -e /dev/ttyACM1 ] && [ -e /dev/ttyACM2 ])) && [ $SECONDS -le 10 ]; do :; done
155-
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
156-
test -e /dev/ttyACM2 && echo "ttyACM2 exists"
157-
158-
- name: Test cdc_msc
159-
run: |
160-
./flash.sh cdc_msc.elf
161-
readme='/media/pi/TinyUSB MSC/README.TXT'
162-
while (! ([ -e /dev/ttyACM1 ] && [ -f "$readme" ])) && [ $SECONDS -le 10 ]; do :; done
163-
test -e /dev/ttyACM1 && echo "ttyACM1 exists"
164-
test -f "$readme" && echo "$readme exists"
165-
cat "$readme"
166-
167-
- name: Test dfu
168-
run: |
169-
./flash.sh dfu.elf
170-
while (! (dfu-util -l | grep "Found DFU")) && [ $SECONDS -le 10 ]; do :; done
171-
dfu-util -d cafe -a 0 -U dfu0
172-
dfu-util -d cafe -a 1 -U dfu1
173-
grep "TinyUSB DFU! - Partition 0" dfu0
174-
grep "TinyUSB DFU! - Partition 1" dfu1
175-
176-
- name: Test dfu_runtime
177-
run: |
178-
./flash.sh dfu_runtime.elf
179-
while (! (dfu-util -l | grep "Found Runtime")) && [ $SECONDS -le 10 ]; do :; done
180-
181106
# ---------------------------------------
182107
# Hardware in the loop (HIL)
183108
# Current self-hosted instance is running on an EPYC 7232 server hosted by HiFiPhile user

.github/workflows/build_esp.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build ESP
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'

.github/workflows/build_iar.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build IAR
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'
@@ -43,7 +44,7 @@ jobs:
4344
uses: actions/checkout@v3
4445

4546
- name: Get Dependencies
46-
run: python3 tools/get_family_deps.py ${{ matrix.family }}
47+
run: python3 tools/get_deps.py ${{ matrix.family }}
4748

4849
- name: Build
4950
run: python3 tools/build_family.py ${{ matrix.family }} CC=iccarm

.github/workflows/build_msp430.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build MSP430
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'
@@ -67,7 +68,7 @@ jobs:
6768
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
6869

6970
- name: Get Dependencies
70-
run: python3 tools/get_family_deps.py ${{ matrix.family }}
71+
run: python3 tools/get_deps.py ${{ matrix.family }}
7172

7273
- name: Build
7374
run: python3 tools/build_family.py ${{ matrix.family }}

.github/workflows/build_renesas.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Renesas
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'
@@ -67,7 +68,7 @@ jobs:
6768
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
6869

6970
- name: Get Dependencies
70-
run: python3 tools/get_family_deps.py ${{ matrix.family }}
71+
run: python3 tools/get_deps.py ${{ matrix.family }}
7172

7273
- name: Build
7374
run: python3 tools/build_family.py ${{ matrix.family }}

.github/workflows/build_riscv.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build RISC-V
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'
@@ -68,7 +69,7 @@ jobs:
6869
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
6970

7071
- name: Get Dependencies
71-
run: python3 tools/get_family_deps.py ${{ matrix.family }}
72+
run: python3 tools/get_deps.py ${{ matrix.family }}
7273

7374
- name: Build
7475
run: python3 tools/build_family.py ${{ matrix.family }}

.github/workflows/build_win_mac.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build Windows/MacOS
22

33
on:
4+
workflow_dispatch:
45
push:
56
paths:
67
- 'src/**'

.github/workflows/cifuzz.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: CIFuzz
22
on:
3+
workflow_dispatch:
34
pull_request:
45
branches:
56
- master

0 commit comments

Comments
 (0)