You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
935 B

  1. OpenOCD config files for Kinetis
  2. ================================
  3. http://nemuisan.blog.bai.ne.jp/?eid=192848#OPENOCD
  4. These are needed for SWD debug and programing bootloader. To flash keyboard firmware use 'dfu-util'.
  5. Flash security of Freescale kinetis
  6. -----------------------------------
  7. 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.
  8. Example
  9. -------
  10. Debug:
  11. $ openocd -s tool -f tool/openocd.cfg
  12. $ arm-none-eabi-gdb build/infinity.elf -ex "target remote localhost:3333"
  13. Flash bootloader:
  14. $ openocd -s tool -f tool/openocd.cfg -c "mt_flash kiibohd_bootloader.bin"
  15. Infinity SWD pinout
  16. -------------------
  17. SWD pins are placed next to reset button; SWD_CLK, SWD_DIO, GND, VCC from top.
  18. Note that RESET is also needed to get full control with OpenOCD.