From 72851b69c556ccd0380ebe9a153ecbad508b1110 Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 4 Oct 2024 12:51:46 +0200 Subject: [PATCH] Utility Makefile for Flashing and Monitoring --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b9194a7..c129188 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,16 @@ export: buildIdf: idf.py build -flash: +flash0: + sudo chmod o+rw /dev/ttyUSB0 idf.py flash -p /dev/ttyUSB0 -monitor: - idf.py monitor +flash1: + 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