Skip to content

Account for ERROR_CODE_PIN_OR_KEY_MISSING error #143

Account for ERROR_CODE_PIN_OR_KEY_MISSING error

Account for ERROR_CODE_PIN_OR_KEY_MISSING error #143

Workflow file for this run

name: Build Pico-ASHA
on:
push:
pull_request:
env:
PICO_SDK_COMMIT_HASH: efe2103f9b28458a1615ff096054479743ade236
BTSTACK_CREDITS_COMMIT_HASH: fa5389268014cd3572e84d70ff58c2f79f4b56cf
jobs:
build_pico_asha:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
path: pico-asha
- name: Cache Pico SDK
id: cache-pico-sdk
uses: actions/cache@v4
with:
path: pico-sdk
key: pico-sdk-${{ env.PICO_SDK_COMMIT_HASH }}
- name: Checkout Pico SDK
if: steps.cache-pico-sdk.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: raspberrypi/pico-sdk
path: pico-sdk
submodules: recursive
ref: "${{ env.PICO_SDK_COMMIT_HASH }}"
# Note: still required as of Pico SDK 2.0.0
- name: Apply Bluetooth DLE patch
if: steps.cache-pico-sdk.outputs.cache-hit != 'true'
run: |
wget https://github.com/raspberrypi/pico-sdk/files/12750460/0001-Update-firmware-for-Data-Length-Extension-fix.patch.zip
unzip 0001-Update-firmware-for-Data-Length-Extension-fix.patch.zip
cd pico-sdk/lib/cyw43-driver
git config --global user.email "gh@localhost"
git config --global user.name "GH Actions"
git am ../../../0001-Update-firmware-for-Data-Length-Extension-fix.patch
- name: Checkout btstack fork with credit patch
uses: actions/checkout@v4
with:
repository: shermp/btstack
path: btstack
ref: "${{ env.BTSTACK_CREDITS_COMMIT_HASH }}"
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get -y install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi libstdc++-arm-none-eabi-newlib
- name: Set env variables
run: |
echo "PICO_SDK_PATH=$(realpath ./pico-sdk)" >> "$GITHUB_ENV"
echo "PICO_BTSTACK_PATH=$(realpath ./btstack)" >> "$GITHUB_ENV"
- name: Configure build
run: |
mkdir pico-asha/build
cd pico-asha/build
cmake -DCMAKE_BUILD_TYPE=MinSizeRel ..
- name: Compile
run: |
cd pico-asha/build
cmake --build .
- name: Upload UF2 and ELF binaries
uses: actions/upload-artifact@v4
with:
name: pico-asha-bin
path: pico-asha/build/pico-asha.[ue][fl][2f]