fixed erasse flash and added update-depenencies to setup'

This commit is contained in:
2025-11-18 09:07:15 -07:00
parent 676811bdf7
commit 92b6c458e6
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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"
+2 -1
View File
@@ -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
+1
View File
@@ -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"