1 Commits

Author SHA1 Message Date
Marco
002d69b364 Bump-up SDK version and add test for PICO2W (#12)
* Bump-up SDK

Update
Pico SDK 2.1.1
Pico Tool 2.1.1
RTOS Kernel 11.2.0

* add the pico2_w to the testscript

Add the pico2_w for both architecture.

* add pico2_w_riscv test case

---------

Co-authored-by: Marco <maggo1404@users.noreply.github.com>
2025-05-07 21:12:16 +02:00
2 changed files with 6 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ RUN apt-get update -y && \
# Raspberry Pi Pico SDK # Raspberry Pi Pico SDK
ARG SDK_PATH=/usr/local/picosdk ARG SDK_PATH=/usr/local/picosdk
RUN git clone --depth 1 --branch 2.1.0 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \ RUN git clone --depth 1 --branch 2.1.1 https://github.com/raspberrypi/pico-sdk $SDK_PATH && \
cd $SDK_PATH && \ cd $SDK_PATH && \
git submodule update --init git submodule update --init
@@ -31,14 +31,14 @@ ENV PICO_SDK_PATH=$SDK_PATH
# FreeRTOS # FreeRTOS
ARG FREERTOS_PATH=/usr/local/freertos ARG FREERTOS_PATH=/usr/local/freertos
RUN git clone --depth 1 --branch V11.0.1 https://github.com/FreeRTOS/FreeRTOS-Kernel $FREERTOS_PATH && \ RUN git clone --depth 1 --branch V11.2.0 https://github.com/FreeRTOS/FreeRTOS-Kernel $FREERTOS_PATH && \
cd $FREERTOS_PATH && \ cd $FREERTOS_PATH && \
git submodule update --init --recursive git submodule update --init --recursive
ENV FREERTOS_KERNEL_PATH=$FREERTOS_PATH ENV FREERTOS_KERNEL_PATH=$FREERTOS_PATH
# Picotool installation # Picotool installation
RUN git clone --depth 1 --branch 2.1.0 https://github.com/raspberrypi/picotool.git /home/picotool && \ RUN git clone --depth 1 --branch 2.1.1 https://github.com/raspberrypi/picotool.git /home/picotool && \
cd /home/picotool && \ cd /home/picotool && \
mkdir build && \ mkdir build && \
cd build && \ cd build && \

View File

@@ -9,7 +9,7 @@ if [[ -z $1 ]]; then
echo "Please provide an SDK image you want to test" echo "Please provide an SDK image you want to test"
fi fi
declare -a boards=("pico" "pico_w" "pico2" "pico2_riscv") declare -a boards=("pico" "pico_w" "pico2" "pico2_riscv" "pico2_w" "pico2_w_riscv")
docker run -d -it --name pico-sdk --mount type=bind,source="${PWD}"/test_poject,target=/home/dev "$1" docker run -d -it --name pico-sdk --mount type=bind,source="${PWD}"/test_poject,target=/home/dev "$1"
@@ -20,6 +20,8 @@ do
docker exec pico-sdk /bin/bash -c "rm -rf /home/dev/build" docker exec pico-sdk /bin/bash -c "rm -rf /home/dev/build"
if [[ $board = pico2_riscv ]] ; then if [[ $board = pico2_riscv ]] ; then
docker exec -i pico-sdk /bin/bash -c "cd /home/dev && mkdir build && cd build && cmake .. -DPICO_BOARD=pico2 -DPICO_PLATFORM=rp2350-riscv && make -j4" docker exec -i pico-sdk /bin/bash -c "cd /home/dev && mkdir build && cd build && cmake .. -DPICO_BOARD=pico2 -DPICO_PLATFORM=rp2350-riscv && make -j4"
elif [[ $board = pico2_w_riscv ]] ; then
docker exec -i pico-sdk /bin/bash -c "cd /home/dev && mkdir build && cd build && cmake .. -DPICO_BOARD=pico2_w -DPICO_PLATFORM=rp2350-riscv && make -j4"
else else
docker exec -i pico-sdk /bin/bash -c "cd /home/dev && mkdir build && cd build && cmake .. -DPICO_BOARD=${board} && make -j4" docker exec -i pico-sdk /bin/bash -c "cd /home/dev && mkdir build && cd build && cmake .. -DPICO_BOARD=${board} && make -j4"
fi fi