You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/build.md
+30-24Lines changed: 30 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Download and Install
10
10
11
11
2.**Programmer** Install [dfu-programmer][dfu-prog]. GUI tool [Atmel FLIP][flip] also can be used on Windows.
12
12
13
-
3.**Driver** On Windows you start DFU bootloader on the chip first time you will see 'Found New Hardware Wizard' to install driver. If you install device driver properly you can find chip name like 'ATmega32U4' under 'LibUSB-Win32 Devices' tree on 'Device Manager'. If not you shall need to update its driver on 'Device Manager'. You will find the driver in `FLIP` install directory like: C:\Program Files (x86)\Atmel\Flip 3.4.5\usb\. In case of `dfu-programmer`use its driver.
13
+
3.**Driver** On Windows when you start DFU bootloader on the chip first time you will see **Found New Hardware Wizard** to install driver. If you install device driver properly you will find chip name like **ATmega32U4** under **LibUSB-Win32 Devices** tree on **Device Manager**. If not you shall need to update its driver on **Device Manager**. You will find the driver in `FLIP` install directory like: `C:\Program Files (x86)\Atmel\Flip 3.4.5\usb\`. In case of `dfu-programmer`install driver distributed with it.
14
14
15
15
If you use PJRC Teensy you don't need step 2 and 3 above, just get [Teensy loader][teensy-loader].
16
16
@@ -20,15 +20,15 @@ You can find firmware source at github:
20
20
21
21
-<https://github.com/tmk/tmk_keyboard>
22
22
23
-
If you are familiar with `Git` tools you are recommended to use it but you can also download zip archive from:
23
+
If you are familiar with `git` tools you are recommended to use it but you can also download zip archive from:
Open terminal window to get access to commands. Use Cygwin(or MingGW) `shell terminal` in Windows or `Terminal.app` on Mac OSX. In Windows press `Windows` key and `R` then enter `cmd` in 'Run command' dialog showing up.
31
+
Open terminal window to get access to commands. Use Cygwin(or MingGW) shell terminal in Windows or `Terminal.app` on Mac OSX.
32
32
33
33
### 2. Change directory
34
34
Move to project directory in the firmware source.
@@ -53,48 +53,52 @@ Now you have **hex** file to program on current directory. This **hex** is only
53
53
How to program controller depends on controller chip and its board design. To program AVR USB chips you'll need to start it up in bootloader mode. Most of boards with the chip have a push button to let bootloader come up. Consult with your controller board manual.
54
54
55
55
### 2. Program with DFU bootloader
56
-
Stock AVR USB chips have DFU bootloader by factory default. `FLIP` is a DFU programmer on Windows offered by Atmel. Open source command line tool `dfu-programmer` also supports AVR chips, it runs on Linux, Mac OSX and even Windows.
56
+
Stock AVR USB chips have DFU bootloader by factory default. `FLIP` is a DFU programmer on Windows offered by Atmel. `FLIP` has two version of tool, GUI app and command line program. If you want GUI see tutorial below. Open source alternative `dfu-programmer` also supports AVR chips, it is command line tool and runs on Linux, Mac OSX and even Windows.
57
57
58
-
To program AVR chip with DFU bootloader use `FLIP` or `dfu-programmer`.
59
-
If you have a proper program command in `Makefile` just type this.
60
58
61
-
`FLIP` has two version of tool, GUI app and command line program. If you want GUI see tutorial below.
62
-
To use command line tool run this command. Note that you need to set PATH variable properly.
59
+
To program with command of `FLIP` run this. Note that you need to set PATH variable properly.
63
60
64
61
$ make -f Makefile.<variant> flip
65
62
66
-
Or to program with `dfu-programmer` run:
63
+
With `dfu-programmer` run this.
67
64
68
65
$ make -f Makefile.<variant> dfu
69
66
67
+
Or you can execute the command directly as the following.
`<controller>` part will be `atmega32u4` or `atmega32u2` in most cases. See manual of the command for the detail.
74
+
75
+
70
76
#### FLIP GUI tutorial
71
-
1. On menu bar click Device -> Select, then choose your chip name.
72
-
2. On menu bar click Settings -> Communication -> USB, then click 'Open' button on 'USB Port Connection' dialog.
73
-
At this point you'll see grey-outed widgets on the app get colored and ready.
77
+
1. On menu bar click **Device** -> **Select**, then choose your chip name. (In most cases **ATmega32U2** or **ATmega32U4**)
78
+
2. On menu bar click **Settings** -> **Communication** -> **USB**, then click **Open** button on **USB Port Connection** dialog. At this point you'll have to plug into USB and start bootloader.
74
79
75
-
3. On menu bar click File -> Load HEX File, then select your firmware hex file on File Selector dialog.
76
-
4. On 'Operations Flow' panel click 'Run' button to load the firmware binary to the chip. Note that you should keep 'Erase', 'Blank Check', 'Program' and 'Verify' check boxes selected.
77
-
5. Re-plug USB cord or click 'Start Application' button to restart your controller.
80
+
3. On menu bar click **File** -> **Load HEX File**, then select your firmware hex file on File Selector dialog.
81
+
4. On **Operations Flow** panel click **Run** button to load the firmware binary to the chip. Note that you should keep **Erase**, **Blank Check**, **Program** and **Verify** check boxes selected.
82
+
5. Re-plug USB cord or click **Start Application** button to restart your controller.
If you have PJRC Teensy see instruction of `Teensy Loader`.
91
+
##### Troubleshoot
92
+
***FLIP: AtLibUsbDfu.dll not found**
93
+
Remove current driver and re-install one FLIP provides from DeviceManager of WIndows. See <http://imgur.com/a/bnwzy>
88
94
89
-
-<http://www.pjrc.com/teensy/loader.html>
90
95
91
-
Or use this command if you have command line version of Teensy Loader installed.
96
+
### 3. Program with Other programmer
97
+
If you are using PJRC Teensy consult with instruction of [Teensy Loader][teensy-loader]. Or run this target with `make` after you install command line version of it.
92
98
93
99
$ make -f Makefile.<variant> teensy
94
100
95
-
96
-
### 4. Program with Other programmer
97
-
You may want to use other programmer like `avrdude` with AVRISPmkII, Arduino or USBasp. In that case you can still use make target `program` for build with configuring `PROGRAM_CMD` in Makefile.
101
+
You may want to use other programmer like [`avrdude`][avrdude]. In that case you can still use make target `program` for build with configuring `PROGRAM_CMD` in Makefile. See below.
98
102
99
103
$ make -f Makefile.<variant> program
100
104
@@ -106,6 +110,7 @@ You may want to use other programmer like `avrdude` with AVRISPmkII, Arduino or
Optional. Set proper command for your controller, bootloader and programmer. This command can be used with `make program`. Not needed if you use `FLIP`, `dfu-programmer` or `Teensy Loader`.
149
+
Optional. Set proper command for your controller, bootloader and programmer. This command can be used with `make program`.
0 commit comments