Skip to content

Instantly share code, notes, and snippets.

@GitHub30
Last active August 29, 2022 14:36
Show Gist options
  • Save GitHub30/f08ce9fc6e84c34b0c0b77e8967654d2 to your computer and use it in GitHub Desktop.
Save GitHub30/f08ce9fc6e84c34b0c0b77e8967654d2 to your computer and use it in GitHub Desktop.
# https://www.cnx-software.com/2022/07/03/getting-started-with-wifi-on-raspberry-pi-pico-w-board/#using-wifi-on-raspberry-pi-pico-w-with-c-programming
sudo apt install -y cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
mkdir picow2
cd picow2
git clone https://github.com/GitHub30/micropython
git clone https://github.com/micropython/micropython-lib
cd micropython
git checkout rp2-bootsel
# https://forums.raspberrypi.com/viewtopic.php?t=304620
git submodule update --init lib/pico-sdk lib/tinyusb
make -C ports/rp2 BOARD=PICO_W submodules
make -C mpy-cross
cd ports/rp2
make BOARD=PICO_W
cd ..
cp -r ./rp2 ./rp2hack
cd rp2hack/
rm -r build-PICO_W/
cd ../..
make -C ports/rp2hack BOARD=PICO_W submodules
make -C mpy-cross
cd ports/rp2hack
make BOARD=PICO_W
# https://github.com/raspberrypi/picotool
sudo apt install -y build-essential pkg-config libusb-1.0-0-dev
git clone https://github.com/raspberrypi/pico-sdk
git clone https://github.com/raspberrypi/picotool
cd picotool
mkdir build
cd build
PICO_SDK_PATH=../../pico-sdk cmake ..
make
./picotool info -a ../../micropython/ports/rp2/build-PICO_W/firmware.uf2
@GitHub30
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment