Skip to content

Bluepad32 for Pico W and Pico 2 W with Pico SDK

Supported boards

Installation

1. Install the Pico SDK

Install the Pico SDK for your operating system:

Use Pico SDK v2.3.0 or newer.

Clone the Pico SDK from GitHub (https://github.com/raspberrypi/pico-sdk):

# Create a destination directory
mkdir ~/pico && cd ~/pico

# Clone the Pico SDK repository
git clone https://github.com/raspberrypi/pico-sdk.git --branch master
cd pico-sdk
git submodule update --init

Set PICO_SDK_PATH to the Pico SDK directory:

# Set PICO_SDK_PATH to the correct path
export PICO_SDK_PATH=$HOME/pico/pico-sdk/

Use Pico SDK v2.3.0 or newer.

Clone the Pico SDK from GitHub (https://github.com/raspberrypi/pico-sdk):

# Create a destination directory
mkdir ~/pico && cd ~/pico

# Clone the Pico SDK repository
git clone https://github.com/raspberrypi/pico-sdk.git --branch master
cd pico-sdk
git submodule update --init

Set PICO_SDK_PATH to the Pico SDK directory:

# Set PICO_SDK_PATH to the correct path
export PICO_SDK_PATH=$HOME/pico/pico-sdk/

Follow the official Windows installer instructions:

2. Clone the Bluepad32 repository

git clone --recursive https://github.com/ricardoquesada/bluepad32.git

3. Apply the BTstack patches

cd ${BLUEPAD32_SRC}/external/btstack
git apply ../patches/*.patch

4. Customize the example

Open the Pico W example directory:

# ${BLUEPAD32} is the path to your cloned Bluepad32 repository
cd ${BLUEPAD32}/examples/pico_w

Edit src/my_platform.c to match your application requirements:

5. Build the firmware

Run these commands to build the .uf2 firmware file:

mkdir build
cd build
cmake ..
make -j

6. Flash the firmware

Copy build/bluepad32_picow_example_app.uf2 to your Pico W or Pico 2 W.

For flashing instructions, see: