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.
This commit is contained in:
Markus Hitter 2014-06-15 17:08:46 +02:00
parent 6250dbb9e0
commit 35c4949965
1 changed files with 8 additions and 1 deletions

View File

@ -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.