Skip to content

Commit

Permalink
Merge branch 'main' into feat/me14_dualcore
Browse files Browse the repository at this point in the history
  • Loading branch information
sihyung-maxim committed Jul 2, 2024
2 parents d2604c9 + b7b5ff1 commit f06642c
Show file tree
Hide file tree
Showing 144 changed files with 4,038 additions and 532 deletions.
44 changes: 26 additions & 18 deletions .github/workflows/BLE_Examples_Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ on:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
push:


env:
LOCK_MAX32655_B2: false
Expand All @@ -63,7 +63,6 @@ jobs:
with:
submodules: false
repository: analogdevicesinc/msdk
ref: ble-workflow-update
fetch-depth: 0

- name: Check MAX32655
Expand Down Expand Up @@ -591,7 +590,7 @@ jobs:
fi
- name: Lock Boards
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/lock-board@v1
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/lock-board@v1.1
with:
boards: |
max32655_board1
Expand All @@ -605,19 +604,19 @@ jobs:
run: |
#set advertising names
sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_dats/dats_main.c
sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_datc/datc_main.c
sed -i "s/'S'/'!'/g" Examples/MAX32665/Bluetooth/BLE_dats/dats_main.c
sed -i "s/'S'/'!'/g" Examples/MAX32690/Bluetooth/BLE_datc/datc_main.c
# sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_dats/dats_main.c
# sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_datc/datc_main.c
# sed -i "s/'S'/'!'/g" Examples/MAX32665/Bluetooth/BLE_dats/dats_main.c
# sed -i "s/'S'/'!'/g" Examples/MAX32690/Bluetooth/BLE_datc/datc_main.c
sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_otas/dats_main.c
sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_otac/datc_main.c
sed -i "s/'S'/'!'/g" Examples/MAX32665/Bluetooth/BLE_otas/dats_main.c
sed -i "s/'S'/'!'/g" Examples/MAX32690/Bluetooth/BLE_otac/datc_main.c
# sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_otas/dats_main.c
# sed -i "s/'S'/'?'/g" Examples/MAX32655/Bluetooth/BLE_otac/datc_main.c
# sed -i "s/'S'/'!'/g" Examples/MAX32665/Bluetooth/BLE_otas/dats_main.c
# sed -i "s/'S'/'!'/g" Examples/MAX32690/Bluetooth/BLE_otac/datc_main.c
- name: Erase Boards DATS
if: ${{env.MAX32655_DATS_CONNECTED_TEST == 'true' || env.MAX32665_DATS_CONNECTED_TEST == 'true' || env.MAX32690_DATS_CONNECTED_TEST == 'true'}}
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocderase@v1
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocderase@v1.1
with:
board: |
max32655_board1
Expand All @@ -633,7 +632,7 @@ jobs:
- name: Flash DATS 655
if: ${{env.MAX32655_DATS_CONNECTED_TEST == 'true'}}
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocdflash@v1
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocdflash@v1.1
with:
board: |
max32655_board1
Expand All @@ -644,7 +643,11 @@ jobs:
BLE_datc
suppress_output: true

build_flags: |
ADV_NAME=DAT?
ADV_NAME=DAT?
build: true
distclean: true

Expand All @@ -660,7 +663,7 @@ jobs:
- name: Erase Boards OTAS
if: ${{env.MAX32655_DATS_CONNECTED_TEST == 'true' || env.MAX32665_DATS_CONNECTED_TEST == 'true' || env.MAX32690_DATS_CONNECTED_TEST == 'true'}}
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocderase@v1
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocderase@v1.1
with:
board: |
max32655_board1
Expand All @@ -670,13 +673,18 @@ jobs:
- name: Flash OTAS
if: ${{env.MAX32655_DATS_CONNECTED_TEST == 'true' || env.MAX32665_DATS_CONNECTED_TEST == 'true' || env.MAX32690_DATS_CONNECTED_TEST == 'true'}}
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocdflash@v1
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/ocdflash@v1.1
with:
board: |
max32655_board1
max32655_board2
max32665_board1
build_flags: |
ADV_NAME=OTA?
ADV_NAME=OTA?
ADV_NAME=OTA!
ADV_NAME=OTA!
project: |
BLE_otas
BLE_otac
Expand Down Expand Up @@ -719,7 +727,7 @@ jobs:
- name: Unlock Boards
if: always()
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/lock-board@v1
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/lock-board@v1.1
with:
lock: false
all_owned: true
Expand Down
100 changes: 100 additions & 0 deletions .github/workflows/example_tester.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
###############################################################################
#
# Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
# Analog Devices, Inc.),
# Copyright (C) 2023-2024 Analog Devices, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
##############################################################################

name: Basic Examples Test

# Cancels workflows in progress that are in the same PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
pull_request:
branches:
- main
paths-ignore:
# Any files in a docs directory anywhere in the repository.
- "**/docs/**"
- "**/Documentation/**"
# Any README.md file anywhere in the repository.
- "**/README.md"
# Any .pdf file anywhere in the repository.
- "**/*.pdf"
# Any .yml file anywhere in the repository.
# can comment this out when testing changes to THIS yml file
- "**/*.yml"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:


env:
MAXIM_PATH: ''

jobs:
Example_Tests:
# The type of runner that the job will run on
runs-on: [self-hosted]
if: github.event.pull_request.draft == false


steps:

- uses: actions/checkout@v4
with:
submodules: false
repository: analogdevicesinc/msdk
fetch-depth: 0

- name: Set MAXIM_PATH
run: |
echo "MAXIM_PATH=$(pwd)" >> $GITHUB_ENV
printenv
- name: Lock Boards
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/[email protected]
with:
boards: |
max32690_board_ex
lock: true
timeout: 900 # Attempt to lock for an hour

- name: run_example_test
run: |
bash .github/workflows/scripts/example_tester.sh max32690_board_ex
- name: Unlock Boards
if: always()
uses: Analog-Devices-MSDK/btm-ci-scripts/actions/[email protected]
with:
lock: false
all_owned: true










Loading

0 comments on commit f06642c

Please sign in to comment.