aboutsummaryrefslogtreecommitdiff
path: root/readme.md
diff options
context:
space:
mode:
authorcbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info>2016-12-01 16:24:03 -0500
committercbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info>2016-12-01 16:24:03 -0500
commitb787ed9dc6c81f47215c48d47240717afa3cd440 (patch)
treee422aef3b7a7d7ada490782f016c834df80fdc7b /readme.md
parent1f290f6213c7c3bf001a85242cfae4f9b5a14942 (diff)
downloadqmk_firmware-b787ed9dc6c81f47215c48d47240717afa3cd440.tar.gz
qmk_firmware-b787ed9dc6c81f47215c48d47240717afa3cd440.zip
More notes on .hex size protection
Diffstat (limited to 'readme.md')
-rw-r--r--readme.md19
1 files changed, 16 insertions, 3 deletions
diff --git a/readme.md b/readme.md
index a92ae4c1d..5c82efcdd 100644
--- a/readme.md
+++ b/readme.md
@@ -1318,14 +1318,27 @@ You probably don't want to "brick" your keyboard, making it impossible
1318to rewrite firmware onto it. Here are some of the parameters to show 1318to rewrite firmware onto it. Here are some of the parameters to show
1319what things are (and likely aren't) too risky. 1319what things are (and likely aren't) too risky.
1320 1320
1321- If a keyboard map does not include RESET, then, to get into DFU 1321- If your keyboard map does not include RESET, then, to get into DFU
1322 mode, you will need to press the reset button on the PCB, which 1322 mode, you will need to press the reset button on the PCB, which
1323 requires unscrewing some bits. 1323 requires unscrewing the bottom.
1324- Messing with tmk_core / common files might make the keyboard 1324- Messing with tmk_core / common files might make the keyboard
1325 inoperable 1325 inoperable
1326- Too large a .hex file is trouble; `make dfu` will erase the block, 1326- Too large a .hex file is trouble; `make dfu` will erase the block,
1327 test the size (oops, wrong order!), which errors out, failing to 1327 test the size (oops, wrong order!), which errors out, failing to
1328 flash the keyboard 1328 flash the keyboard, leaving it in DFU mode.
1329 - To this end, note that the maximum .hex file size on Planck is
1330 7000h (28672 decimal)
1331```Linking: .build/planck_rev4_cbbrowne.elf [OK]
1332Creating load file for Flash: .build/planck_rev4_cbbrowne.hex [OK]
1333
1334Size after:
1335 text data bss dec hex filename
1336 0 22396 0 22396 577c planck_rev4_cbbrowne.hex
1337```
1338 - The above file is of size 22396/577ch, which is less than
1339 28672/7000h
1340 - As long as you have a suitable alternative .hex file around, you
1341 can retry, loading that one
1329- DFU tools do /not/ allow you to write into the bootloader (unless 1342- DFU tools do /not/ allow you to write into the bootloader (unless
1330 you throw in extra fruitsalad of options), so there is little risk 1343 you throw in extra fruitsalad of options), so there is little risk
1331 there. 1344 there.