]> 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
12
13 # Degug Console
14 ## hid_listen can't find device
15 When debug console of your device is not ready you will see like this:
16
17     Waiting for device:.........
18
19 once the device is pluged in then *hid_listen* finds it you will get this message:
20
21     Waiting for new device:.........................
22     Listening:
23
24 Check if you can't get this 'Listening:' message:
25 - build with `CONSOLE_ENABLE=yes` in **Makefile**.
26
27 ## Can't get message from console
28 Check:
29 - connect the device to *hid_listen*. See above.
30 - push **LShift+RShift+d** to enable debug. See [Magic Commands](https://github.com/tmk/tmk_keyboard#magic-commands).
31 - set `debug_enable=yes` usually in `matrix_init()` in **matrix.c**.
32 - try using 'print' function instead of debug print. See **common/print.h**.
33 - disconnect other devices with console function. See [Issue #97](https://github.com/tmk/tmk_keyboard/issues/97).
34
35 ***
36
37 # Miscellaneous
38 ## NKRO Doesn't work
39 Build with this option of Makefile
40
41     NKRO_ENABLE = yes
42
43 And use `Magic` command **N** to toggle NKRO feature.
44 At this time NKRO is not used by default even if it is build with `NKRO_ENABLE`, you still need the `Magic`.
45
46 To turn on NKRO by default see this fix.
47 https://github.com/shayneholmes/tmk_keyboard/commit/b8375a0
48 ```
49 --- a/common/host.c
50 +++ b/common/host.c
51 @@ -24,7 +24,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
52  
53  
54  #ifdef NKRO_ENABLE
55 -bool keyboard_nkro = false;
56 +bool keyboard_nkro = true;
57  #endif
58  
59  static host_driver_t *driver;
60 ```
61
62 ## TrackPoint needs reset circuit(PS/2 mouse support)
63 Without reset circuit you will have inconsistent reuslt due to improper initialize of the hardware. See circuit schematic of TPM754.
64
65 - http://geekhack.org/index.php?topic=50176.msg1127447#msg1127447
66 - http://www.mikrocontroller.net/attachment/52583/tpm754.pdf
67
68
69 ## Can't read comlumn of matrix beyond 16 
70 Use `1UL<<16` intead of `1<<16` in `read_cols()` in **matrix.h** when your columns goes beyond 16.
71
72 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`.
73
74 http://deskthority.net/workshop-f7/rebuilding-and-redesigning-a-classic-thinkpad-keyboard-t6181-60.html#p146279