diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2016-06-10 19:51:04 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2016-06-13 15:34:23 -0400 |
commit | bb3b881e219254f895d9eaa3acedfb006c714c8f (patch) | |
tree | 09e38778db23674441233b08f82b25cf11608549 /docs/Debugging.md | |
parent | e4859d2e9a9de74734519d0c1e01c7e0d18e7bc9 (diff) | |
download | kutter-bb3b881e219254f895d9eaa3acedfb006c714c8f.tar.gz kutter-bb3b881e219254f895d9eaa3acedfb006c714c8f.tar.xz kutter-bb3b881e219254f895d9eaa3acedfb006c714c8f.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'docs/Debugging.md')
-rw-r--r-- | docs/Debugging.md | 11 |
1 files changed, 5 insertions, 6 deletions
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 ``` |