Jump to content

Joshua Nekl

Members
  • Posts

    4
  • Joined

  • Last visited

Joshua Nekl's Achievements

Newbie

Newbie (1/4)

0

Reputation

  1. Another related question ... When using SWD, TCK becomes SWCLK and TMS becomes SWDIO; the TDI and TDO pins are now unused. It is common to multiplex the ARM single pin Serial Wire Trace Viewer (SWV/SWO) onto the now unused JTAG TDO pin. According to the OpenOCD FTDI source https://openocd.org/doc-release/doxygen/ftdi_8c.html Is the external TDO input only connected to the mux for the FTDI.CHA.TDO input, or is there also control ability to connect it to the FTDI.CHB.TDO input?
  2. Thanks, I was able to configure OpenOCD digilent-hs2.cfg to support ARM SWD with the following ftdi layout_signal SWD_EN -data 0x6000 ftdi layout_signal SWDIO_OE -data 0x20
  3. Still unsuccessful after several attempts. Based on https://github.com/openocd-org/openocd/blob/master/tcl/interface/ftdi/ft232h-module-swd.cfg, I tried all combinations of ftdi layout_signal SWD_EN -data 0 ftdi layout_signal SWDIO_EN -[n]data 0x20 I was unable to get past "Error: connecting DP: cannot read IDR" Schematics would be very helpful, but based on previous posts I don't expect them to be shared. Is the TMS output enable active high or low? If there are buffers to isolate the FTDI chip from the external interface due to different voltage levels, I expect the TMS input to be routed to a different input pin on the FTDI chip. Since I've seen HS2 drivers for cJTAG I expect this connectivity exists. I don't need complete schematics, but the connectivity between the FTDI chip and external interface would be extremely helpful.
  4. Which HS2 FTDI GPIO pin controls tri-state of the TMS pin? We have successfully connected the Digilent HS2 to our device with OpenOCD using the JTAG interface. We would like to change the transport to the 2-wire SWD interface. To do this, we need to define a SWD_EN signal which is used to drive or tristate the SWDIO (aka TMS) pin. https://openocd.org/doc/html/Debug-Adapter-Configuration.html ftdi_layout_signal SWD_EN -data mask "The masks are FTDI GPIO register bitmasks to tell the driver the connection and type of the output buffer driving the respective signal. data_mask is the bitmask for the pin(s) connected to the data input of the output buffer."
×
×
  • Create New...