]> git.donarmstrong.com Git - qmk_firmware.git/blob - FAQ-Build.md
Created FAQ Build (markdown)
[qmk_firmware.git] / FAQ-Build.md
1 # FAQ/Build
2 ## How to Build
3 See this first!
4 https://github.com/tmk/tmk_keyboard/blob/master/doc/build.md
5
6 In short,
7
8     $ make clean
9     $ make [KEYMAP=...]
10
11
12 ## Do 'make clean' before 'make'
13 You'll need `make clean` after you edit **config.h** or change options like `KEYMAP`.
14
15 Frist remove all files made in previous build,
16
17     $ make clean
18
19 then build new frimware. 
20
21     $ make [KEYMAP=...]
22
23 Also you can always try `make clean` when you get other strange result during build.
24
25
26 ## WINAVR is obsolete
27 It is no longer recommended and may cause some problem.
28 See [Issue #99](https://github.com/tmk/tmk_keyboard/issues/99).
29
30 ## USB stack: LUFA or PJRC?
31 Use **LUFA**.
32
33 **PJRC** stack won't be supported actively anymore. There is no reason to hesitate to use LUFA except for binary size(about 1KB lager?). But **PJRC** is still very useful for debug and development purpose.
34 See also [Issue #50](https://github.com/tmk/tmk_keyboard/issues/50) and [Issue #58](https://github.com/tmk/tmk_keyboard/issues/58).
35
36
37 ## Edit configuration but not change
38 Try these.
39 ### 1. make clean
40 This will be needed when you edit **config.h**.
41
42 ### 2. Remove Drivers from Device Manager(Windows)
43 Windows only. Linux, OSX and other OS's doesn't require this. It looks like Windows keeps using driver installed when device was connected first time even after the device changes its configuration. To load proper drivers for new configuration you need to remove existent drivers from **Drvice Manager**.
44
45 You will need this after editing `CONSOLE_ENABLE`, `NKRO_ENABLE`, `EXTRAKEY_ENABLE` or `MOUSEKEY_ENABLE` option in **Makefile**.
46
47
48 ## USB VID and PID
49 You can use any ID you want with editing `config.h`. Using any presumably unused ID will be no problem in fact except for very least chance of collision with other product.
50
51 For example TMK uses following numbers by default.
52 ```
53 keyboard:
54 hhkb: FEED:CAFE
55 gh60: FEED:6060
56
57 converter:
58 x68k: FEED:6800
59 ps2: FEED:6512
60 adb: FEED:0ADB
61 ibm4704: FEED:4704
62 pc98: FEED:9898
63 ```
64
65 Also see this.
66 https://github.com/tmk/tmk_keyboard/issues/150
67
68 You can buy a really unique VID:PID here. I don't think you need this for personal use.
69 - http://www.obdev.at/products/vusb/license.html
70 - http://www.mcselec.com/index.php?page=shop.product_details&flypage=shop.flypage&product_id=92&option=com_phpshop&Itemid=1