Files
esp-idf-tools/custom_bin/flashmonitor
T
2025-11-18 09:17:52 -07:00

12 lines
352 B
Bash

#!/bin/bash
set -e # no continue on errrrrrrr
echo -e "\nFlashing and Monitoring for $ESPTARGET on $ESPPORT\n"
# if tehre is no CMakeLists.txt in cwd, setup to defaults with idf.py set-target and not setup as that goes through menuconfig
if [ ! -f "./CMakeLists.txt" ]; then
bash setup
fi
idf.py --preview flash monitor
echo -e "\nAll done :3\n"