diff --git a/custom_bin/erase-flash b/custom_bin/erase-flash index a9ca12a..cb65bbf 100644 --- a/custom_bin/erase-flash +++ b/custom_bin/erase-flash @@ -1,4 +1,5 @@ #!/bin/bash echo -e "\nErasing flash on $ESPPORT\n" -esptool --port $ESPPORT --baud $ESPBAUD --chip $ESPTARGET erase_flash +# esptool --port $ESPPORT --baud $ESPBAUD --chip $ESPTARGET erase_flash +idf.py erase-flash echo -e "\nAll done :3\n" diff --git a/custom_bin/flashmonitor b/custom_bin/flashmonitor index d0a4ffe..984ddb9 100644 --- a/custom_bin/flashmonitor +++ b/custom_bin/flashmonitor @@ -5,7 +5,8 @@ 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 + # run the setup tool instead + setup fi idf.py --preview flash monitor diff --git a/custom_bin/setup b/custom_bin/setup index 6d42293..b1e720f 100644 --- a/custom_bin/setup +++ b/custom_bin/setup @@ -1,5 +1,6 @@ #!/bin/bash echo -e "\nSetting up for $ESPTARGET\n" idf.py --preview set-target $ESPTARGET +idf.py --preview update-dependencies idf.py --preview menuconfig echo -e "\nAll done :3\n" \ No newline at end of file