]> git.gir.st - tmk_keyboard.git/blob - keyboard/infinity/tool/README
infinity: Add initial files for keyboard support
[tmk_keyboard.git] / keyboard / infinity / tool / README
1 OpenOCD config files for Kinetis
2 ================================
3 http://nemuisan.blog.bai.ne.jp/?eid=192848#OPENOCD
4
5 These are needed for SWD debug and programing bootloader. To flash keyboard firmware use 'dfu-util'.
6
7 Flash security of Freescale kinetis
8 -----------------------------------
9 If FSEC of flash config is changed accidentally SWD/JTAG you can't get debug access until doing 'mdm mass_erase' with JTAG, CMSIS-DAP or OpenSAD adapter. HLA(high level adapter) like stlink doesn't work for this.
10
11
12 Example
13 -------
14 Debug:
15 $ openocd -s tool -f tool/openocd.cfg
16 $ arm-none-eabi-gdb build/infinity.elf -ex "target remote localhost:3333"
17
18 Flash bootloader:
19 $ openocd -s tool -f tool/openocd.cfg -c "mt_flash kiibohd_bootloader.bin"
20
21
22 Infinity SWD pinout
23 -------------------
24 SWD pins are placed next to reset button; SWD_CLK, SWD_DIO, GND, VCC from top.
25 Note that RESET is also needed to get full control with OpenOCD.
Imprint / Impressum