Michael,

Try configuring the interface, the ft2232 stuff, before the target. I've had issues before when I configured my board before the interface, so see if that helps.

// Dean

Michael Jäntsch wrote:
Hi everyone,

I am still hoping that somebody can point me into the right direction, concerning my Problem with the ST32-PerformanceStick. I was hoping that this would moreless work out of the box, because it is stated in the documentation that this stick is supported by openocd. There is a stm32stick target, but I don't really understand why this it is not working for me.

Is there somebody on the list who is using this Hardware with Openocd???

Thanks
Michael


Michael Jäntsch schrieb:
Hello,

I obviously had both problems. I needed to set the vid/pid in the config file plus the permission problem. I fixed this and got one step further. But it is still not working. Openocd is obviously talking to the ft2232 chip but still not to the ST32-PerformanceStick.

My openocd.cfg:
source [find target/stm32stick.cfg]

# ftdi interface
interface ft2232

ft2232_device_desc "STM32-PerformanceStick A"
ft2232_layout stm32stick
ft2232_vid_pid 0x0640 0x002d

gdb_port 4789

and I get the following
Open On-Chip Debugger 1.0 (2009-03-09-14:42) svn:1405


BUGS? Read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS


$URL: svn://svn.berlios.de/openocd/trunk/src/openocd.c $
500 kHz
Error: JTAG communication failure, check connection, JTAG interface, target power etc.
Error: trying to validate configured JTAG chain anyway...
Error: Could not validate JTAG scan chain, IR mismatch, scan returned 0x7FFF. tap=stm32_hitex.cpu pos=0 expected 0x1 got 3
Warn : Could not validate JTAG chain, continuing anyway...
Warn : Invalid ACK in SWJDP transaction
Warn : Invalid ACK in SWJDP transaction
Warn : Invalid ACK in SWJDP transaction
Warn : Invalid ACK in SWJDP transaction
Warn : Block read error address 0xe000ed00, count 0x1
Warn : no telnet port specified, using default port 4444
Warn : no tcl port specified, using default port 6666
Warn : Invalid ACK in SWJDP transaction

Any ideas?

Thanks
Michael


Holger Schurig schrieb:
Error: 30 161 ft2232.c:1506 ft2232_init_ftd2xx(): unable to
open ftdi device: 2
You might also have a permission problem in your /proc/bus/usb (or the new location somewhere in /sys). In this case, "strace -oa -efile ./openocd" and a careful reading of the generated "a" file will show this.

Then add a proper /etc/udev/rules.d/XXX file to solve this.



_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to