Utility Makefile for Flashing and Monitoring

This commit is contained in:
simon 2024-10-04 12:51:46 +02:00
parent bf78ed3d6e
commit 72851b69c5

View File

@ -7,8 +7,16 @@ export:
buildIdf: buildIdf:
idf.py build idf.py build
flash: flash0:
sudo chmod o+rw /dev/ttyUSB0
idf.py flash -p /dev/ttyUSB0 idf.py flash -p /dev/ttyUSB0
monitor: flash1:
idf.py monitor sudo chmod o+rw /dev/ttyUSB1
idf.py flash -p /dev/ttyUSB1
monitor0:
idf.py monitor -p /dev/ttyUSB0
monitor1:
idf.py monitor -p /dev/ttyUSB1