Hi Spencer, > > I tried to connect to my STM32F4DISCOVERY with the following command: > > openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg -c init > > -c "reset halt" > > for info you can just use the board config, eg. > openocd -f board/stm32f4discovery.cfg ...
ahh, ok, thanks. Just tried that and the new patch http://openocd.zylin.com/609 to enabe the hardware reset. Now it fails a bit differently. But it is still reading bogus cpu ids. So I think it is still the same communication problem. > > Openocd fails to correctly connect with the cpu. > > > > This worked with an older version (git b6068f5a48), although connecting > > with just "reset" or without reset at all didn't work. > > if it worked with an older version then can you perform a git bisect? It didn't really work with an older version, it kept detecting wrong cpus until started with "reset halt" and even then just flashing worked, not gdb. See this message from my first tries: http://sourceforge.net/mailarchive/forum.php?thread_name=201204201221.33840.lists%40egidy.de&forum_name=openocd- devel So I think the bug was already there but the reset just hid it with providing a specific timing or something like that. So I don't think bisecting will help much here. > What version of libusb are you using? The openocd binary links the libs from those rpms: libusb1-1.0.8-7.fc15.x86_64 libusb-0.1.3-9.fc15.x86_64 These are the newest rpms available from Fedora. If you suspect some problem there I can try a newer or older version. This is a snipped from the configure run of openocd: checking Build & Link with libftdi...... Success checking for libftdi highspeed device support... yes checking libusb-1.0/libusb.h usability... yes checking libusb-1.0/libusb.h presence... yes checking for libusb-1.0/libusb.h... yes checking usb.h usability... yes checking usb.h presence... yes checking for usb.h... yes So it seems to be using 0.1 and 1.0 both, don't know which is finally used for the stlink code. Do you have any hints how to further debug this? Kind regards, Gerd ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ OpenOCD-devel mailing list OpenOCD-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openocd-devel