**** BEGIN LOGGING AT Thu Mar 04 02:59:58 2010 Mar 04 10:28:10 hello Mar 04 10:28:21 I'm using OpenOCD with an AT91-based device Mar 04 10:28:36 versions 0.1.0 and 0.2.0 of OpenOCD work perfectly fine: gdb can connect and do debugging. Mar 04 10:28:54 however, versions 0.3.1 and 0.4.0 no longer work for me. As soon as gdb connects to OpenOCD, OpenOCD complains with Mar 04 10:29:05 ftdi_write_data: usb bulk write failed Mar 04 10:29:13 couldn't write MPSSE commands to FT2232 Mar 04 10:29:31 I've tested the different versions on the exact same machine, same Ubuntu 9.04 distribution, same version of libftdi and libusb Mar 04 10:29:36 same version of gdb. Mar 04 10:52:06 kos_tom: i can access AT91 with openocd > 0.3. iirc there was some chang in the configuration files. you can inherit from at91sam9260 Mar 04 10:52:58 yes, I changed the configuration file a little bit. Mar 04 10:53:45 the one I'm using with 0.1.0 and 0.2.0 successfully is http://code.bulix.org/ildefa-74508?raw Mar 04 10:54:36 the one I'm using with 0.3.1 and 0.4.0 (unsuccessfully) is http://code.bulix.org/fusuxy-74509?raw Mar 04 10:59:49 kos_tom: try setting jtag_rclk to 5 Mar 04 11:01:13 ok, I'm trying. Mar 04 11:01:50 I would start getting an own configuration from at91sam9g20-ek.cfg Mar 04 11:03:03 hum, seems to work better. The JTAG is very slow, but seems to work. Mar 04 11:04:10 you can only use 1/6 of clock, upon reset the clock is slow speed 32,768kHz Mar 04 11:04:23 after you switch to PLL, you can increase jtag_rclk Mar 04 11:04:34 well, I start OpenOCD once the Linux kernel has been loaded. Mar 04 11:04:50 then you can use something like 6000 Mar 04 11:05:26 setting to 0 is iirc adaptive clocking. a) your jtagkey doesn't support that or b) it doesn't work Mar 04 11:06:50 isn't jtag_rclk adaptive-or-fallback-to-N at all times? Mar 04 11:07:04 jtag_khz 0 on the other hand Mar 04 11:07:58 Weaselweb: nice, it still works with 6000 Mar 04 11:08:16 thanks for the help! Mar 04 11:08:37 ius: ah, yes, jtag_khz is the correct key for jtag speed Mar 04 11:08:50 I see that the board file atmel_at91sam9260-ek.cfg initializes the SDRAM controller Mar 04 11:09:22 however, if I attach OpenOCD to the device after U-Boot and the kernel has started, instead this kind of initialization done through the JTAG going to mess up with the initialization already done by U-Boot ? Mar 04 11:10:15 kos_tom: if you use a config which doesn't setup anything (like I do) you wont mess up anything, you just attach Mar 04 11:10:42 so in a config like http://code.bulix.org/fusuxy-74509?raw what is missing ? Mar 04 11:11:27 i think jtag_khz needs to 6000 or so Mar 04 11:11:55 jtag_khz or jtag_rclk ? Mar 04 11:11:59 jtag_khz Mar 04 11:12:01 I changed the latter to get it working. Mar 04 11:12:13 i dont use jtag_rclk, so I can't say anything about it Mar 04 11:13:04 kos_tom: try rclk first, that should define a fallback Mar 04 11:13:35 or khz if your jtag dongle doesn't support rtck anyway Mar 04 11:14:25 the doc says "If both the chip and the board support adaptive clocking, use the jtag_rclk command, in case your board is used with JTAG adapter which also supports it. Otherwise use jtag_khz." Mar 04 11:14:36 ius: well, my JTAG dongle is just a FTDI2232. Mar 04 11:15:35 there are several jtagkey edtions. some don't support adaptive clokcing, some do Mar 04 11:16:03 well, in fact my JTAG key is integrated into my device. Mar 04 11:16:59 if adaptive clocking isn't documented anywhere to your device, I would assume it doesn't support it Mar 04 11:16:59 I'm using http://www.calao-systems.com/articles.php?lng=en&pg=5932 Mar 04 11:17:04 then thats not a jtagkey (which are the amontec ft2232 ones) Mar 04 11:17:17 to see if adaptative clocking is supported, I need to look if RTCK is wired, right ? Mar 04 11:18:40 schematics at http://www.calao-systems.com/repository/pub/EMBEDDED%20COMPUTERS/USB-A9263-XXX/C02/HARDWARE/SCH-00007-B01.pdf Mar 04 11:18:57 correct Mar 04 11:19:13 well, according to the schematics, the board does support adaptive clocking Mar 04 11:19:31 setting jtag_rclk to 0 doesn't work. But setting jtag_rclk to 6000 works. Mar 04 11:20:27 well, RTCK seems to be wired, but I would say to need to create a new interface for proper usage Mar 04 11:44:10 hello guys, does OpenOCD work well with jlink? Mar 04 18:33:48 anyone familiar with the current state of the cortex-a8 support? Mar 04 18:34:13 I'm trying to add support in the FT2232 driver for the TI XDS100v2 USB JTAG adapter Mar 04 18:35:14 After a SRST I can read the ID code of the IcePick, but every time after that I only get back 0 for the ID **** ENDING LOGGING AT Fri Mar 05 02:59:58 2010