Skip to content

Commit

Permalink
doc: Update manual flashing commands for ATmega boards
Browse files Browse the repository at this point in the history
These have been updated to match what the install scripts do, mostly
removing setting fuse bytes that shouldn't be touched.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Mar 27, 2022
1 parent 4483483 commit df43534
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions doc/snek.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2534,21 +2534,21 @@ On other hosts, you'll need to run 'avrdude' manually. For Duemilanove or Nano b

[subs="verbatim,quotes,attributes,"]
----
$ avrdude -pATMEGA328P -carduino -PCOM1 -b115200 -D -U flash:w:snek-duemilanove-{version}.hex:i
$ avrdude -pm328p -carduino -PCOM1 -b115200 -D -U flash:w:snek-duemilanove-{version}.hex:i
----

For Uno boards:

[subs="verbatim,quotes,attributes,"]
----
$ avrdude -pATMEGA328P -carduino -PCOM1 -b115200 -D -U flash:w:snek-uno-{version}.hex:i
$ avrdude -pm328p -carduino -PCOM1 -b115200 -D -U flash:w:snek-uno-{version}.hex:i
----

For LilyPad boards:

[subs="verbatim,quotes,attributes,"]
----
$ avrdude -pATMEGA328P -carduino -PCOM1 -b57600 -D -U flash:w:snek-lilypad-{version}.hex:i
$ avrdude -pm328p -carduino -PCOM1 -b57600 -D -U flash:w:snek-lilypad-{version}.hex:i
----

Replace 'COM1' with the name of the serial port on your computer.
Expand All @@ -2572,24 +2572,24 @@ On other hosts, you'll need to run 'avrdude' manually:

[subs="verbatim,quotes,attributes,"]
----
$ avrdude -V -c usbtiny -p m328 -u -U lfuse:w:0xff:m -U hfuse:w:0x91:m -U efuse:w:0xfd:m
$ avrdude -c usbtiny -p m328 -U flash:w:snek-duemilanove-big-{version}.hex:i
$ avrdude -V -c usbtiny -p m328p -u -U -U hfuse:w:0xd1:m
$ avrdude -c usbtiny -p m328p -U flash:w:snek-duemilanove-big-{version}.hex:i
----

or

[subs="verbatim,quotes,attributes,"]
----
$ avrdude -V -c usbtiny -p m328 -u -U lfuse:w:0xff:m -U hfuse:w:0x91:m -U efuse:w:0xfd:m
$ avrdude -c usbtiny -p m328 -U flash:w:snek-lilypad-big-{version}.hex:i
$ avrdude -V -c usbtiny -p m328p -u -U -U hfuse:w:0xd1:m
$ avrdude -c usbtiny -p m328p -U flash:w:snek-lilypad-big-{version}.hex:i
----

or

[subs="verbatim,quotes,attributes,"]
----
$ avrdude -V -c usbtiny -p m328 -u -U lfuse:w:0xff:m -U hfuse:w:0x91:m -U efuse:w:0xfd:m
$ avrdude -c usbtiny -p m328 -U flash:w:snek-uno-big-{version}.hex:i
$ avrdude -V -c usbtiny -p m328p -u -U -U hfuse:w:0xd1:m
$ avrdude -c usbtiny -p m328p -U flash:w:snek-uno-big-{version}.hex:i
----

[%nonfacing]
Expand Down Expand Up @@ -2644,7 +2644,7 @@ are two steps to getting Snek installed on the device.
updating the firmware.
+
[source]
$ avrdude -F -V -c usbtiny -p m32u4 -U lfuse:w:0xff:m -U hfuse:w:0x91:m -U efuse:w:0xfd:m
$ avrdude -F -V -c usbtiny -p m32u4 -U:m -U hfuse:w:0x99:m
+
2. Install the Snek binary. Pick the version for your board as that
also sets the right clock speed. For 5v boards, install the 5v binary:
Expand Down

0 comments on commit df43534

Please sign in to comment.