From 68e554ec8f684f8bf396dd3138e0b811daf3225b Mon Sep 17 00:00:00 2001 From: gojimmypi Date: Wed, 7 Feb 2024 14:53:28 -0800 Subject: [PATCH] sample script using wolfssl_monitor.py --- IDE/Espressif/ESP-IDF/examples/testMonitor.sh | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 IDE/Espressif/ESP-IDF/examples/testMonitor.sh diff --git a/IDE/Espressif/ESP-IDF/examples/testMonitor.sh b/IDE/Espressif/ESP-IDF/examples/testMonitor.sh new file mode 100644 index 0000000000..51b7aa89d5 --- /dev/null +++ b/IDE/Espressif/ESP-IDF/examples/testMonitor.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +export THIS_TARGET=esp32c6 + +export esp32c3_PORT=/dev/ttyS33 +export esp32c6_PORT=/dev/ttyS36 + +echo ${THIS_TARGET}_PORT + +export THIS_APP=wolfssl_benchmark + +export BUILD_LOG="./${THIS_APP}/logs/${THIS_APP}_build_IDF_v5_auto${THIS_TARGET}.txt" +export THIS_LOG="./${THIS_APP}/logs/${THIS_APP}_IDF_v5_auto${THIS_TARGET}.txt" + +echo "BUILD_LOG = ${BUILD_LOG}" +echo "THIS_LOG = ${THIS_LOG}" + +pushd ${THIS_APP} + +idf.py --version > "${BUILD_LOG}" 2>&1 +echo "Building..." +idf.py build flash -p ${THIS_TARGET}_PORT -b 115200 >> "${BUILD_LOG}" 2>&1 + +popd + +./wolfssl_monitor.py --port ${THIS_TARGET}_PORT --baudrate 115200 --logfile "${THIS_LOG}" + + +