diff options
author | skullY <skullydazed@gmail.com> | 2017-08-06 20:57:57 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2017-08-16 15:47:20 -0400 |
commit | 9d1a08e38ac9937cff4e61abfd0acc26ad5fdf4a (patch) | |
tree | 352da3e60b219405be323306bcd67a6729107d61 /docs/faq_debug.md | |
parent | 9b879b1267cd5cbebf4d73595c7ca4ed52fe5ef4 (diff) | |
download | qmk_firmware-9d1a08e38ac9937cff4e61abfd0acc26ad5fdf4a.tar.gz qmk_firmware-9d1a08e38ac9937cff4e61abfd0acc26ad5fdf4a.zip |
Doc updates from going through every file
Diffstat (limited to 'docs/faq_debug.md')
-rw-r--r-- | docs/faq_debug.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/docs/faq_debug.md b/docs/faq_debug.md index 9e76ac409..3f7cfe747 100644 --- a/docs/faq_debug.md +++ b/docs/faq_debug.md | |||
@@ -48,6 +48,45 @@ SUBSYSTEMS=="usb", ATTRS{idVendor}=="feed", MODE:="0666" | |||
48 | *** | 48 | *** |
49 | 49 | ||
50 | # Miscellaneous | 50 | # Miscellaneous |
51 | ## Safety Considerations | ||
52 | |||
53 | You probably don't want to "brick" your keyboard, making it impossible | ||
54 | to rewrite firmware onto it. Here are some of the parameters to show | ||
55 | what things are (and likely aren't) too risky. | ||
56 | |||
57 | - If your keyboard map does not include RESET, then, to get into DFU | ||
58 | mode, you will need to press the reset button on the PCB, which | ||
59 | requires unscrewing the bottom. | ||
60 | - Messing with tmk_core / common files might make the keyboard | ||
61 | inoperable | ||
62 | - Too large a .hex file is trouble; `make dfu` will erase the block, | ||
63 | test the size (oops, wrong order!), which errors out, failing to | ||
64 | flash the keyboard, leaving it in DFU mode. | ||
65 | - To this end, note that the maximum .hex file size on Planck is | ||
66 | 7000h (28672 decimal) | ||
67 | |||
68 | ``` | ||
69 | Linking: .build/planck_rev4_cbbrowne.elf [OK] | ||
70 | Creating load file for Flash: .build/planck_rev4_cbbrowne.hex [OK] | ||
71 | |||
72 | Size after: | ||
73 | text data bss dec hex filename | ||
74 | 0 22396 0 22396 577c planck_rev4_cbbrowne.hex | ||
75 | ``` | ||
76 | |||
77 | - The above file is of size 22396/577ch, which is less than | ||
78 | 28672/7000h | ||
79 | - As long as you have a suitable alternative .hex file around, you | ||
80 | can retry, loading that one | ||
81 | - Some of the options you might specify in your keyboard's Makefile | ||
82 | consume extra memory; watch out for BOOTMAGIC_ENABLE, | ||
83 | MOUSEKEY_ENABLE, EXTRAKEY_ENABLE, CONSOLE_ENABLE, API_SYSEX_ENABLE | ||
84 | - DFU tools do /not/ allow you to write into the bootloader (unless | ||
85 | you throw in extra fruitsalad of options), so there is little risk | ||
86 | there. | ||
87 | - EEPROM has around a 100000 write cycle. You shouldn't rewrite the | ||
88 | firmware repeatedly and continually; that'll burn the EEPROM | ||
89 | eventually. | ||
51 | ## NKRO Doesn't work | 90 | ## NKRO Doesn't work |
52 | First you have to compile frimware with this build option `NKRO_ENABLE` in **Makefile**. | 91 | First you have to compile frimware with this build option `NKRO_ENABLE` in **Makefile**. |
53 | 92 | ||