gabino75 / subway-mapping

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
Other
0 stars 0 forks source link

Building the Firmware

Prerequisites

sudo apt update
sudo apt install cmake gcc-arm-none-eabi libnewlib-arm-none-eabi build-essential
sudo pip3 install rshell
sudo usermod -a -G dialout $USER
make -C mpy-cross
cd ports/rp2
make BOARD=PICO_W submodules

Build Firmware

cd ports/rp2
make BOARD=PICO_W
ls build-PICO_W/*.uf2

Load Firwmare onto Pico W

Connect to Python Session

screen /dev/ttyACM0

or

sudo rshell
repl

Loading the Project Code

Prerequisites

Loading the Project Code

sudo rshell
rm /pyboard/*            # "Factory Reset" (Does not reset firmware)
cp subway/*.py /pyboard/ # Don't overwrite config
cp subway/*    /pyboard/ # Overwrite config
repl
# CTRL+D() to restart board. Runs main.py on startup

First Boot