Files
esp-idf-tools/custom_bin/flashmonitor
T
2025-05-27 04:04:15 -06:00

12 lines
372 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
idf.py set-target $ESPTARGET
done
idf.py --preview flash monitor
echo -e "\nAll done :3\n"