]> git.donarmstrong.com Git - qmk_firmware.git/blob - FAQ.md
Updated FAQ (markdown)
[qmk_firmware.git] / FAQ.md
1 # Build
2 ## 'make clean' needs after changing config.h
3 To build with new **config.h** you need
4
5     $ make clean
6
7 ## WINAVR is obsolete
8 It is no longer recommended and may cause some problem.
9 See [Issue #99](https://github.com/tmk/tmk_keyboard/issues/99).
10
11 ## USB stack: LUFA or PJRC?
12 Use **LUFA**. **PJRC** stack won't be supported actively anymore. There is no reason to hesitate to use LUFA except for binary size(about 1KB lager?).
13
14 See also [Issue #50](https://github.com/tmk/tmk_keyboard/issues/50) and [Issue #58](https://github.com/tmk/tmk_keyboard/issues/58).
15
16 # Degug Console
17 ## hid_listen can't find device
18 When debug console of your device is not ready you will see like this:
19
20     Waiting for device:.........
21
22 once the device is pluged in then *hid_listen* finds it you will get this message:
23
24     Waiting for new device:.........................
25     Listening:
26
27 Check if you can't get this 'Listening:' message:
28 - build with `CONSOLE_ENABLE=yes` in **Makefile**.
29
30 ## Can't get message from console
31 Check:
32 - connect the device to *hid_listen*. See above.
33 - push **LShift+RShift+d** to enable debug. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
34 - set `debug_enable=yes` usually in `matrix_init()` in **matrix.c**.
35 - try using 'print' function instead of debug print. See **common/print.h**.
36 - disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
37
38 ***
39
40 # Miscellaneous
41 ## NKRO Doesn't work
42 Build with this option of Makefile
43
44     NKRO_ENABLE = yes
45
46 And use `Magic` command **N** to toggle NKRO feature.
47 At this time NKRO is not used by default even if it is build with `NKRO_ENABLE`, you still need the `Magic`.
48
49 To turn on NKRO by default see this fix.
50 https://github.com/shayneholmes/tmk_keyboard/commit/b8375a0
51 ```
52 --- a/common/host.c
53 +++ b/common/host.c
54 @@ -24,7 +24,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
55  
56  
57  #ifdef NKRO_ENABLE
58 -bool keyboard_nkro = false;
59 +bool keyboard_nkro = true;
60  #endif
61  
62  static host_driver_t *driver;
63 ```
64
65 ## TrackPoint needs reset circuit(PS/2 mouse support)
66 Without reset circuit you will have inconsistent reuslt due to improper initialize of the hardware. See circuit schematic of TPM754.
67
68 - http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
69 - http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
70
71
72 ## Can't read comlumn of matrix beyond 16 
73 Use `1UL<<16` intead of `1<<16` in `read_cols()` in **matrix.h** when your columns goes beyond 16.
74
75 In C `1` means one of **int** type which is **16bit** in case of AVR so you can't shift left more than 15. You will get unexpected zero when you say `1<<16`. You have to use **unsigned long** type with `1UL`.
76
77 http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279