From bb3b881e219254f895d9eaa3acedfb006c714c8f Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 10 Jun 2016 19:51:04 -0400 Subject: docs: Change the debugging docs to recommend a serial baud rate of 250000 A baud of 250000 is a better choice for production use. It's better to test with that rate also. Signed-off-by: Kevin O'Connor --- docs/Debugging.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'docs/Debugging.md') diff --git a/docs/Debugging.md b/docs/Debugging.md index ed2d92c9..21938026 100644 --- a/docs/Debugging.md +++ b/docs/Debugging.md @@ -33,12 +33,11 @@ make menuconfig ``` and compile the firmware for an AVR atmega644p, disable the AVR -watchdog timer, set the MCU frequency to 20000000, and set the serial -baud rate to 115200. Then one can compile Klipper (run `make`) and -then start the simulation with: +watchdog timer, and set the MCU frequency to 20000000. Then one can +compile Klipper (run `make`) and then start the simulation with: ``` -PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py -m atmega644 -s 20000000 -b 115200 out/klipper.elf +PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 out/klipper.elf ``` It may be necessary to create a python virtual environment to run @@ -66,7 +65,7 @@ the directions above, but run avrsim.py with a command-line like the following: ``` -PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py -m atmega644 -s 20000000 -b 115200 out/klipper.elf -t PORTA.PORT,PORTC.PORT +PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 out/klipper.elf -t PORTA.PORT,PORTC.PORT ``` The above would create a file **avrsim.vcd** with information on each @@ -86,5 +85,5 @@ commands (functions marked with the DECL_COMMAND() macro in the Klipper source code). To do so, run: ``` -~/klippy-env/bin/python ./klippy/console.py /tmp/pseudoserial 115200 +~/klippy-env/bin/python ./klippy/console.py /tmp/pseudoserial 250000 ``` -- cgit v1.2.3-70-g09d2