mirror of https://github.com/Desuuuu/klipper.git
avrsim: Change default speed to 16Mhz and default baud to 250K
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
46167cae67
commit
59bd51d207
|
@ -219,13 +219,12 @@ cd /path/to/klipper
|
||||||
make menuconfig
|
make menuconfig
|
||||||
```
|
```
|
||||||
|
|
||||||
and compile the micro-controller software for an AVR atmega644p, set
|
and compile the micro-controller software for an AVR atmega644p and
|
||||||
the MCU frequency to 20Mhz, and select SIMULAVR software emulation
|
select SIMULAVR software emulation support. Then one can compile
|
||||||
support. Then one can compile Klipper (run `make`) and then start the
|
Klipper (run `make`) and then start the simulation with:
|
||||||
simulation with:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 out/klipper.elf
|
PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py out/klipper.elf
|
||||||
```
|
```
|
||||||
|
|
||||||
Then, with simulavr running in another window, one can run the
|
Then, with simulavr running in another window, one can run the
|
||||||
|
@ -246,7 +245,7 @@ the directions above, but run avrsim.py with a command-line like the
|
||||||
following:
|
following:
|
||||||
|
|
||||||
```
|
```
|
||||||
PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py -m atmega644 -s 20000000 -b 250000 out/klipper.elf -t PORTA.PORT,PORTC.PORT
|
PYTHONPATH=/path/to/simulavr/src/python/ ./scripts/avrsim.py out/klipper.elf -t PORTA.PORT,PORTC.PORT
|
||||||
```
|
```
|
||||||
|
|
||||||
The above would create a file **avrsim.vcd** with information on each
|
The above would create a file **avrsim.vcd** with information on each
|
||||||
|
|
|
@ -169,11 +169,11 @@ def main():
|
||||||
opts = optparse.OptionParser(usage)
|
opts = optparse.OptionParser(usage)
|
||||||
opts.add_option("-m", "--machine", type="string", dest="machine",
|
opts.add_option("-m", "--machine", type="string", dest="machine",
|
||||||
default="atmega644", help="type of AVR machine to simulate")
|
default="atmega644", help="type of AVR machine to simulate")
|
||||||
opts.add_option("-s", "--speed", type="int", dest="speed", default=8000000,
|
opts.add_option("-s", "--speed", type="int", dest="speed", default=16000000,
|
||||||
help="machine speed")
|
help="machine speed")
|
||||||
opts.add_option("-r", "--rate", type="float", dest="pacing_rate",
|
opts.add_option("-r", "--rate", type="float", dest="pacing_rate",
|
||||||
default=0., help="real-time pacing rate")
|
default=0., help="real-time pacing rate")
|
||||||
opts.add_option("-b", "--baud", type="int", dest="baud", default=38400,
|
opts.add_option("-b", "--baud", type="int", dest="baud", default=250000,
|
||||||
help="baud rate of the emulated serial port")
|
help="baud rate of the emulated serial port")
|
||||||
opts.add_option("-t", "--trace", type="string", dest="trace",
|
opts.add_option("-t", "--trace", type="string", dest="trace",
|
||||||
help="signals to trace (? for help)")
|
help="signals to trace (? for help)")
|
||||||
|
|
Loading…
Reference in New Issue