Skip to content

Commit

Permalink
sample script using wolfssl_monitor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Feb 7, 2024
1 parent 325f62c commit 68e554e
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions IDE/Espressif/ESP-IDF/examples/testMonitor.sh
Original file line number Diff line number Diff line change
@@ -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}"



0 comments on commit 68e554e

Please sign in to comment.