OpenOCD 0.3.0 for Windows 64 bit - downloadable binaries

Open source ARM Debugger

Moderator: phalanx

Post Reply
el_nihilo
Posts: 12
Joined: Thu Oct 08, 2009 8:23 am

OpenOCD 0.3.0 for Windows 64 bit - downloadable binaries

Post by el_nihilo » Mon Oct 12, 2009 5:11 pm

As promised, please find a fully GPL compliant binary version of OpenOCD (v0.3.0-dev 2009.10.12) for Windows 64 bit systems.

DOWNLOAD HERE

README:

Code: Select all

This is a development version of OpenOCD 0.3.0 for Windows 64 bit systems (Vista x64, Windows 7 x64)

This version was compiled with WPG System64 (MinGW x64) using the 2009.10.12 version of the OpenOCD
GIT tree and is fully GPL compliant through the use of libftdi/libusb.

To run OpenOCD on Windows 64 bit, you must first install the 64 bit LibUSB drivers by following the 
instructions in .\driver\INSTALL.txt

This version of OpenOCD was successfully tested on Vista x64 with an FT2232 based SheevaPlug Dev Kit.

The drivers provided with this release should support the following hardware:
  - Amontec JTAGkey
  - CALAO Systems USB-A9260
  - egnite Turtelizer 2
  - Hitex Cortino
  - Hitex STM32-PerformanceStick 
  - Hitex STR9-comStick
  - Hubert Hoegl's USB to JTAG
  - Joern Kaipf's OOCDLink
  - Luminary Micro BD-ICDI In-Circuit Debug Interface Board
  - Luminary Micro Stellaris LM3S811 Evaluation Kit
  - Marvell SheevaPlug Development Kit
  - Olimex ARM-USB-OCD
  - Olimex ARM-USB-TINY
  - Section5 ICEBear
  - Section5 ICEBear
  - TinCanTools Flyswatter
  - Xverve Signalyzer
Note that since it is still a bit experimental, it was compiled with debug information, so that you can use WPG System64's gdb in case of problems

I will post the compilation steps later on.

Enjoy!

wxzzzh
Posts: 6
Joined: Tue Oct 20, 2009 11:03 pm

Need 32 bit windows version

Post by wxzzzh » Wed Oct 28, 2009 8:24 pm

Hi,

I need 32 bit windows version, but i can't pass the compile, may you help?

wxzzzh
Posts: 6
Joined: Tue Oct 20, 2009 11:03 pm

jlink

Post by wxzzzh » Wed Oct 28, 2009 9:00 pm

forgot to say, i need the --enable-jlink option for configure, thanks

Freddie Chopin
Posts: 108
Joined: Thu Feb 05, 2009 11:17 am
Location: Poland
Contact:

Re: Need 32 bit windows version

Post by Freddie Chopin » Fri Oct 30, 2009 9:50 am

wxzzzh wrote:I need 32 bit windows version, but i can't pass the compile, may you help?
Trouble reading?

viewtopic.php?t=16422

4\/3!!
[size=9]......nihil verum nisi mors......
[color=lightgrey].........only death is real.........[/color][/size]

:: [url=http://www.freddiechopin.info/]freddiechopin.info[/url] :: [url=http://www.lastfm.pl/user/freddie_chopin]last.fm[/url] ::

shacker
Posts: 2
Joined: Sun Nov 01, 2009 5:21 am

Post by shacker » Sun Nov 01, 2009 5:41 am

Are you going to support parallel port devices like wiggler in 64-bit releases? Giveio is 32bit only, but there are other direct hardware access drivers like InpOutx64 or WinRing0 that supports 64-bit windows systems.

el_nihilo
Posts: 12
Joined: Thu Oct 08, 2009 8:23 am

Post by el_nihilo » Thu Nov 05, 2009 9:23 am

Hi,

I'm not planning on becoming a maintainer of Win x64 OpenOCD binary releases I'm afraid. My goal was, since people seemed to have some trouble getting a working OpenOCD for Win x64 and FTDI devices, to show one way to do just that. The binaries I released were just a byproduct of this.

Now that the Win x64 patches have been integrated in both libftdi and OpenOCD, I'm hoping that the regular distributors of the Windows binaries can provide both a 32 and 64 bit version for people who don't want to recompile their own.
Otherwise, with WPG System64 providing everything you need to compile in a single zip file, producing 64 bit binaries should no longer be a major headache.

If GiveIO-32 is open source as libusb-win32 is, you can probably apply the same trick to get a working 64 bit Windows driver (that you'll have to self-sign to install, but that's a different issue). Else, I'm pretty sure that someone with a Wiggler and running 64-bit Windows will be as annoyed as I was with the FTDI thing and post a tutorial.

shacker
Posts: 2
Joined: Sun Nov 01, 2009 5:21 am

Post by shacker » Thu Nov 05, 2009 9:47 am

el_nihilo wrote: Else, I'm pretty sure that someone with a Wiggler and running 64-bit Windows will be as annoyed as I was with the FTDI thing and post a tutorial.
However I've found temporary workaround - install MS Virtual PC on 64 bit machine, run Win XP 32 bit in virtual machine and run OpenOCD 32-bit there. This will setup TCP server for GDB. GDB will work fine on 64 bit system with a TCP connection to OpenOCD.

Freddie Chopin
Posts: 108
Joined: Thu Feb 05, 2009 11:17 am
Location: Poland
Contact:

Post by Freddie Chopin » Fri Nov 06, 2009 3:19 am

el_nihilo wrote:Now that the Win x64 patches have been integrated in both libftdi and OpenOCD, I'm hoping that the regular distributors of the Windows binaries can provide both a 32 and 64 bit version for people who don't want to recompile their own.
Actually there's noone else but me providing Windows binaries.

If you'd be willing to test the installers that I could produce, then I could post x64 version along with 32-bit one on my website. I don't have a 64-bit system to test whether everything is fine.
If GiveIO-32 is open source as libusb-win32 is, you can probably apply the same trick to get a working 64 bit Windows driver (that you'll have to self-sign to install, but that's a different issue). Else, I'm pretty sure that someone with a Wiggler and running 64-bit Windows will be as annoyed as I was with the FTDI thing and post a tutorial.
If the Wiggler cannot be used right now, than we must wait for someone to test and fix that <:

4\/3!!
[size=9]......nihil verum nisi mors......
[color=lightgrey].........only death is real.........[/color][/size]

:: [url=http://www.freddiechopin.info/]freddiechopin.info[/url] :: [url=http://www.lastfm.pl/user/freddie_chopin]last.fm[/url] ::

el_nihilo
Posts: 12
Joined: Thu Oct 08, 2009 8:23 am

Post by el_nihilo » Fri Nov 06, 2009 5:11 am

Hi Freddie,
Freddie Chopin wrote:Actually there's noone else but me providing Windows binaries.
Yeah, I feared as much...
If you'd be willing to test the installers that I could produce, then I could post x64 version along with 32-bit one on my website.
I'm fine with that. It is of course preferable to provide both 32 and 64 bit Windows binaries in one place, and your site is the logical choice. If you're willing to produce the x64 binaries yourself, then I'll help out as much as I can.
Right now, I only have a Vista x64 machine (no Windows 7 yet), and the only JTAG interface I have is FTDI based, so I hope that's OK.

I replied to your latest post in the OpenOCD mailing list, so that you have my e-mail.

xenofears
Posts: 3
Joined: Fri Oct 09, 2009 11:54 am

WPG System64 Libraries

Post by xenofears » Tue Nov 10, 2009 4:04 pm

I would like to include libftdi and libusb with WPG System64 (the portable development environment (i.e. gcc) used to build these binaries.) Hosting of OpenOCD binaries is not really relevant, but I can give things a head start with the appropriate libraries. I have built a ton of libraries for ffmpeg implementation(s) as well, might be relevant.

I haven't touched libftdi, heard it was not an easy build, however I have tried building libusb and gave up (quickly, at that time decided it wasn't worth the time.)

Let me know what is appropriate to include and any key issues to build it. (I am lost on the GPL version >=2 vs. 3 as well, I am still unsure if I can use GPL v3, I haven't been.)

Thanks!

el_nihilo
Posts: 12
Joined: Thu Oct 08, 2009 8:23 am

Post by el_nihilo » Fri Nov 20, 2009 5:20 am

Hi xenofears,

I think having the 1.x version of libusb working with mingw (64 bit or not) would be a worthwhile endeavour indeed. I started looking at it myself, and after a few patches, I got to a stage where all that's needed is writing the windows OS wrapper for all the USB I/O (still a major undertaking!).
With WPG System64 including pthread-win32, the most troublesome part is picking up some emulation code for poll() and pipe(), which the git-core guys already seem to have worked around. Hopefully, that'll be good enough for libusb.

Of course getting libusb compile with an empty OS wrapper is not much of an achievement, and, apart from the time it's likely to take to get someone to write a libusb 1.x compatible wrapper, there might be some nasty surprises, as it might not be possible to avoid the need to write a custom driver (as in libusb-win32 0.1.x).

Oh, and libftdi compiles and works just fine with WPG System64, especially after they included one of the patches I submitted. The only real issue is with libusb, which libftdi requires.

Gorlash
Posts: 20
Joined: Fri May 30, 2008 10:26 am

Re: OpenOCD 0.3.0 for Windows 64 bit - downloadable binaries

Post by Gorlash » Fri May 21, 2010 3:42 pm

Well, unfortunately, this process does not work for me. I'm using Windows 7 64-bit (build 6.1.7600).

There are at least three failure mechanisms that I've encountered (I was running the scripts as Administrator in all cases):

1. the windows_enable_test_mode.cmd script looks for the string "Version 6", but although VER does in fact contain that string (outputting:
Microsoft Windows [Version 6.1.7600], the test fails, and the script doesn't run.
I bypassed the test to get the script to run, leading to:


2. bcdedit /store c:\boot\bcd /set testsigning yes
would fail in every case (I was running in a cmd.exe shell, running as administrator).
Finally, I just skipped the store part, and just ran
bcdedit /set testsigning yes
which succeeded, and then I rebooted, leading to:

3. after rebooting, the screen displays "test mode"
I followed the instructions and proceeded until 'Update Driver Software"...
I browsed to the openocd/drivers/ directory, selected Next, and Windows says
"there are no valid drivers in this location".

I don't know how to hack this process any further. Is there any way to actually get this to work??

Post Reply