3 Massdrop Infinity Keyboard:
4 https://www.massdrop.com/buy/infinity-keyboard-kit
6 kiibohd controller(MD1):
7 https://github.com/kiibohd/controller
10 https://github.com/kiibohd/controller/tree/master/Bootloader
12 Program with bootloader:
13 $ dfu-util -D kiibohd.dfu.bin
16 https://github.com/kiibohd/controller/blob/master/Scan/MD1/pinout
19 https://mchck.org/about/
21 MCU Freescale MK20DX128VLF5 48-QFP:
22 http://cache.freescale.com/files/32bit/doc/data_sheet/K20P48M50SF0.pdf
29 Strobe(output high): PTB0 PTB1 PTB2 PTB3 PTB16 PTB17 PTC4 PTC5 PTD0
30 Sense(input with pull-down): PTD1 PTD2 PTD3 PTD4 PTD5 PTD6 PTD7
34 SWD_CLK(PTA0) SWD_DIO(PTA3)
35 SWD pins are placed next to reset button; SWD_CLK, SWD_DIO, GND, VCC from top.
36 Note that RESET is also needed to get full control with OpenOCD.
39 PTA19(turns on with output high)
45 kiibohd bootloader: Lib/mk20dx128vlf5.bootloader.ld
46 0x0000_0000 +-------------------+ -----------------+---------------+ Vector table
47 | .vectors | ------------. | StackPointer0 | of Bootloader
48 | .startup | \ | ResetHandler1 |
49 | .rodata | `--+---------------+ 0xF8
50 0x0000_0400 | .flashconfig(0x10)|
53 0x0000_1000 +-------------------+ -----------------+---------------+ Vector table
54 | _app_rom | ------------. | | of App
56 | | `--+---------------+
60 0x07FF_FFFF +-------------------+ 128KB
63 0x1FFF_E000 +-------------------+ -----------------+---------------+ Vector table
64 _E0F8 | | ------------. | | of App(copied)
66 | | `--+---------------+ mbed NVIC
70 0x2000_0000 +-------------------+
77 0x2000_2000 +-------------------+ _estack