mirror of
https://github.com/V2RetroComputing/analog.git
synced 2024-11-24 23:32:24 +00:00
.. | ||
cmake | ||
common | ||
diag | ||
fs | ||
lib | ||
parallel | ||
scripts | ||
serial | ||
vga | ||
z80 | ||
CMakeLists.txt | ||
lwipopts.h | ||
README.md | ||
tusb_config.h |
Set Up Raspberry Pi Pico SDK and build the firmware
Windows Subsystem for Linux (WSL)
Windows Subsystem for Linux (WSL) allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving Windows. Install Ubuntu on WSL for Windows
Prepare environment
sudo apt update
sudo apt install -y build-essential
Install additional tools
GIT, Cmake
sudo apt install git cmake
Install SDK
sudo git clone https://github.com/raspberrypi/pico-sdk.git ~/pico-sdk
Initialize submodules
sudo git -C ~/pico-sdk submodule update --init
Set the PICO_SDK_PATH environment variable
export PICO_SDK_PATH=~/pico-sdk
Build the firmware
cd ~/v2-analog-fw
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make
$ ls *uf2
...
v2-analog-pico_w-vga.uf2
v2-analog-pico_w-z80.uf2
Upload the firmware
Hold down the BOOTSEL button and connect the Raspberry Pi Pico to your PC via micro USB cable. Once Pico is connected release the BOOTSEL button. Pi Pico should be connected to PC with USB mass storage device mode.
A disk volume called RPI-RP2 will appear on your computer. Drag and drop the appropriate .uf2 file to that volume. RPI-RP2 will unmount and Pico will start the program.