isodebug.cfg 1.1 KB

1234567891011121314151617181920212223242526272829
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # isodebug v1
  3. # 5 kV isolated JTAG/SWD + UART adapter by Unjo AB
  4. adapter driver ftdi
  5. ftdi vid_pid 0x22b7 0x150d
  6. ftdi layout_init 0x0ff8 0xfffb
  7. ftdi layout_signal LED -ndata 0x0100
  8. ftdi layout_signal nTRST -data 0x0200
  9. ftdi layout_signal nSRST -noe 0x0400
  10. ftdi layout_signal SWDIO_OE -data 0x0008
  11. # Mode signals, either of these needs to be high to drive the JTAG/SWD pins.
  12. # The power-on state is low for both signals but the init setting above sets
  13. # JTAG_EN high.
  14. ftdi layout_signal SWD_EN -data 0x1000
  15. ftdi layout_signal JTAG_EN -data 0x0800
  16. # In SWD mode, the JTAG_EN signal doubles as SWO_EN_N which switches the
  17. # second FTDI channel UART RxD to the SWO pin instead of the separate RxD
  18. # pin. Note that the default init state has this pin high so when OpenOCD
  19. # starts in SWD mode, SWO is by default disabled. To enable SWO tracing,
  20. # issue the command 'ftdi set_signal SWO_EN 1' where tracing is configured.
  21. # To switch back to using the separate UART, SWO_EN needs to be disabled
  22. # before exiting OpenOCD, or the adapter replugged.
  23. ftdi layout_signal SWO_EN -nalias JTAG_EN