#115 freq does not work correct for f >= 6MHz on FT2232(H)

0.17
closed-fixed
nobody
UrJTAG (102)
5
2012-04-13
2012-04-12
Tomek Cedro
No

Hey, I have noticed bad behavior of the FREQ command with FT2232H device (KT-LINK) for frequencies >= 6MHZ it stops working - maybe something with the frequency multiplier disabled or the frequency calculation problem, just note for future fix, no time right now for a fix sorry.

%./jtag

UrJTAG 0.10 #
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag> cable kt-link
Connected to libftdi driver.
nSRST pin state is high...
KT-LINK JTAG Mode Initialization OK!
jtag> freq 5000000
Setting TCK frequency to 5000000 Hz
jtag> detect
IR length: 15
Chain length: 3
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(0): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
Device Id: 00110000000010111001010000010011 (0x300B9413)
Manufacturer: ikanos (0x413)
Part(1): IKF7185 (0x0B9)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.bs/ikf7185.bs
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(2): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
jtag> freq 6000000
Setting TCK frequency to 6000000 Hz
jtag> detect
jtag> freq 5500000
Setting TCK frequency to 5500000 Hz
jtag> detect
IR length: 15
Chain length: 3
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(0): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
Device Id: 00110000000010111001010000010011 (0x300B9413)
Manufacturer: ikanos (0x413)
Part(1): IKF7185 (0x0B9)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.bs/ikf7185.bs
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(2): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
jtag> freq 5900000
Setting TCK frequency to 5900000 Hz
jtag> detect
IR length: 15
Chain length: 3
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(0): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
Device Id: 00110000000010111001010000010011 (0x300B9413)
Manufacturer: ikanos (0x413)
Part(1): IKF7185 (0x0B9)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.bs/ikf7185.bs
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(2): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
jtag> freq 5999999
Setting TCK frequency to 5999999 Hz
jtag> detect
IR length: 15
Chain length: 3
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(0): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
Device Id: 00110000000010111001010000010011 (0x300B9413)
Manufacturer: ikanos (0x413)
Part(1): IKF7185 (0x0B9)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.bs/ikf7185.bs
Device Id: 00110000000010111000010000010011 (0x300B8413)
Manufacturer: ikanos (0x413)
Part(2): IKF7185 (0x0B8)
Stepping: Ver 3
Filename: /tmp/openocd/target/share/urjtag/ikanos/ikf7185.cpu/ikf7185.cpu
jtag> freq 6000000
Setting TCK frequency to 6000000 Hz
jtag> detect
jtag>

Discussion

  • Tomek Cedro

    Tomek Cedro - 2012-04-12

    cant assign myself for the fix? :-)

     
  • Tomek Cedro

    Tomek Cedro - 2012-04-13

    KT-LINK driver was using ft2232_set_frequency instead of ft2232h_set_frequency. Fixed, see attached patch :-)

     
  • Tomek Cedro

    Tomek Cedro - 2012-04-13
    • status: open --> closed-fixed
     
  • Tomek Cedro

    Tomek Cedro - 2012-04-13

    Thanks! Your patch(es) have been applied.

     
  • Kolja Waschk

    Kolja Waschk - 2017-02-12
    • Group: 0.x --> 0.17
     

Log in to post a comment.