-
Notifications
You must be signed in to change notification settings - Fork 3
/
c232hm-ddhsl-0.cfg
38 lines (29 loc) · 1.07 KB
/
c232hm-ddhsl-0.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# c232hm-ddhsl-0.cfg
# based on: https://github.com/0x6a77/KinetisOpenOcdConfigs/blob/master/scripts/interface/c232hm-edhsl-0.cfg
#
# OpenOCD configuration file for:
# FTDI C232HM - USB 2.0 Hi-Speed to MPSSE Cable
# FT232H has single channel, a channel has 16 signals
# This cable outputs only the low signals of FT232H
# low signals[7:0]=GPIOL3-0,TMS,TDO,TDI,TCK
# high signals[7:0]=GPIOH7-0
# ACBUS6/GPIOH6 is connected to red led
# driver for adapters using MPSSE with chips like FT232H
interface ftdi
# vendor and product ID of the adapter
ftdi_vid_pid 0x0403 0x6014
# description
ftdi_device_desc C232HM-DDHSL-0
# initial value of GPIO data and direction registers
# each is 16-bit, concat of high+low GPIO registers
# initial value:
# 08 = 0000 0000
# TMS=1, all others zero
# initial direction:
# 1=out, 0=in
# 7b
# 0001 = GPIOL3=RTCK=input, GPIOL2=dontcare=output, GPOL1=SRST=output, GPIOL0=TRST=output
# 1011 = [1=TMS=output, 0=TDO=input, 1=TDI=output, 1=TCK=output]
# ftdi_layout_init [data] [direction]
ftdi_layout_init 0x0018 0x001b
ftdi_layout_signal nTRST -data 0x0010