fixed erasse flash and added update-depenencies to setup'
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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,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"
|
||||
Reference in New Issue
Block a user