Skip to content

Commit

Permalink
SUKU pico sdk build added to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
SukuWc committed Dec 28, 2023
1 parent dfe3f12 commit b67ffae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/firmware_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@ jobs:
echo ${{ github.ref }}
ls
- name: Install RP2040 SDK and build co-processor firmware
run: |
sudo apt update
sudo apt install -y git python3 cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
git clone https://github.com/raspberrypi/pico-sdk.git --branch master
cd pico-sdk/
git submodule update --init
cd ..
export PICO_SDK_PATH=$(pwd)/pico-sdk/
echo "The Path: $PICO_SDK_PATH"
cd grid_pico/
mkdir -p build
cd build
cmake ..
make
cd main
xxd -i main.bin > pico_firmware.h
sed -i '1i\const \\' pico_firmware.h
sed -i 's/main_bin/pico_firmware/g' pico_firmware.h
cat pico_firmware.h
cp pico_firmware.h ../../../grid_esp/main/pico_firmware.h
- name: Install GNU Arm Embedded Toolchain (arm-none-eabi-gcc)
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
Expand Down

0 comments on commit b67ffae

Please sign in to comment.