If want to flash the latest version of the ScriptKitty project, the method documented here is easiest.
Docker is used to produce a replicable build environment to ensure library and tool dependencies are met. Linux is recommended when developing, building, and flashing from source.
Dependencies: docker, make.
# Clone the repo
git clone https://github.com/DevKitty-io/ScriptKitty-Firmware.git
# Navigate to src
cd ScriptKitty-Firmware/src
# Build
sudo make build
# Build and flash the ESP32-S2 (may need sudo)
#optionally specify port: sudo make flash PORT=<port>
#optionally install default scripts: sudo make flash RESET_SCRIPTS_DURING_FLASH=true
sudo make flash
# Produce .img for release
sudo make generate_bin
Docker on mac has issues connecting to usb devices and complicates the flashing process. A workaround is in place - ScriptKitty will be built within docker but then flashed outside of the container. Some additional steps are also necessary to prepare your development environment:
- Install docker and ensure the daemon is running. The daemon is running if the
command
docker infois successful. - Install python3 and pip3, then
pip3 install esptool
# Clone the repo
git clone https://github.com/DevKitty-io/ScriptKitty-Firmware.git
# Navigate to src
cd ScriptKitty-Firmware/src
# Verify everything is installed and configured correctly
make check-mac-deps
# To build only, run
make mac-build
# Plug in your ScriptKitty dev kit in flashing mode by holding down the '0'
# button while plugging it in.
# Find the port of your arduino. It's likely something like
# "/dev/cu.usbmodem01".
ls /dev/cu*
# To build and flash, run
make flash-on-mac PORT=<port>
# If you want to overwrite the FAT partition to include default payloads, set
# RESET_SCRIPTS_DURING_FLASH=true:
make flash PORT=<port> RESET_SCRIPTS_DURING_FLASH=trueNot currently supported