From 35c4949965c08bce13256213a586fb19e8f60b09 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 15 Jun 2014 17:08:46 +0200 Subject: [PATCH] run-in-simulavr.sh: run SimulAVR a bit more verbose. SimulAVR doesn't always work exactly the way it should, so looking at the command line it's started with is a first debugging step. --- testcases/run-in-simulavr.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testcases/run-in-simulavr.sh b/testcases/run-in-simulavr.sh index b898ba8..300daef 100755 --- a/testcases/run-in-simulavr.sh +++ b/testcases/run-in-simulavr.sh @@ -21,6 +21,11 @@ fi # Prepare a pin tracing file, assuming a Gen7-v1.4 configuration. See # http://reprap.org/wiki/SimulAVR#Putting_things_together:_an_example +# +# #define X_DIR_PIN DIO28 +# #define X_STEP_PIN DIO29 +# #define Y_DIR_PIN DIO26 +# #define Y_STEP_PIN DIO27 echo "# X Dir" > /tmp/tracein.txt echo "+ PORTA.A3-Out" >> /tmp/tracein.txt echo "# X Step" >> /tmp/tracein.txt @@ -62,9 +67,11 @@ for GCODE_FILE in $*; do # We assume here queue and rx buffer are large enough to read # the file in one chunk. If not, raise MOVEBUFFER_SIZE in config.h. + set -x "${SIMULAVR}" -c vcd:/tmp/tracein.txt:"${VCD_FILE}" \ -f ../build/teacup.elf \ - -m 60000000000 < "${GCODE_FILE}" + -m 60000000000 -v < "${GCODE_FILE}" + set +x # Make plottable files from VCD files.